53 fLogger( new
MsgLogger(
"TActivationChooser") )
79 Log() << kFATAL <<
"no Activation function of type " <<
type <<
" found" <<
Endl;
92 if (
type == fLINEAR)
return CreateActivation(kLinear);
93 else if (
type == fSIGMOID)
return CreateActivation(
kSigmoid);
94 else if (
type == fTANH)
return CreateActivation(
kTanh);
95 else if (
type == fRELU)
return CreateActivation(kReLU);
96 else if (
type == fRADIAL)
return CreateActivation(kRadial);
98 Log() << kFATAL <<
"no Activation function of type " <<
type <<
" found" <<
Endl;
109 std::vector<TString>* names =
new std::vector<TString>();
110 names->push_back(fLINEAR);
111 names->push_back(fSIGMOID);
112 names->push_back(fTANH);
113 names->push_back(fRELU);
114 names->push_back(fRADIAL);
ostringstream derivative to redirect and format output
std::vector< TString > * GetAllActivationNames() const
returns the names of all know activation functions
virtual ~TActivationChooser()
Destructor.
TActivationChooser()
Default constructor.
TActivation * CreateActivation(EActivationType type) const
instantiate the correct activation object according to the type chosen (given as the enumeration type...
Identity activation function for TNeuron.
Radial basis activation function for ANN.
Rectified Linear Unit activation function for TNeuron.
Sigmoid activation function for TNeuron.
Tanh activation function for ANN.
Interface for TNeuron activation function classes.
MsgLogger & Endl(MsgLogger &ml)