SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
ui
GUILabels.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-2008 Soeren Sonnenburg
8
* Written (W) 1999-2008 Gunnar Raetsch
9
* Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
10
*/
11
12
#ifndef __GUILABELS__H_
13
#define __GUILABELS__H_
14
15
#include <
shogun/lib/config.h
>
16
#include <
shogun/base/SGObject.h
>
17
#include <
shogun/labels/Labels.h
>
18
19
namespace
shogun
20
{
21
class
CSGInterface;
22
24
class
CGUILabels
:
public
CSGObject
25
{
26
public
:
28
CGUILabels
() {};
32
CGUILabels
(CSGInterface*
interface
);
34
~CGUILabels
();
35
37
CLabels
*
get_train_labels
() {
return
train_labels
; }
39
CLabels
*
get_test_labels
() {
return
test_labels
; }
40
44
bool
set_train_labels
(
CLabels
* lab) {
SG_REF
(lab);
SG_UNREF
(
train_labels
);
train_labels
=lab;
return
true
;}
48
bool
set_test_labels
(
CLabels
* lab) {
SG_REF
(lab);
SG_UNREF
(
test_labels
);
test_labels
=lab;
return
true
;}
49
54
bool
load
(
char
* filename,
char
* target);
58
bool
save
(
char
* param);
59
66
CLabels
*
infer_labels
(
float64_t
* lab, int32_t len);
67
69
virtual
const
char
*
get_name
()
const
{
return
"GUILabels"
; }
70
71
protected
:
73
CSGInterface*
ui
;
75
CLabels
*
train_labels
;
77
CLabels
*
test_labels
;
78
};
79
}
80
#endif
SHOGUN
机器学习工具包 - 项目文档