SHOGUN
v3.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
labels
LatentLabels.h
Go to the documentation of this file.
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 Viktor Gal
8
* Copyright (C) 2012 Viktor Gal
9
*/
10
11
#ifndef __LATENTLABELS_H__
12
#define __LATENTLABELS_H__
13
14
#include <
shogun/labels/Labels.h
>
15
#include <
shogun/lib/Data.h
>
16
#include <
shogun/lib/DynamicObjectArray.h
>
17
18
namespace
shogun
19
{
24
class
CLatentLabels
:
public
CLabels
25
{
26
public
:
28
CLatentLabels
();
29
34
CLatentLabels
(int32_t num_samples);
35
40
CLatentLabels
(
CLabels
* labels);
41
43
virtual
~CLatentLabels
();
44
49
CDynamicObjectArray
*
get_latent_labels
()
const
;
50
56
CData
*
get_latent_label
(int32_t idx);
57
62
void
add_latent_label
(
CData
* label);
63
70
bool
set_latent_label
(int32_t idx,
CData
* label);
71
78
virtual
void
ensure_valid
(
const
char
* context=NULL);
79
84
virtual
ELabelType
get_label_type
()
const
{
return
LT_LATENT
; }
85
90
virtual
const
char
*
get_name
()
const
{
return
"LatentLabels"
; }
91
96
virtual
int32_t
get_num_labels
()
const
;
97
102
void
set_labels
(
CLabels
* labels);
103
108
CLabels
*
get_labels
()
const
;
109
110
protected
:
112
CDynamicObjectArray
*
m_latent_labels
;
114
CLabels
*
m_labels
;
115
116
private
:
118
void
init();
119
};
120
}
121
122
#endif
/* __LATENTLABELS_H__ */
123
SHOGUN
Machine Learning Toolbox - Documentation