60   TIter next = 
d->GetListOfKeys();
 
   68   while ((key = (
TKey*)next())) {
 
   81         cout << 
"Big troubles in \"draw_network\" (1)" << endl;
 
   84      std::cout<<
h->GetName()<<
"----"<<
hName<<std::endl;
 
   90         for (
Int_t i = 0; i < 
n1; i++) {
 
   99      cout << 
"Error: could not find histograms" << endl;
 
  108   while ((key = (
TKey*)next())) {
 
  118         cout << 
"Big troubles in \"draw_network\" (2)" << endl;
 
  137      t.
DrawTextNDC( 1 - 
c->GetRightMargin(), 1 - 
c->GetTopMargin() - 0.033,
 
  151      foutname.ReplaceAll(
"epochmonitoring___",
"");
 
  154      cout << 
"storing file: " << 
foutname << endl;
 
  192      p->SetFillStyle(1001);
 
  193      p->SetBorderSize( 0 );
 
  214      else                input = 
"Bias node";
 
  232                                    "InputVariables_DecorrTransform",
 
  233                                    "InputVariables_PCATransform",
 
  235                                    "InputVariables_Norm",
 
  236                                    "InputVariables_Deco"};
 
  239   for (
Int_t i=0; i<6; i++) {
 
  244      cout << 
"*** Big troubles in macro \"network.cxx\": could not find directory for input variables, " 
  245           << 
"and hence could not determine variable names --> abort" << endl;
 
  256   while ((key = (
TKey*)next())) {
 
  278      cout << 
"*** Troubles in \"network.cxx\": did not reproduce correct number of " 
  279           << 
"input variables: " << 
ivar << 
" != " << 
nVars << endl;
 
  298      cout << 
"Activation index " << 
whichActivation << 
" is not known." << endl;
 
  299      cout << 
"You messed up or you need to modify network.cxx to introduce a new " 
  300           << 
"activation function (and image) corresponding to this index" << endl;
 
  304      cout << 
"Could not create an image... exit" << endl;
 
  332   rad = 0.04*650/
c->GetWindowHeight();
 
  357         if (i == 0) 
ellipse->SetLineColor(9);
 
  416   arrow->SetFillColor(1);
 
  417   arrow->SetFillStyle(1001);
 
  434   while( (key = (
TKey*)next()) ) {
 
  436      if( ! 
gROOT->GetClass(key->
GetClassName())->InheritsFrom(
"TDirectory") ) 
continue;
 
  438      cout << 
"--- Found directory: " << ((
TDirectory*)key->
ReadObj())->GetName() << endl;
 
  445         if( ! 
gROOT->GetClass(
titkey->GetClassName())->InheritsFrom(
"TDirectory") ) 
continue;
 
  452            cout << 
"No titles found for Method_MLP" << endl;
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char y1
R__EXTERN TStyle * gStyle
Draw all kinds of Arrows.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Bool_t InheritsFrom(const char *cl) const override
Return kTRUE if this class inherits from a class with name "classname".
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory") override
Find a directory named "apath".
Describe directory structure in memory.
virtual Bool_t cd()
Change current directory to "this" directory.
virtual TList * GetListOfKeys() const
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
TH1 is the base class of all histogram classes in ROOT.
2-D histogram with a float per channel (see TH1 documentation)
An abstract interface to image processing library.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual const char * GetClassName() const
Short_t GetCycle() const
Return cycle number associated to this key.
virtual TObject * ReadObj()
To read a TObject* from the file.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
The most important graphics class in the ROOT system.
A Pave (see TPave) with a text centered in the Pave.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
TStyle objects may be created to define special styles.
Color_t GetTitleFillColor() const
Color_t GetTitleTextColor() const
Base class for several text objects.
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
virtual TText * DrawTextNDC(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates in NDC.
double ratio(double numerator, double denominator)
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)
void Initialize(Bool_t useTMVAStyle=kTRUE)
void plot_logo(Float_t v_scale=1.0, Float_t skew=1.0)
TFile * OpenFile(const TString &fin)
TImage * findImage(const char *imageName)
void imgconv(TCanvas *c, const TString &fname)
TString * get_var_names(TString dataset, Int_t nVars)
void draw_layer(TString dataset, TCanvas *c, TH2F *h, Int_t iHist, Int_t nLayers, Double_t maxWeight)
void draw_activation(TCanvas *c, Double_t cx, Double_t cy, Double_t radx, Double_t rady, Int_t whichActivation)
void draw_network(TString dataset, TFile *f, TDirectory *d, const TString &hName="weights_hist", Bool_t movieMode=kFALSE, const TString &epoch="")
void draw_input_labels(TString dataset, Int_t nInputs, Double_t *cy, Double_t rad, Double_t layerWidth)
void draw_layer_labels(Int_t nLayers)
void draw_synapse(Double_t cx1, Double_t cy1, Double_t cx2, Double_t cy2, Double_t rad1, Double_t rad2, Double_t weightNormed)
void network(TString dataset, TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
static Int_t c_DarkBackground