Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
TMVA::TActivationSigmoid Class Reference

Sigmoid activation function for TNeuron.

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

Definition at line 42 of file TActivationSigmoid.h.

Public Member Functions

 TActivationSigmoid ()
 constructor for sigmoid normalized in [0,1] More...
 
 ~TActivationSigmoid ()
 destructor More...
 
Double_t Eval (Double_t arg)
 evaluate the sigmoid More...
 
Double_t EvalDerivative (Double_t arg)
 evaluate the derivative of the sigmoid More...
 
TString GetExpression ()
 get expressions for the sigmoid and its derivatives More...
 
Double_t GetMax ()
 
Double_t GetMin ()
 
virtual void MakeFunction (std::ostream &fout, const TString &fncName)
 writes the sigmoid activation function source code More...
 
- Public Member Functions inherited from TMVA::TActivation
 TActivation ()
 
virtual ~TActivation ()
 

Private Attributes

TFormulafEqn
 
TFormulafEqnDerivative
 

#include <TMVA/TActivationSigmoid.h>

Inheritance diagram for TMVA::TActivationSigmoid:
[legend]

Constructor & Destructor Documentation

◆ TActivationSigmoid()

TMVA::TActivationSigmoid::TActivationSigmoid ( )

constructor for sigmoid normalized in [0,1]

Definition at line 48 of file TActivationSigmoid.cxx.

◆ ~TActivationSigmoid()

TMVA::TActivationSigmoid::~TActivationSigmoid ( )

destructor

Definition at line 58 of file TActivationSigmoid.cxx.

Member Function Documentation

◆ Eval()

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

evaluate the sigmoid

Implements TMVA::TActivation.

Definition at line 67 of file TActivationSigmoid.cxx.

◆ EvalDerivative()

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

evaluate the derivative of the sigmoid

Implements TMVA::TActivation.

Definition at line 78 of file TActivationSigmoid.cxx.

◆ GetExpression()

TString TMVA::TActivationSigmoid::GetExpression ( )
virtual

get expressions for the sigmoid and its derivatives

Implements TMVA::TActivation.

Definition at line 89 of file TActivationSigmoid.cxx.

◆ GetMax()

Double_t TMVA::TActivationSigmoid::GetMax ( )
inlinevirtual

Implements TMVA::TActivation.

Definition at line 59 of file TActivationSigmoid.h.

◆ GetMin()

Double_t TMVA::TActivationSigmoid::GetMin ( )
inlinevirtual

Implements TMVA::TActivation.

Definition at line 56 of file TActivationSigmoid.h.

◆ MakeFunction()

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

writes the sigmoid activation function source code

Implements TMVA::TActivation.

Definition at line 107 of file TActivationSigmoid.cxx.

Member Data Documentation

◆ fEqn

TFormula* TMVA::TActivationSigmoid::fEqn
private

Definition at line 69 of file TActivationSigmoid.h.

◆ fEqnDerivative

TFormula* TMVA::TActivationSigmoid::fEqnDerivative
private

Definition at line 70 of file TActivationSigmoid.h.

Libraries for TMVA::TActivationSigmoid:
[legend]

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