SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KernelStructuredOutputMachine.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012 Fernando José Iglesias García
8  * Copyright (C) 2012 Fernando José Iglesias García
9  */
10 
12 
13 using namespace shogun;
14 
16 : CStructuredOutputMachine(), m_kernel(NULL)
17 {
18  register_parameters();
19 }
20 
22  CStructuredModel* model,
23  CLossFunction* loss,
24  CStructuredLabels* labs,
25  CKernel* kernel)
26 : CStructuredOutputMachine(model, loss, labs), m_kernel(NULL)
27 {
28  set_kernel(kernel);
29  register_parameters();
30 }
31 
33 {
35 }
36 
38 {
39  SG_REF(k);
41  m_kernel = k;
42 }
43 
45 {
47  return m_kernel;
48 }
49 
50 void CKernelStructuredOutputMachine::register_parameters()
51 {
52  SG_ADD((CSGObject**)&m_kernel, "m_kernel", "The kernel", MS_AVAILABLE);
53 }

SHOGUN Machine Learning Toolbox - Documentation