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
preprocessor
Preprocessor.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) 1999-2009 Soeren Sonnenburg
8
* Written (W) 1999-2008 Gunnar Raetsch
9
* Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
10
*/
11
12
#ifndef PREPROCESSOR_H_
13
#define PREPROCESSOR_H_
14
15
#include <
shogun/lib/config.h
>
16
17
#include <
shogun/lib/common.h
>
18
#include <
shogun/base/SGObject.h
>
19
#include <
shogun/features/FeatureTypes.h
>
20
#include <
shogun/features/Features.h
>
21
22
namespace
shogun
23
{
24
25
class
CFeatures;
26
32
enum
EPreprocessorType
33
{
34
P_UNKNOWN
=0,
35
P_NORMONE
=10,
36
P_LOGPLUSONE
=20,
37
P_SORTWORDSTRING
=30,
38
P_SORTULONGSTRING
=40,
39
P_SORTWORD
=50,
40
P_PRUNEVARSUBMEAN
=60,
41
P_DECOMPRESSSTRING
=70,
42
P_DECOMPRESSCHARSTRING
=80,
43
P_DECOMPRESSBYTESTRING
=90,
44
P_DECOMPRESSWORDSTRING
=100,
45
P_DECOMPRESSULONGSTRING
=110,
46
P_RANDOMFOURIERGAUSS
=120,
47
P_PCA
=130,
48
P_KERNELPCA
=140,
49
P_NORMDERIVATIVELEM3
=150,
50
P_DIMENSIONREDUCTIONPREPROCESSOR
=160,
51
P_SUMONE
=170,
52
P_HOMOGENEOUSKERNELMAP
= 180,
53
P_PNORM
= 190,
54
P_RESCALEFEATURES
= 200,
55
P_FISHERLDA
= 210,
56
P_BAHSIC
= 220
57
};
58
75
class
CPreprocessor
:
public
CSGObject
76
{
77
public
:
79
CPreprocessor
() :
CSGObject
()
80
{
81
};
82
84
virtual
~CPreprocessor
()
85
{
86
}
87
89
virtual
bool
init(
CFeatures
* features)=0;
90
97
virtual
CFeatures
*
apply
(
CFeatures
* features)=0;
98
100
virtual
void
cleanup
()=0;
101
103
virtual
EFeatureType
get_feature_type
()=0;
104
106
virtual
EFeatureClass
get_feature_class
()=0;
107
109
virtual
EPreprocessorType
get_type
()
const
=0;
110
};
111
}
112
#endif // PREPROCESSOR_H_
SGObject.h
shogun::P_HOMOGENEOUSKERNELMAP
Definition:
Preprocessor.h:52
shogun::CPreprocessor::get_type
virtual EPreprocessorType get_type() const =0
shogun::CPreprocessor::~CPreprocessor
virtual ~CPreprocessor()
Definition:
Preprocessor.h:84
shogun::EPreprocessorType
EPreprocessorType
Definition:
Preprocessor.h:32
shogun::CPreprocessor::get_feature_type
virtual EFeatureType get_feature_type()=0
config.h
shogun::P_RANDOMFOURIERGAUSS
Definition:
Preprocessor.h:46
shogun::P_SORTULONGSTRING
Definition:
Preprocessor.h:38
shogun::P_DIMENSIONREDUCTIONPREPROCESSOR
Definition:
Preprocessor.h:50
shogun::P_PRUNEVARSUBMEAN
Definition:
Preprocessor.h:40
shogun::P_FISHERLDA
Definition:
Preprocessor.h:55
shogun::P_DECOMPRESSSTRING
Definition:
Preprocessor.h:41
shogun::CPreprocessor::get_feature_class
virtual EFeatureClass get_feature_class()=0
shogun::EFeatureClass
EFeatureClass
shogun feature class
Definition:
FeatureTypes.h:38
shogun::P_BAHSIC
Definition:
Preprocessor.h:56
shogun::P_SUMONE
Definition:
Preprocessor.h:51
shogun::P_LOGPLUSONE
Definition:
Preprocessor.h:36
shogun::P_NORMDERIVATIVELEM3
Definition:
Preprocessor.h:49
shogun::P_DECOMPRESSCHARSTRING
Definition:
Preprocessor.h:42
shogun::CSGObject
Class SGObject is the base class of all shogun objects.
Definition:
SGObject.h:112
shogun::P_KERNELPCA
Definition:
Preprocessor.h:48
shogun::CPreprocessor::apply
virtual CFeatures * apply(CFeatures *features)=0
shogun::P_DECOMPRESSBYTESTRING
Definition:
Preprocessor.h:43
shogun::P_PCA
Definition:
Preprocessor.h:47
shogun::P_DECOMPRESSULONGSTRING
Definition:
Preprocessor.h:45
shogun::CPreprocessor::cleanup
virtual void cleanup()=0
shogun::P_SORTWORDSTRING
Definition:
Preprocessor.h:37
shogun::P_PNORM
Definition:
Preprocessor.h:53
shogun::P_UNKNOWN
Definition:
Preprocessor.h:34
shogun::EFeatureType
EFeatureType
shogun feature type
Definition:
FeatureTypes.h:19
shogun::P_DECOMPRESSWORDSTRING
Definition:
Preprocessor.h:44
shogun::P_NORMONE
Definition:
Preprocessor.h:35
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
shogun::P_SORTWORD
Definition:
Preprocessor.h:39
shogun::P_RESCALEFEATURES
Definition:
Preprocessor.h:54
shogun::CFeatures
The class Features is the base class of all feature objects.
Definition:
Features.h:68
Features.h
shogun::CPreprocessor
Class Preprocessor defines a preprocessor interface.
Definition:
Preprocessor.h:75
shogun::CPreprocessor::CPreprocessor
CPreprocessor()
Definition:
Preprocessor.h:79
common.h
FeatureTypes.h
SHOGUN
Machine Learning Toolbox - Documentation