12 from ROOT
import Belle2
16 Example script showing how to train neural networks
17 to be used with the CDCTriggerNeuroModule.
19 This script uses realistic values for the amount of training data
20 and the number of runs, so it will run a long time.
28 basf2.set_random_seed(1)
35 mlpname =
'GRLNeuro.root'
36 trainname =
'GRLNeuroTraindata.root'
37 logname =
'GRLNeuroLog'
47 main = basf2.create_path()
49 main.add_module(
'Progress')
50 main.add_module(
'RootInput')
56 main.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,
103 print(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...