Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMLPAnalyzer.h
Go to the documentation of this file.
1// @(#)root/mlp:$Id$
2// Author: Christophe.Delaere@cern.ch 25/04/04
3
4/*************************************************************************
5 * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TMLPAnalyzer
13#define ROOT_TMLPAnalyzer
14
15
16#include "TObject.h"
17
18class TTree;
19class TNeuron;
20class TSynapse;
22class TProfile;
23class THStack;
24
25class TMLPAnalyzer : public TObject {
26
27private:
31
32protected:
34 Int_t GetNeurons(Int_t layer);
36 const char* GetInputNeuronTitle(Int_t in);
37 const char* GetOutputNeuronTitle(Int_t out);
38
39public:
41 fNetwork(&net), fAnalysisTree(nullptr), fIOTree(nullptr) {}
43 fNetwork(net), fAnalysisTree(nullptr), fIOTree(nullptr) {}
44 ~TMLPAnalyzer() override;
45 void DrawNetwork(Int_t neuron, const char* signal, const char* bg);
46 void DrawDInput(Int_t i);
47 void DrawDInputs();
51 Option_t *option="");
53
54 void CheckNetwork();
55 void GatherInformations();
56 TTree* GetIOTree() const { return fIOTree;}
57
58 ClassDefOverride(TMLPAnalyzer, 0) // A simple analysis class for MLP
59};
60
61#endif
int Int_t
Definition RtypesCore.h:45
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
The Histogram stack class.
Definition THStack.h:38
This utility class contains a set of tests usefull when developing a neural network.
TTree * fAnalysisTree
Int_t GetNeurons(Int_t layer)
Returns the number of neurons in given layer.
Int_t GetLayers()
Returns the number of layers.
TProfile * DrawTruthDeviation(Int_t outnode=0, Option_t *option="")
Create a profile of the difference of the MLP output minus the true value for a given output node out...
void DrawDInput(Int_t i)
Draws the distribution (on the test sample) of the impact on the network output of a small variation ...
const char * GetOutputNeuronTitle(Int_t out)
Returns the name of any neuron from the output layer.
~TMLPAnalyzer() override
Destructor.
TMLPAnalyzer(TMultiLayerPerceptron &net)
void DrawDInputs()
Draws the distribution (on the test sample) of the impact on the network output of a small variation ...
TTree * fIOTree
THStack * DrawTruthDeviationInsOut(Int_t outnode=0, Option_t *option="")
Creates a profile of the difference of the MLP output outnode minus the true value of outnode vs the ...
void CheckNetwork()
Gives some information about the network in the terminal.
void GatherInformations()
Collect information about what is useful in the network.
THStack * DrawTruthDeviations(Option_t *option="")
Creates TProfiles of the difference of the MLP output minus the true value vs the true value,...
TProfile * DrawTruthDeviationInOut(Int_t innode, Int_t outnode=0, Option_t *option="")
Creates a profile of the difference of the MLP output outnode minus the true value of outnode vs the ...
const char * GetInputNeuronTitle(Int_t in)
Returns the name of any neuron from the input layer.
TMultiLayerPerceptron * fNetwork
TTree * GetIOTree() const
TMLPAnalyzer(TMultiLayerPerceptron *net)
TString GetNeuronFormula(Int_t idx)
Returns the formula used as input for neuron (idx) in the first layer.
void DrawNetwork(Int_t neuron, const char *signal, const char *bg)
Draws the distribution of the neural network (using ith neuron).
This class describes a neural network.
This class describes an elementary neuron, which is the basic element for a Neural Network.
Definition TNeuron.h:25
Mother of all ROOT objects.
Definition TObject.h:41
Profile Histogram.
Definition TProfile.h:32
Basic string class.
Definition TString.h:139
This is a simple weighted bidirectional connection between two neurons.
Definition TSynapse.h:20
A TTree represents a columnar dataset.
Definition TTree.h:79