ARCHIVE
Snapshot of
the Shogun machine learning toolbox website
as of
2013
: preserved, not maintained. The live site:
shogun-toolbox.org
SHOGUN
4.1.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
src
shogun
multiclass
ecoc
ECOCEncoder.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 Chiyuan Zhang
8
* Copyright (C) 2012 Chiyuan Zhang
9
*/
10
11
#ifndef ECOCENCODER_H__
12
#define ECOCENCODER_H__
13
14
#include <
shogun/lib/config.h
>
15
16
#include <
shogun/base/Parameter.h
>
17
#include <
shogun/base/SGObject.h
>
18
#include <
shogun/lib/DataType.h
>
19
#include <
shogun/lib/SGMatrix.h
>
20
21
namespace
shogun
22
{
23
38
class
CECOCEncoder
:
public
CSGObject
39
{
40
public
:
42
CECOCEncoder
() {}
43
45
virtual
~CECOCEncoder
() {}
46
48
virtual
const
char
*
get_name
()
const
49
{
50
return
"ECOCEncoder"
;
51
}
52
56
virtual
SGMatrix<int32_t>
create_codebook
(int32_t num_classes)=0;
57
};
58
59
}
60
61
#endif
/* end of include guard: ECOCENCODER_H__ */
DataType.h
SGObject.h
Parameter.h
config.h
SGMatrix.h
shogun::SGMatrix< int32_t >
shogun::CECOCEncoder
ECOCEncoder produce an ECOC codebook.
Definition:
ECOCEncoder.h:38
shogun::CSGObject
Class SGObject is the base class of all shogun objects.
Definition:
SGObject.h:112
shogun::CECOCEncoder::create_codebook
virtual SGMatrix< int32_t > create_codebook(int32_t num_classes)=0
shogun::CECOCEncoder::CECOCEncoder
CECOCEncoder()
Definition:
ECOCEncoder.h:42
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
shogun::CECOCEncoder::get_name
virtual const char * get_name() const
Definition:
ECOCEncoder.h:48
shogun::CECOCEncoder::~CECOCEncoder
virtual ~CECOCEncoder()
Definition:
ECOCEncoder.h:45
SHOGUN
Machine Learning Toolbox - Documentation