ROOT
6.08/07
Reference Guide
tmva
tmva
inc
TMVA
TActivationChooser.h
Go to the documentation of this file.
1
// @(#)root/tmva $Id$
2
// Author: Matt Jachowski
3
4
/**********************************************************************************
5
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6
* Package: TMVA *
7
* Class : TMVA::TActivationChooser *
8
* Web : http://tmva.sourceforge.net *
9
* *
10
* Description: *
11
* Class for easily choosing activation functions. *
12
* *
13
* Authors (alphabetical): *
14
* Matt Jachowski <jachowski@stanford.edu> - Stanford University, USA *
15
* *
16
* Copyright (c) 2005: *
17
* CERN, Switzerland *
18
* *
19
* Redistribution and use in source and binary forms, with or without *
20
* modification, are permitted according to the terms listed in LICENSE *
21
* (http://tmva.sourceforge.net/LICENSE) *
22
**********************************************************************************/
23
24
25
#ifndef ROOT_TMVA_TActivationChooser
26
#define ROOT_TMVA_TActivationChooser
27
28
//////////////////////////////////////////////////////////////////////////
29
// //
30
// TActivationChooser //
31
// //
32
// Class for easily choosing activation functions //
33
// //
34
//////////////////////////////////////////////////////////////////////////
35
36
#include <vector>
37
#ifndef ROOT_TString
38
#include "
TString.h
"
39
#endif
40
41
namespace
TMVA
{
42
43
class
TActivation;
44
class
MsgLogger;
45
46
class
TActivationChooser
{
47
public
:
48
49
enum
EActivationType
{
kLinear
= 0,
50
kSigmoid
,
51
kTanh
,
52
kReLU
,
53
kRadial
54
};
55
56
TActivationChooser
();
57
virtual
~TActivationChooser
();
58
59
TActivation
*
CreateActivation
(
EActivationType
type
)
const
;
60
TActivation
*
CreateActivation
(
const
TString
&
type
)
const
;
61
std::vector<TString>*
GetAllActivationNames
()
const
;
62
63
private
:
64
65
TString
fLINEAR
;
// activation function name
66
TString
fSIGMOID
;
// activation function name
67
TString
fTANH
;
// activation function name
68
TString
fRELU
;
// activation function name
69
TString
fRADIAL
;
// activation function name
70
71
mutable
MsgLogger
*
fLogger
;
//! message logger
72
MsgLogger
&
Log
()
const
{
return
*
fLogger
; }
73
74
ClassDef
(
TActivationChooser
,0);
// Class for choosing activation functions
75
};
76
77
}
// namespace TMVA
78
79
#endif
TMVA::TActivationChooser::EActivationType
EActivationType
Definition:
TActivationChooser.h:49
TString
Basic string class.
Definition:
TString.h:137
TMVA::TActivationChooser::Log
MsgLogger & Log() const
message logger
Definition:
TActivationChooser.h:72
TMVA::TActivationChooser::kTanh
Definition:
TActivationChooser.h:51
TMVA::TActivationChooser::kSigmoid
Definition:
TActivationChooser.h:50
TMVA::TActivationChooser::kLinear
Definition:
TActivationChooser.h:49
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TMVA::TActivationChooser::fLINEAR
TString fLINEAR
Definition:
TActivationChooser.h:65
TMVA::TActivationChooser::CreateActivation
TActivation * CreateActivation(EActivationType type) const
Definition:
TActivationChooser.cxx:80
TMVA::TActivationChooser::~TActivationChooser
virtual ~TActivationChooser()
Definition:
TActivationChooser.cxx:73
TString.h
TMVA::TActivationChooser::fTANH
TString fTANH
Definition:
TActivationChooser.h:67
TMVA::TActivationChooser::fSIGMOID
TString fSIGMOID
Definition:
TActivationChooser.h:66
TMVA::TActivationChooser::TActivationChooser
TActivationChooser()
Definition:
TActivationChooser.cxx:62
TMVA::TActivationChooser::fRADIAL
TString fRADIAL
Definition:
TActivationChooser.h:69
TMVA::TActivationChooser::fRELU
TString fRELU
Definition:
TActivationChooser.h:68
type
int type
Definition:
TGX11.cxx:120
TMVA::MsgLogger
Definition:
MsgLogger.h:63
TMVA::TActivationChooser::GetAllActivationNames
std::vector< TString > * GetAllActivationNames() const
Definition:
TActivationChooser.cxx:116
TMVA
Abstract ClassifierFactory template that handles arbitrary types.
Definition:
GeneticMinimizer.h:21
TMVA::TActivationChooser::kRadial
Definition:
TActivationChooser.h:53
TMVA::TActivationChooser::fLogger
MsgLogger * fLogger
Definition:
TActivationChooser.h:71
TMVA::TActivationChooser::kReLU
Definition:
TActivationChooser.h:52
TMVA::TActivationChooser
Definition:
TActivationChooser.h:46
TMVA::TActivation
Definition:
TActivation.h:46