SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
labels
MulticlassMultipleOutputLabels.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
* Copyright (C) 2012 Sergey Lisitsyn
8
*/
9
10
#ifndef MULTICLASSMULTIPLEOUTPUTLABELS_H_
11
#define MULTICLASSMULTIPLEOUTPUTLABELS_H_
12
13
#include <
shogun/labels/Labels.h
>
14
#include <
shogun/labels/LabelTypes.h
>
15
#include <
shogun/lib/DynamicObjectArray.h
>
16
17
namespace
shogun
18
{
26
class
CMulticlassMultipleOutputLabels
:
public
CLabels
27
{
28
29
public
:
31
CMulticlassMultipleOutputLabels
();
32
37
CMulticlassMultipleOutputLabels
(int32_t num_labels);
38
40
virtual
~CMulticlassMultipleOutputLabels
();
41
48
virtual
void
ensure_valid
(
const
char
* context = NULL);
49
56
SGMatrix<index_t>
get_labels
()
const
;
57
64
SGVector<index_t>
get_label
(int32_t idx);
65
76
bool
set_label
(int32_t idx,
SGVector<index_t>
label);
77
82
virtual
int32_t
get_num_labels
()
const
;
83
85
virtual
const
char
*
get_name
()
const
{
return
"MulticlassMultipleOutputLabels"
; }
86
91
virtual
ELabelType
get_label_type
()
const
{
return
LT_MULTICLASS_MULTIPLE_OUTPUT
; }
92
93
private
:
95
void
init();
96
97
protected
:
99
SGVector<index_t>
*
m_labels
;
101
int32_t
m_n_labels
;
102
103
};
104
}
105
#endif
SHOGUN
机器学习工具包 - 项目文档