12from ROOT
import Belle2
16Example script showing how to train neural networks
17to be used with the CDCTriggerNeuroModule.
19This script uses realistic values for the amount of training data
20and the number of runs, so it will run a long time.
28basf2.set_random_seed(1)
35mlpname =
'GRLNeuro.root'
36trainname =
'GRLNeuroTraindata.root'
37logname =
'GRLNeuroLog'
47main = basf2.create_path()
49main.add_module(
'Progress')
50main.add_module(
'RootInput')
56main.add_module(
'GRLNeuroTrainer',
58 filename=os.path.join(mlpdir, mlpname),
59 trainFilename=os.path.join(traindir, trainname),
72 i_cdc_sector=[0*2+36*3, 0*2+36*3, 0*2+36*3, 0*2+36*3, 0*2+36*3, 0*2+36*3, 0*2+36*3, 0*2+36*3],
73 i_ecl_sector=[0*3, 1*3, 2*3, 3*3, 4*3, 5*3, 6*3, 7*3],
92 logLevel=basf2.LogLevel.DEBUG,
103print(basf2.statistics)
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...