18from ROOT
import TMVA, TFile, TString
19from array
import array
20from subprocess
import call
31if not isfile(
'tmva_class_example.root'):
32 call([
'curl',
'-L',
'-O',
'http://root.cern.ch/files/tmva_class_example.root'])
41 branches[branchName] = array(
'f', [-999])
48def predict(model, test_X, batch_size=32):
66load_model_custom_objects = {
"optimizer":
None,
"criterion":
None,
"train_func":
None,
"predict_func": predict}
74print(
'Some signal example classifications:')
80print(
'Some background example classifications:')
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
The Reader class serves to use the MVAs in a specific analysis context.