// @(#)root/tmva:$Id$ // Author: Omar Zapata 2016 /************************************************************************* * Copyright (C) 2016, Omar Andres Zapata Mesa * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TMVA_Envelope #define ROOT_TMVA_Envelope #include #include #include #include #include #ifndef _MSC_VER #include #endif #include #include #include #include /*! \class TMVA::Envelope * Abstract base class for all high level ml algorithms, * you can book ml methods like BDT, MLP. SVM etc.. * and set a TMVA::DataLoader object to run your code * in the overloaded method Evaluate. \ingroup TMVA Base class for all machine learning algorithms */ namespace TMVA { class Envelope:public Configurable { protected: std::vector fMethods; /// fDataLoader; /// fFile; /// &GetMethods(); protected: /** Utility method to get TMVA::DataInputHandler reference from the DataLoader. \return TMVA::DataInputHandler reference. */ DataInputHandler &GetDataLoaderDataInput() { return fDataLoader->DataInput(); } /** Utility method to get TMVA::DataSetInfo reference from the DataLoader. \return TMVA::DataSetInfo reference. */ DataSetInfo &GetDataLoaderDataSetInfo() { return fDataLoader->GetDataSetInfo(); } /** Utility method to get TMVA::DataSetManager pointer from the DataLoader. \return TMVA::DataSetManager pointer. */ DataSetManager *GetDataLoaderDataSetManager() { return fDataLoader->GetDataSetInfo().GetDataSetManager(); } /** Utility method to get base dir directory from current file. \return TDirectory* pointer. */ TDirectory *RootBaseDir() { return (TDirectory *)fFile.get(); } void WriteDataInformation(TMVA::DataSetInfo &fDataSetInfo, TMVA::Types::EAnalysisType fAnalysisType); ClassDef(Envelope, 0); }; } #endif