Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 #include "TH1D.h"
29 #include <iostream>
30 namespace TMVA {
31 
32 
33  class TrainingHistory {
34 
35  public:
36  typedef std::vector<std::pair<Int_t,Double_t>> IterationRecord;
37  TrainingHistory();
38  virtual ~TrainingHistory();
39 
40  void AddValue(TString Property, Int_t stage, Double_t value);
41  void SaveHistory(TString Name);
42  private:
43  std::map<TString,int> fHistoryMap;
44  std::vector<IterationRecord*> fHistoryData;
45 
46  };
47 
48 } // namespace TMVA
49 
50 #endif