Example of a Multi Layer Perceptron For a LEP search for invisible Higgs boson, a neural network was used to separate the signal from the background passing some selection cuts.
Here is a simplified version of this network, taking into account only WW events.
Processing /builddir/build/BUILD/root-6.10.08/tutorials/mlp/mlpHiggs.C...
Training the Neural Network
Epoch: 0 learn=0.124122 test=0.122915
Epoch: 10 learn=0.0966653 test=0.0913168
Epoch: 20 learn=0.0925142 test=0.0883997
Epoch: 30 learn=0.091153 test=0.0874582
Epoch: 40 learn=0.0905603 test=0.0874737
Epoch: 50 learn=0.0903418 test=0.0871865
Epoch: 60 learn=0.0897938 test=0.0870588
Epoch: 70 learn=0.0892617 test=0.0870335
Epoch: 80 learn=0.0883762 test=0.0861658
Epoch: 90 learn=0.0879264 test=0.0856036
Epoch: 99 learn=0.0876235 test=0.084459
Training done.
test.py created.
Network with structure: @msumf,@ptsumf,@acolin:5:3:type
inputs with low values in the differences plot may not be needed
@msumf -> 0.0174142 +/- 0.0169806
@ptsumf -> 0.0355907 +/- 0.0419771
@acolin -> 0.0343257 +/- 0.0426628
void mlpHiggs(
Int_t ntrain=100) {
const char *fname = "mlpHiggs.root";
} else {
printf("accessing %s file from http://root.cern.ch/files\n",fname);
}
if (!input) return;
TTree *simu =
new TTree(
"MonteCarlo",
"Filtered Monte Carlo Events");
Float_t ptsumf, qelep, nch, msumf, minvis, acopl, acolin;
simu->
Branch(
"ptsumf", &ptsumf,
"ptsumf/F");
simu->
Branch(
"qelep", &qelep,
"qelep/F");
simu->
Branch(
"nch", &nch,
"nch/F");
simu->
Branch(
"msumf", &msumf,
"msumf/F");
simu->
Branch(
"minvis", &minvis,
"minvis/F");
simu->
Branch(
"acopl", &acopl,
"acopl/F");
simu->
Branch(
"acolin", &acolin,
"acolin/F");
simu->
Branch(
"type", &type,
"type/I");
type = 1;
for (i = 0; i < sig_filtered->
GetEntries(); i++) {
}
type = 0;
}
"ptsumf",simu,"Entry$%2","(Entry$+1)%2");
mlp->
Train(ntrain,
"text,graph,update=10");
ana.GatherInformations();
ana.CheckNetwork();
ana.DrawDInputs();
ana.DrawNetwork(0,"type==1","type==0");
TH1F *bg =
new TH1F(
"bgh",
"NN output", 50, -.5, 1.5);
TH1F *sig =
new TH1F(
"sigh",
"NN output", 50, -.5, 1.5);
params[0] = msumf;
params[1] = ptsumf;
params[2] = acolin;
}
for (i = 0; i < sig_filtered->
GetEntries(); i++) {
params[0] = msumf;
params[1] = ptsumf;
params[2] = acolin;
}
legend->
AddEntry(bg,
"Background (WW)");
legend->
AddEntry(sig,
"Signal (Higgs)");
delete input;
}
- Author
- Christophe Delaere
Definition in file mlpHiggs.C.