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;
106 std::vector<TString>*
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);
Radial basis activation function for ANN.
MsgLogger & Endl(MsgLogger &ml)
Sigmoid activation function for TNeuron.
TActivation * CreateActivation(EActivationType type) const
instantiate the correct activation object according to the type chosen (given as the enumeration type...
virtual ~TActivationChooser()
Destructor.
Tanh activation function for ANN.
Identity activation function for TNeuron.
Rectified Linear Unit activation function for TNeuron.
TActivationChooser()
Default constructor.
std::vector< TString > * GetAllActivationNames() const
returns the names of all know activation functions
ostringstream derivative to redirect and format output
Interface for TNeuron activation function classes.