SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
machine
NativeMulticlassMachine.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) 1999-2011 Soeren Sonnenburg
8
* Written (W) 2012 Fernando José Iglesias García and Sergey Lisitsyn
9
* Copyright (C) 2012 Sergey Lisitsyn, Fernando José Iglesias Garcia
10
*/
11
12
#ifndef _NATIVEMULTICLASSMACHINE_H___
13
#define _NATIVEMULTICLASSMACHINE_H___
14
15
#include <
shogun/machine/MulticlassMachine.h
>
16
17
namespace
shogun
18
{
19
21
class
CNativeMulticlassMachine
:
public
CMulticlassMachine
22
{
23
public
:
25
CNativeMulticlassMachine
()
26
{
27
}
28
30
virtual
~CNativeMulticlassMachine
()
31
{
32
}
33
35
virtual
const
char
*
get_name
()
const
36
{
37
return
"NativeMulticlassMachine"
;
38
}
39
40
protected
:
42
void
init_strategy
() { }
43
45
void
clear_machines
() { }
46
48
virtual
bool
init_machine_for_train
(
CFeatures
* data) {
return
true
; }
49
51
virtual
bool
init_machines_for_apply
(
CFeatures
* data) {
return
true
; }
52
54
virtual
bool
is_ready
() {
return
true
; }
55
57
virtual
CMachine
*
get_machine_from_trained
(
CMachine
* machine) {
return
NULL; }
58
60
virtual
int32_t
get_num_rhs_vectors
() {
return
0; }
61
66
virtual
void
add_machine_subset
(
SGVector<index_t>
subset) { }
67
69
virtual
void
remove_machine_subset
() { }
70
72
virtual
bool
is_acceptable_machine
(
CMachine
*machine) {
return
true
; }
73
74
};
75
}
76
#endif
SHOGUN
机器学习工具包 - 项目文档