Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMVA::TActivationTanh Class Reference

Definition at line 48 of file TActivationTanh.h.

Public Member Functions

 TActivationTanh ()
 constructor for tanh sigmoid (normalized in [-1,1]) More...
 
 ~TActivationTanh ()
 destructor More...
 
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 void MakeFunction (std::ostream &fout, const TString &fncName)
 writes the sigmoid activation function source code More...
 
void SetSlow ()
 
- Public Member Functions inherited from TMVA::TActivation
 TActivation ()
 
virtual ~TActivation ()
 

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 ( )

constructor for tanh sigmoid (normalized in [-1,1])

Definition at line 47 of file TActivationTanh.cxx.

◆ ~TActivationTanh()

TMVA::TActivationTanh::~TActivationTanh ( )

destructor

Definition at line 55 of file TActivationTanh.cxx.

Member Function Documentation

◆ Eval()

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

evaluate the tanh

Implements TMVA::TActivation.

Definition at line 74 of file TActivationTanh.cxx.

◆ EvalDerivative()

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

evaluate the derivative

Implements TMVA::TActivation.

Definition at line 82 of file TActivationTanh.cxx.

◆ fast_tanh()

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

a fast tanh approximation

Definition at line 62 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 92 of file TActivationTanh.cxx.

◆ GetMax()

Double_t TMVA::TActivationTanh::GetMax ( )
inlinevirtual

Implements TMVA::TActivation.

Definition at line 65 of file TActivationTanh.h.

◆ GetMin()

Double_t TMVA::TActivationTanh::GetMin ( )
inlinevirtual

Implements TMVA::TActivation.

Definition at line 62 of file TActivationTanh.h.

◆ MakeFunction()

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

writes the sigmoid activation function source code

Implements TMVA::TActivation.

Definition at line 101 of file TActivationTanh.cxx.

◆ SetSlow()

void TMVA::TActivationTanh::SetSlow ( )
inline

Definition at line 73 of file TActivationTanh.h.

Member Data Documentation

◆ fFAST

Bool_t TMVA::TActivationTanh::fFAST
private

Definition at line 77 of file TActivationTanh.h.


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