47 TMVA::TActivationChooser::TActivationChooser() :
53 fLogger( new MsgLogger(
"TActivationChooser") )
60 TMVA::TActivationChooser::~TActivationChooser()
70 TMVA::TActivationChooser::CreateActivation(EActivationType type)
const
73 case kLinear:
return new TActivationIdentity();
74 case kSigmoid:
return new TActivationSigmoid();
75 case kTanh:
return new TActivationTanh();
76 case kReLU:
return new TActivationReLU();
77 case kRadial:
return new TActivationRadial();
79 Log() << kFATAL <<
"no Activation function of type " << type <<
" found" << Endl;
90 TMVA::TActivationChooser::CreateActivation(
const TString& type)
const
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>*
107 TMVA::TActivationChooser::GetAllActivationNames()
const
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);