Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
 
Double_t EvalDerivative (Double_t arg)
 evaluate the derivative
 
TString GetExpression ()
 get expressions for the tanh and its derivative whatever that may be good for ...
 
Double_t GetMax ()
 
Double_t GetMin ()
 
virtual void MakeFunction (std::ostream &fout, const TString &fncName)
 writes the Tanh sigmoid activation function source code
 
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
 

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

◆ 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.

◆ 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.

Member Data Documentation

◆ fFAST

Bool_t TMVA::TActivationTanh::fFAST
private

Definition at line 70 of file TActivationTanh.h.

Libraries for TMVA::TActivationTanh:

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