15#ifndef ROOT_TMVA_PyMethodBase
16#define ROOT_TMVA_PyMethodBase
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)
Describe directory structure in memory.
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
1-D histogram with a double per channel (see TH1 documentation)
1-D histogram with a float per channel (see TH1 documentation)
Class that contains all the data information.
MethodBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="")
standard constructor
static std::vector< size_t > GetDataFromTuple(PyObject *tupleObject)
Utility function which retrieves and returns the values of the Tuple object as a vector of size_t.
static int PyIsInitialized()
Check Python interpreter initialization status.
static std::vector< size_t > GetDataFromList(PyObject *listObject)
Utility function which retrieves and returns the values of the List object as a vector of size_t.
virtual void ReadModelFromFile()=0
static PyObject * fPickleDumps
Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets) override=0
PyObject * Eval(TString code)
Evaluate Python code.
void DeclareOptions() override=0
void ReadWeightsFromXML(void *wghtnode) override=0
std::vector< Double_t > GetMvaValues(Long64_t firstEvt=0, Long64_t lastEvt=-1, Bool_t logProgress=false) override=0
get all the MVA values for the events of the current Data type
const Ranking * CreateRanking() override=0
static void PyInitialize()
Initialize Python interpreter.
static void Serialize(TString file, PyObject *classifier)
Serialize Python object.
void AddWeightsXMLTo(void *parent) const override=0
static Int_t UnSerialize(TString file, PyObject **obj)
Unserialize Python object.
static const char * PyStringAsString(PyObject *string)
Returns const char* from Python string in PyObject.
Double_t GetMvaValue(Double_t *errLower=nullptr, Double_t *errUpper=nullptr) override=0
static PyObject * fPickleLoads
static PyObject * fGlobalNS
static PyObject * fModulePickle
void ProcessOptions() override=0
static PyObject * fModuleBuiltin
PyMethodBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="")
void ReadWeightsFromStream(std::istream &) override=0
static PyObject * GetValueFromDict(PyObject *dict, const char *key)
Utility function which checks if a given key is present in a Python dictionary object and returns the...
void PyRunString(TString code, TString errorMessage="Failed to run python code", int start=256)
Execute Python code from string.
void ReadWeightsFromStream(TFile &) override
Ranking for variables in method (implementation).
Base class for spline implementation containing the Draw/Paint methods.
A TTree represents a columnar dataset.
create variable transformations
TString Python_Executable()
Function to find current Python executable used by ROOT If "Python3" is installed,...