SHOGUN  v3.2.0
KernelStructuredOutputMachine.cpp
浏览该文件的文档.
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  CStructuredLabels* labs,
24  CKernel* kernel)
25 : CStructuredOutputMachine(model, labs), m_kernel(NULL)
26 {
27  set_kernel(kernel);
28  register_parameters();
29 }
30 
32 {
34 }
35 
37 {
38  SG_REF(k);
40  m_kernel = k;
41 }
42 
44 {
46  return m_kernel;
47 }
48 
49 void CKernelStructuredOutputMachine::register_parameters()
50 {
51  SG_ADD((CSGObject**)&m_kernel, "m_kernel", "The kernel", MS_AVAILABLE);
52 }
Base class of the labels used in Structured Output (SO) problems.
#define SG_UNREF(x)
Definition: SGRefObject.h:35
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:102
#define SG_REF(x)
Definition: SGRefObject.h:34
Class CStructuredModel that represents the application specific model and contains most of the applic...
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:16
The Kernel base class.
Definition: Kernel.h:150
#define SG_ADD(...)
Definition: SGObject.h:71

SHOGUN Machine Learning Toolbox - Documentation