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

Tanh activation function for ANN.

This really simple implementation uses TFormula and should probably be replaced with something more efficient later.

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

◆ ~TActivationTanh()

TMVA::TActivationTanh::~TActivationTanh ( )

destructor

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

◆ EvalDerivative()

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

evaluate the derivative

Implements TMVA::TActivation.

Definition at line 81 of file TActivationTanh.cxx.

◆ fast_tanh()

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

a fast tanh approximation

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

◆ GetMax()

Double_t TMVA::TActivationTanh::GetMax ( )
inlinevirtual

Implements TMVA::TActivation.

Definition at line 59 of file TActivationTanh.h.

◆ GetMin()

Double_t TMVA::TActivationTanh::GetMin ( )
inlinevirtual

Implements TMVA::TActivation.

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

◆ SetSlow()

void TMVA::TActivationTanh::SetSlow ( )
inline

Definition at line 67 of file TActivationTanh.h.

Member Data Documentation

◆ fFAST

Bool_t TMVA::TActivationTanh::fFAST
private

Definition at line 71 of file TActivationTanh.h.

Libraries for TMVA::TActivationTanh:
[legend]

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