Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::TActivationChooser Class Reference

Class for easily choosing activation functions.

Definition at line 44 of file TActivationChooser.h.

Public Types

enum  EActivationType {
  kLinear = 0 , kSigmoid , kTanh , kReLU ,
  kRadial
}
 

Public Member Functions

 TActivationChooser ()
 Default constructor.
 
virtual ~TActivationChooser ()
 Destructor.
 
TActivationCreateActivation (const TString &type) const
 instantiate the correct activation object according to the type chosen (given by a TString)
 
TActivationCreateActivation (EActivationType type) const
 instantiate the correct activation object according to the type chosen (given as the enumeration type)
 
std::vector< TString > * GetAllActivationNames () const
 returns the names of all know activation functions
 
virtual TClassIsA () const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Member Functions

MsgLoggerLog () const
 

Private Attributes

TString fLINEAR
 activation function name
 
MsgLoggerfLogger
 ! message logger
 
TString fRADIAL
 activation function name
 
TString fRELU
 activation function name
 
TString fSIGMOID
 activation function name
 
TString fTANH
 activation function name
 

#include <TMVA/TActivationChooser.h>

Member Enumeration Documentation

◆ EActivationType

Enumerator
kLinear 
kSigmoid 
kTanh 
kReLU 
kRadial 

Definition at line 47 of file TActivationChooser.h.

Constructor & Destructor Documentation

◆ TActivationChooser()

TMVA::TActivationChooser::TActivationChooser ( )

Default constructor.

Definition at line 47 of file TActivationChooser.cxx.

◆ ~TActivationChooser()

TMVA::TActivationChooser::~TActivationChooser ( )
virtual

Destructor.

Definition at line 60 of file TActivationChooser.cxx.

Member Function Documentation

◆ Class()

static TClass * TMVA::TActivationChooser::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TMVA::TActivationChooser::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TMVA::TActivationChooser::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 72 of file TActivationChooser.h.

◆ CreateActivation() [1/2]

TMVA::TActivation * TMVA::TActivationChooser::CreateActivation ( const TString type) const

instantiate the correct activation object according to the type chosen (given by a TString)

Definition at line 90 of file TActivationChooser.cxx.

◆ CreateActivation() [2/2]

TMVA::TActivation * TMVA::TActivationChooser::CreateActivation ( EActivationType  type) const

instantiate the correct activation object according to the type chosen (given as the enumeration type)

Definition at line 70 of file TActivationChooser.cxx.

◆ DeclFileName()

static const char * TMVA::TActivationChooser::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 72 of file TActivationChooser.h.

◆ GetAllActivationNames()

std::vector< TString > * TMVA::TActivationChooser::GetAllActivationNames ( ) const

returns the names of all know activation functions

Definition at line 107 of file TActivationChooser.cxx.

◆ IsA()

virtual TClass * TMVA::TActivationChooser::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 72 of file TActivationChooser.h.

◆ Log()

MsgLogger & TMVA::TActivationChooser::Log ( ) const
inlineprivate

Definition at line 70 of file TActivationChooser.h.

◆ Streamer()

virtual void TMVA::TActivationChooser::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TMVA::TActivationChooser::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 72 of file TActivationChooser.h.

Member Data Documentation

◆ fLINEAR

TString TMVA::TActivationChooser::fLINEAR
private

activation function name

Definition at line 63 of file TActivationChooser.h.

◆ fLogger

MsgLogger* TMVA::TActivationChooser::fLogger
mutableprivate

! message logger

Definition at line 69 of file TActivationChooser.h.

◆ fRADIAL

TString TMVA::TActivationChooser::fRADIAL
private

activation function name

Definition at line 67 of file TActivationChooser.h.

◆ fRELU

TString TMVA::TActivationChooser::fRELU
private

activation function name

Definition at line 66 of file TActivationChooser.h.

◆ fSIGMOID

TString TMVA::TActivationChooser::fSIGMOID
private

activation function name

Definition at line 64 of file TActivationChooser.h.

◆ fTANH

TString TMVA::TActivationChooser::fTANH
private

activation function name

Definition at line 65 of file TActivationChooser.h.

Libraries for TMVA::TActivationChooser:

The documentation for this class was generated from the following files: