00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 2012 Fernando José Iglesias García 00008 * Copyright (C) 2012 Fernando José Iglesias García 00009 */ 00010 00011 #ifndef _KERNEL_STRUCTURED_OUTPUT_MACHINE__H__ 00012 #define _KERNEL_STRUCTURED_OUTPUT_MACHINE__H__ 00013 00014 #include <shogun/machine/StructuredOutputMachine.h> 00015 #include <shogun/kernel/Kernel.h> 00016 00017 namespace shogun 00018 { 00019 00021 class CKernelStructuredOutputMachine : public CStructuredOutputMachine 00022 { 00023 public: 00025 CKernelStructuredOutputMachine(); 00026 00034 CKernelStructuredOutputMachine(CStructuredModel* model, CLossFunction* loss, CStructuredLabels* labs, CKernel* kernel); 00035 00037 virtual ~CKernelStructuredOutputMachine(); 00038 00043 void set_kernel(CKernel* f); 00044 00049 CKernel* get_kernel() const; 00050 00052 virtual const char* get_name() const 00053 { 00054 return "KernelStructuredOutputMachine"; 00055 } 00056 00057 private: 00059 void register_parameters(); 00060 00061 protected: 00063 CKernel* m_kernel; 00064 00065 }; /* class CKernelStructuredOutputMachine */ 00066 00067 } /* namespace shogun */ 00068 00069 #endif /* _KERNEL_STRUCTURED_OUTPUT_MACHINE__H__ */