Logo ROOT   6.07/09
Reference Guide
network.h
Go to the documentation of this file.
1 #ifndef network__HH
2 #define network__HH
3 #include "TArrow.h"
4 #include "TEllipse.h"
5 #include "TPaveLabel.h"
6 #include "TCanvas.h"
7 #include "TH2F.h"
8 #include "TFile.h"
9 #include "TString.h"
10 #include "TDirectory.h"
11 #include "TKey.h"
12 #include "TText.h"
13 
14 #include "tmvaglob.h"
15 namespace TMVA{
16 
17  // this macro prints out a neural network generated by MethodMLP graphically
18  // @author: Matt Jachowski, jachowski@stanford.edu
19 
20  void draw_layer_labels( Int_t nLayers );
21  void draw_input_labels(TString dataset,Int_t nInputs, Double_t* cy,
22  Double_t rad, Double_t layerWidth);
23  void draw_layer (TString dataset, TCanvas* c, TH2F* h, Int_t iHist, Int_t nLayers, Double_t maxWeight );
24  void draw_synapse ( Double_t cx1, Double_t cy1, Double_t cx2, Double_t cy2,
25  Double_t rad1, Double_t rad2, Double_t weightNormed );
26  TString* get_var_names (TString dataset, Int_t nVars );
27 
28  void draw_network(TString dataset, TFile* f, TDirectory* d, const TString& hName = "weights_hist",
29  Bool_t movieMode = kFALSE, const TString& epoch = "" );
30 
31  void draw_activation(TCanvas* c, Double_t cx, Double_t cy,
32  Double_t radx, Double_t rady, Int_t whichActivation);
33  void network(TString dataset, TString fin = "TMVA.root", Bool_t useTMVAStyle = kTRUE );
34 
35 }
36 #endif
return c
TH1 * h
Definition: legend2.C:5
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Definition: TFile.h:50
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
void draw_activation(TCanvas *c, Double_t cx, Double_t cy, Double_t radx, Double_t rady, Int_t whichActivation)
Definition: network.cxx:285
void network(TString dataset, TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)
Definition: network.cxx:425
void draw_network(TString dataset, TFile *f, TDirectory *d, const TString &hName="weights_hist", Bool_t movieMode=kFALSE, const TString &epoch="")
Definition: network.cxx:29
void draw_layer(TString dataset, TCanvas *c, TH2F *h, Int_t iHist, Int_t nLayers, Double_t maxWeight)
Definition: network.cxx:322
TString * get_var_names(TString dataset, Int_t nVars)
Definition: network.cxx:229
tomato 2-D histogram with a float per channel (see TH1 documentation)}
Definition: TH2.h:255
The Canvas class.
Definition: TCanvas.h:41
double f(double x)
double Double_t
Definition: RtypesCore.h:55
Describe directory structure in memory.
Definition: TDirectory.h:44
void draw_synapse(Double_t cx1, Double_t cy1, Double_t cx2, Double_t cy2, Double_t rad1, Double_t rad2, Double_t weightNormed)
Definition: network.cxx:403
Abstract ClassifierFactory template that handles arbitrary types.
void draw_input_labels(TString dataset, Int_t nInputs, Double_t *cy, Double_t rad, Double_t layerWidth)
Definition: network.cxx:198
void draw_layer_labels(Int_t nLayers)
Definition: network.cxx:172
const Bool_t kTRUE
Definition: Rtypes.h:91