31 #ifndef ROOT_TMVA_TActivationReLU
40 TMVA::TActivationReLU::TActivationReLU()
68 fout <<
"double " << fncName <<
"(double x) const {" << std::endl;
69 fout <<
" // rectified linear unit" << std::endl;
70 fout <<
" return x>0 ? x : 0; " << std::endl;
71 fout <<
"}" << std::endl;
~TActivationReLU()
destructor
ClassImp(TMVA::TActivationReLU) TMVA
constructor for ReLU
TString GetExpression()
get expressions for the tanh and its derivative
virtual void MakeFunction(std::ostream &fout, const TString &fncName)
writes the sigmoid activation function source code