26#ifndef ROOT_TMVA_MethodPyKeras
27#define ROOT_TMVA_MethodPyKeras
49 void Train()
override;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
long long Long64_t
Portable signed long integer 8 bytes.
#define ClassDefOverride(name, id)
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
Class that contains all the data information.
std::vector< Float_t > GetAllRegressionValues() override
Get al regression values in one call.
void GetHelpMessage() const override
void ProcessOptions() override
Function processing the options This is called only when creating the method before training not when...
std::vector< float > fOutput
std::vector< Float_t > & GetRegressionValues() override
const Ranking * CreateRanking() override
void AddWeightsXMLTo(void *) const override
Bool_t UseTFKeras() const
void ReadWeightsFromXML(void *) override
Int_t fTriesEarlyStopping
void ReadWeightsFromStream(TFile &) override
EBackendType
enumeration defining the used Keras backend
void SetupKerasModel(Bool_t loadTrainedModel)
Double_t GetMvaValue(Double_t *errLower, Double_t *errUpper0) override
void DeclareOptions() override
UInt_t GetNumValidationSamples()
Validation of the ValidationSize option.
void TestClassification() override
initialization
void SetupKerasModelForEval()
Setting up model for evaluation Add here some needed optimizations like disabling eager execution.
std::vector< Float_t > GetAllMulticlassValues() override
Get all multi-class values.
bool fModelIsSetupForEval
TString fNumValidationString
std::vector< float > fVals
std::vector< Double_t > GetMvaValues(Long64_t firstEvt, Long64_t lastEvt, Bool_t logProgress) override
get all the MVA values for the events of the current Data type
TString GetKerasBackendName()
MethodPyKeras(const TString &jobName, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="")
TString fLearningRateSchedule
std::vector< Float_t > & GetMulticlassValues() override
void ReadWeightsFromStream(std::istream &) override
Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t) override
void InitEvaluation(size_t nEvents)
void Init() override
Initialization function called from MethodBase::SetupMethod() Note that option string are not yet fil...
void ReadModelFromFile() override
EBackendType GetKerasBackend()
Get the Keras backend (can be: TensorFlow, Theano or CNTK).
TString fFilenameTrainedModel
PyMethodBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="")
Ranking for variables in method (implementation).
create variable transformations