Logo ROOT  
Reference Guide
TrainingHistory.h
Go to the documentation of this file.
1 /**********************************************************************************
2  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
3  * Package: TMVA *
4  * Class : MsgLogger *
5  * Web : http://tmva.sourceforge.net *
6  * *
7  * Description: *
8  * Implementation (see header for description) *
9  * *
10  * Author: *
11  * Joseph McKenna <Joseph.McKenna@cern.ch> - Aarhus, Denmark *
12  * *
13 * Copyright (c) 2019: *
14  * Aarhus, Denmark *
15  * *
16  * Redistribution and use in source and binary forms, with or without *
17  * modification, are permitted according to the terms listed in LICENSE *
18  * (http://tmva.sourceforge.net/LICENSE) *
19  **********************************************************************************/
20 
21 
22 #ifndef ROOT_TMVA_TrainingHistory
23 #define ROOT_TMVA_TrainingHistory
24 
25 #include <vector>
26 #include "TString.h"
27 #include <map>
28 
29 namespace TMVA {
30 
31  class TrainingHistory {
32 
33  public:
34  typedef std::vector<std::pair<Int_t,Double_t>> IterationRecord;
36  virtual ~TrainingHistory();
37 
38  void AddValue(TString Property, Int_t stage, Double_t value);
39  void SaveHistory(TString Name);
40  private:
41  std::map<TString,int> fHistoryMap;
42  std::vector<IterationRecord*> fHistoryData;
43 
44  };
45 
46 } // namespace TMVA
47 
48 #endif
TMVA::TrainingHistory::fHistoryData
std::vector< IterationRecord * > fHistoryData
Definition: TrainingHistory.h:78
TMVA::TrainingHistory::TrainingHistory
TrainingHistory()
constructor
Definition: TrainingHistory.cxx:36
TMVA::TrainingHistory::IterationRecord
std::vector< std::pair< Int_t, Double_t > > IterationRecord
Definition: TrainingHistory.h:70
Int_t
int Int_t
Definition: RtypesCore.h:45
TString
Definition: TString.h:136
TString.h
TMVA::TrainingHistory::fHistoryMap
std::map< TString, int > fHistoryMap
Definition: TrainingHistory.h:77
TMVA::TrainingHistory::AddValue
void AddValue(TString Property, Int_t stage, Double_t value)
Definition: TrainingHistory.cxx:47
TMVA::TrainingHistory::SaveHistory
void SaveHistory(TString Name)
Definition: TrainingHistory.cxx:60
xmlio::Name
const char * Name
Definition: TXMLSetup.cxx:73
Double_t
double Double_t
Definition: RtypesCore.h:59
TMVA::TrainingHistory::~TrainingHistory
virtual ~TrainingHistory()
Definition: TrainingHistory.cxx:40
TMVA
create variable transformations
Definition: GeneticMinimizer.h:22