Logo ROOT  
Reference Guide
TMVA::TActivationTanh Class Reference

Tanh activation function for ANN.

Definition at line 41 of file TActivationTanh.h.

Public Member Functions

 TActivationTanh ()
 
 ~TActivationTanh ()
 
Double_t Eval (Double_t arg)
 evaluate the tanh More...
 
Double_t EvalDerivative (Double_t arg)
 evaluate the derivative More...
 
TString GetExpression ()
 get expressions for the tanh and its derivative whatever that may be good for ... More...
 
Double_t GetMax ()
 
Double_t GetMin ()
 
virtual TClassIsA () const
 
virtual void MakeFunction (std::ostream &fout, const TString &fncName)
 writes the Tanh sigmoid activation function source code More...
 
void SetSlow ()
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TMVA::TActivation
 TActivation ()
 
virtual ~TActivation ()
 
virtual Double_t Eval (Double_t arg)=0
 
virtual Double_t EvalDerivative (Double_t arg)=0
 
virtual TString GetExpression ()=0
 
virtual Double_t GetMax ()=0
 
virtual Double_t GetMin ()=0
 
virtual TClassIsA () const
 
virtual void MakeFunction (std::ostream &fout, const TString &fncName)=0
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TMVA::TActivation
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Member Functions

Double_t fast_tanh (Double_t arg)
 a fast tanh approximation More...
 

Private Attributes

Bool_t fFAST
 

#include <TMVA/TActivationTanh.h>

Inheritance diagram for TMVA::TActivationTanh:
[legend]

Constructor & Destructor Documentation

◆ TActivationTanh()

TMVA::TActivationTanh::TActivationTanh ( )
inline

Definition at line 45 of file TActivationTanh.h.

◆ ~TActivationTanh()

TMVA::TActivationTanh::~TActivationTanh ( )
inline

Definition at line 46 of file TActivationTanh.h.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

static Version_t TMVA::TActivationTanh::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 72 of file TActivationTanh.h.

◆ DeclFileName()

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

Definition at line 72 of file TActivationTanh.h.

◆ Eval()

Double_t TMVA::TActivationTanh::Eval ( Double_t  arg)
virtual

evaluate the tanh

Implements TMVA::TActivation.

Definition at line 55 of file TActivationTanh.cxx.

◆ EvalDerivative()

Double_t TMVA::TActivationTanh::EvalDerivative ( Double_t  arg)
virtual

evaluate the derivative

Implements TMVA::TActivation.

Definition at line 63 of file TActivationTanh.cxx.

◆ fast_tanh()

Double_t TMVA::TActivationTanh::fast_tanh ( Double_t  arg)
private

a fast tanh approximation

Definition at line 43 of file TActivationTanh.cxx.

◆ GetExpression()

TString TMVA::TActivationTanh::GetExpression ( )
virtual

get expressions for the tanh and its derivative whatever that may be good for ...

Implements TMVA::TActivation.

Definition at line 73 of file TActivationTanh.cxx.

◆ GetMax()

Double_t TMVA::TActivationTanh::GetMax ( )
inlinevirtual

Implements TMVA::TActivation.

Definition at line 58 of file TActivationTanh.h.

◆ GetMin()

Double_t TMVA::TActivationTanh::GetMin ( )
inlinevirtual

Implements TMVA::TActivation.

Definition at line 55 of file TActivationTanh.h.

◆ IsA()

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

Reimplemented from TMVA::TActivation.

Definition at line 72 of file TActivationTanh.h.

◆ MakeFunction()

void TMVA::TActivationTanh::MakeFunction ( std::ostream &  fout,
const TString fncName 
)
virtual

writes the Tanh sigmoid activation function source code

Implements TMVA::TActivation.

Definition at line 82 of file TActivationTanh.cxx.

◆ SetSlow()

void TMVA::TActivationTanh::SetSlow ( )
inline

Definition at line 66 of file TActivationTanh.h.

◆ Streamer()

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

Reimplemented from TMVA::TActivation.

◆ StreamerNVirtual()

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

Definition at line 72 of file TActivationTanh.h.

Member Data Documentation

◆ fFAST

Bool_t TMVA::TActivationTanh::fFAST
private

Definition at line 70 of file TActivationTanh.h.

Libraries for TMVA::TActivationTanh:
[legend]

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