ROOT 6.12/07 Reference Guide |
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>
TMVA::TActivationTanh::TActivationTanh | ( | ) |
constructor for tanh sigmoid (normalized in [-1,1])
Definition at line 46 of file TActivationTanh.cxx.
TMVA::TActivationTanh::~TActivationTanh | ( | ) |
destructor
Definition at line 54 of file TActivationTanh.cxx.
evaluate the derivative
Implements TMVA::TActivation.
Definition at line 81 of file TActivationTanh.cxx.
a fast tanh approximation
Definition at line 61 of file TActivationTanh.cxx.
|
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.
|
inlinevirtual |
Implements TMVA::TActivation.
Definition at line 59 of file TActivationTanh.h.
|
inlinevirtual |
Implements TMVA::TActivation.
Definition at line 56 of file TActivationTanh.h.
writes the sigmoid activation function source code
Implements TMVA::TActivation.
Definition at line 100 of file TActivationTanh.cxx.
|
inline |
Definition at line 67 of file TActivationTanh.h.
|
private |
Definition at line 71 of file TActivationTanh.h.