12 """Prepare and execute a basf2 job to train neural network, postprocess, and inspect"""
31 """Database identifier of the filte being trained"""
32 return "trackfindingcdc_" + self.__class__.__name__[:-len(
"TrainingRun")]
36 """File name of the recorded sample to be trained on
38 Defaults to the class name minus the mandatory TrainingRun postfix
40 return self.__class__.__name__[:-len(
"TrainingRun")] +
'_' + self.
task +
'.root'
43 """Create argument parser"""
46 argument_parser.add_argument(
51 help=(
"Select a prepared recording task")
54 return argument_parser
57 """Run the training as post-processing job
59 To run only the training run with --postprocess-only
64 "trackfindingcdc_teacher",
68 cmd += [
"--variables"]
73 "--truth=" + self.
truth,
81 tracking_data_dir_path = os.path.join(os.environ[
"BELLE2_LOCAL_DIR"],
"tracking",
"data")
82 shutil.copy(self.
identifier, tracking_data_dir_path)
86 "trackfindingcdc-classification-overview",
95 if isinstance(self.
groupby, str):
108 "--truth=" + self.
truth,
111 print(
"Running", cmd)