SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
machine
LinearStructuredOutputMachine.h
浏览该文件的文档.
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) 2013 Thoralf Klein
8
* Written (W) 2012 Fernando José Iglesias García
9
* Copyright (C) 2012 Fernando José Iglesias García
10
*/
11
12
#ifndef _LINEAR_STRUCTURED_OUTPUT_MACHINE__H__
13
#define _LINEAR_STRUCTURED_OUTPUT_MACHINE__H__
14
15
#include <
shogun/features/Features.h
>
16
#include <
shogun/machine/StructuredOutputMachine.h
>
17
18
namespace
shogun
19
{
20
22
class
CLinearStructuredOutputMachine
:
public
CStructuredOutputMachine
23
{
24
public
:
26
CLinearStructuredOutputMachine
();
27
33
CLinearStructuredOutputMachine
(
CStructuredModel
* model,
CStructuredLabels
* labs);
34
36
virtual
~CLinearStructuredOutputMachine
();
37
42
void
set_w
(
SGVector< float64_t >
w);
43
48
SGVector< float64_t >
get_w
()
const
;
49
58
virtual
CStructuredLabels
*
apply_structured
(
CFeatures
* data = NULL);
59
64
virtual
void
store_model_features
();
65
67
virtual
const
char
*
get_name
()
const
68
{
69
return
"LinearStructuredOutputMachine"
;
70
}
71
72
private
:
74
void
register_parameters();
75
76
protected
:
78
SGVector< float64_t >
m_w
;
79
80
};
/* class CLinearStructuredOutputMachine */
81
82
}
/* namespace shogun */
83
84
#endif
/* _LINEAR_STRUCTURED_OUTPUT_MACHINE__H__ */
SHOGUN
机器学习工具包 - 项目文档