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.127455 test=0.126568
Epoch: 10 learn=0.0995027 test=0.0944632
Epoch: 20 learn=0.0927357 test=0.0885546
Epoch: 30 learn=0.0915638 test=0.088197
Epoch: 40 learn=0.0909201 test=0.0877256
Epoch: 50 learn=0.0903264 test=0.086635
Epoch: 60 learn=0.0899036 test=0.0866893
Epoch: 70 learn=0.089156 test=0.0847652
Epoch: 80 learn=0.0887579 test=0.0850594
Epoch: 90 learn=0.0882116 test=0.0844218
Epoch: 99 learn=0.0878394 test=0.0838672
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.0156322 +/- 0.0146194
@ptsumf -> 0.0295782 +/- 0.0361832
@acolin -> 0.0402736 +/- 0.0437641
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.