#include "TArrow.h"
#include "TEllipse.h"
#include "TPaveLabel.h"
#include "TCanvas.h"
#include "TH2F.h"
#include "TFile.h"
#include "TString.h"
#include "TDirectory.h"
#include "TKey.h"
#include "TText.h"
#include "tmvaglob.C"
Go to the source code of this file.
Functions | |
void | draw_layer_labels (Int_t nLayers) |
void | draw_layer (TCanvas *c, TH2F *h, Int_t iHist, Int_t nLayers, Double_t maxWeight) |
void | draw_synapse (Double_t cx1, Double_t cy1, Double_t cx2, Double_t cy2, Double_t rad1, Double_t rad2, Double_t weightNormed) |
TString * | get_var_names (Int_t nVars) |
void | draw_network (TFile *f, TDirectory *d, const TString &hName="weights_hist", Bool_t movieMode=kFALSE, const TString &epoch="") |
void | draw_input_labels (Int_t nInputs, Double_t *cy, Double_t rad, Double_t layerWidth) |
void | draw_activation (TCanvas *c, Double_t cx, Double_t cy, Double_t radx, Double_t rady, Int_t whichActivation) |
void | network (TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE) |
Variables | |
TFile * | Network_GFile = 0 |
static Int_t | c_DarkBackground = TColor::GetColor( "#6e7a85" ) |
Bool_t | MovieMode = kFALSE |
void draw_activation | ( | TCanvas * | c, | |
Double_t | cx, | |||
Double_t | cy, | |||
Double_t | radx, | |||
Double_t | rady, | |||
Int_t | whichActivation | |||
) |
Definition at line 280 of file network.C.
References c, TObject::Draw(), Form(), kFALSE, name, NULL, TImage::Open(), p, and TAttImage::SetConstRatio().
Referenced by draw_layer().
Definition at line 191 of file network.C.
References get_var_names(), TColor::GetColor(), TStyle::GetTitleTextColor(), gStyle, i, t, width, x1, and x2.
Referenced by draw_layer().
Definition at line 317 of file network.C.
References c, TEllipse::Draw(), draw_activation(), draw_input_labels(), draw_synapse(), TColor::GetColor(), h, i, j, ratio, TAttFill::SetFillColor(), TAttFill::SetFillStyle(), and TAttLine::SetLineColor().
Referenced by draw_network().
void draw_layer_labels | ( | Int_t | nLayers | ) |
Definition at line 165 of file network.C.
References cx, Form(), TStyle::GetTitleFillColor(), TStyle::GetTitleTextColor(), gStyle, height, i, p, x1, and x2.
Referenced by draw_network().
void draw_network | ( | TFile * | f, | |
TDirectory * | d, | |||
const TString & | hName = "weights_hist" , |
|||
Bool_t | movieMode = kFALSE , |
|||
const TString & | epoch = "" | |||
) |
Definition at line 29 of file network.C.
References TMath::Abs(), c, c_DarkBackground, TString::Clear(), d, draw_layer(), draw_layer_labels(), epoch, Form(), TStyle::GetCanvasColor(), TROOT::GetClass(), TKey::GetClassName(), TColor::GetColor(), TROOT::GetStyle(), TStyle::GetTitleBorderSize(), TStyle::GetTitleFillColor(), TStyle::GetTitleTextColor(), gROOT, h, i, TMVAGlob::imgconv(), TClass::InheritsFrom(), j, kTRUE, TString::Length(), MovieMode, Network_GFile, TMVAGlob::plot_logo(), TKey::ReadObj(), TString::ReplaceAll(), TIter::Reset(), TString::Resize(), TStyle::SetCanvasColor(), TStyle::SetTitleBorderSize(), TStyle::SetTitleFillColor(), TStyle::SetTitleTextColor(), and t.
Referenced by DrawNetworkMovie(), and network().
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 at line 398 of file network.C.
References TMath::Abs(), arrow(), and MAX_COLOR.
Referenced by draw_layer().
Definition at line 224 of file network.C.
References dir(), TDirectoryFile::Get(), TROOT::GetClass(), TNamed::GetTitle(), gROOT, i, TClass::InheritsFrom(), and Network_GFile.
Referenced by draw_input_labels().
Definition at line 420 of file network.C.
References dir(), draw_network(), TROOT::GetClass(), TDirectoryFile::GetListOfKeys(), TDirectory::GetListOfKeys(), TMVAGlob::GetListOfTitles(), gROOT, TMVAGlob::Initialize(), and TMVAGlob::OpenFile().
Int_t c_DarkBackground = TColor::GetColor( "#6e7a85" ) [static] |
TFile* Network_GFile = 0 |