This class is needed by JsMVA, and it's a helper class for tracking errors during the training in Jupyter notebook. Itâ€™s only initialized in Jupyter notebook context. In initialization we specify some title, and a TGraph will be created for every title. We can add new data points easily to all TGraphs. These graphs are added to a TMultiGraph, and during an interactive training we get this TMultiGraph object and plot it with JsROOT.
Definition at line 94 of file MethodBase.h.
Public Member Functions  
IPythonInteractive ()  
standard constructor More...  
~IPythonInteractive ()  
standard destructor More...  
void  AddPoint (Double_t x, Double_t y1, Double_t y2) 
This function is used only in 2 TGraph case, and it will add new data points to graphs. More...  
void  AddPoint (std::vector< Double_t > &dat) 
This function can add data points to as many TGraphs as we have. More...  
void  ClearGraphs () 
This function sets the point number to 0 for all graphs. More...  
TMultiGraph *  Get () 
void  Init (std::vector< TString > &graphTitles) 
This function gets some title and it creates a TGraph for every title. More...  
bool  NotInitialized () 
Private Attributes  
std::vector< TGraph * >  fGraphs 
Int_t  fIndex 
TMultiGraph *  fMultiGraph 
Int_t  fNumGraphs 
#include <TMVA/MethodBase.h>
TMVA::IPythonInteractive::IPythonInteractive  (  ) 
standard constructor
Definition at line 146 of file MethodBase.cxx.
TMVA::IPythonInteractive::~IPythonInteractive  (  ) 
standard destructor
Definition at line 154 of file MethodBase.cxx.
This function is used only in 2 TGraph case, and it will add new data points to graphs.
[in]  x  the x coordinate 
[in]  y1  the y coordinate for the first TGraph 
[in]  y2  the y coordinate for the second TGraph 
Definition at line 207 of file MethodBase.cxx.
This function can add data points to as many TGraphs as we have.
[in]  dat  vector of data points. The dat[0] contains the x coordinate, dat[1] contains the y coordinate for first TGraph, dat[2] for second, ... 
Definition at line 223 of file MethodBase.cxx.
void TMVA::IPythonInteractive::ClearGraphs  (  ) 
This function sets the point number to 0 for all graphs.
Definition at line 193 of file MethodBase.cxx.

inline 
Definition at line 102 of file MethodBase.h.
This function gets some title and it creates a TGraph for every title.
It also sets up the style for every TGraph. All graphs are added to a single TMultiGraph.
[in]  graphTitles  vector of titles 
Definition at line 169 of file MethodBase.cxx.

inline 
Definition at line 103 of file MethodBase.h.

private 
Definition at line 106 of file MethodBase.h.

private 
Definition at line 108 of file MethodBase.h.

private 
Definition at line 103 of file MethodBase.h.

private 
Definition at line 107 of file MethodBase.h.