20 """Prepare and execute a basf2 job to train neural network, postprocess, and inspect"""
39 """Database identifier of the filte being trained"""
40 return "trackfindingcdc_" + self.__class__.__name__[:-len(
"TrainingRun")]
44 """File name of the recorded sample to be trained on
46 Defaults to the class name minus the mandatory TrainingRun postfix
48 return self.__class__.__name__[:-len(
"TrainingRun")] +
'_' + self.
tasktasktask +
'.root'
51 """Create argument parser"""
54 argument_parser.add_argument(
59 help=(
"Select a prepared recording task")
62 return argument_parser
65 """Run the training as post-processing job
67 To run only the training run with --postprocess-only
72 "trackfindingcdc_teacher",
76 cmd += [
"--variables"]
81 "--truth=" + self.
truthtruth,
89 tracking_data_dir_path = os.path.join(os.environ[
"BELLE2_LOCAL_DIR"],
"tracking",
"data")
90 shutil.copy(self.
identifieridentifier, tracking_data_dir_path)
94 "trackfindingcdc-classification-overview",
101 if self.
groupbygroupby
is not None:
103 if isinstance(self.
groupbygroupby, str):
116 "--truth=" + self.
truthtruth,
119 print(
"Running", cmd)
output_file_name
There is no default for the name of the output TFile.
string truth
Truth variable name.
def create_argument_parser(self, **kwds)
def sample_file_name(self)
variables
Input variable for the training or the classification analysis.
output_file_name
Set file name for the TBrowser to show if demanded.
groupby
Input groupby the classification analysis.
string task
Recording / training task selected.
task
Process each event according to the user's desired task (train, eval, explore)
auxiliaries
Input auxiliaries the classification analysis.