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.
tasktask +
'.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.
truth,
89 tracking_data_dir_path = os.path.join(os.environ[
"BELLE2_LOCAL_DIR"],
"tracking",
"data")
90 shutil.copy(self.
identifier, tracking_data_dir_path)
94 "trackfindingcdc-classification-overview",
103 if isinstance(self.
groupby, str):
116 "--truth=" + self.
truth,
119 print(
"Running", cmd)
None output_file_name
There is no default for the name of the output TFile.
def create_argument_parser(self, **kwds)
def sample_file_name(self)
None groupby
Input groupby the classification analysis.
str task
Recording / training task selected.
output_file_name
Set file name for the TBrowser to show if demanded.
task
Process each event according to the user's desired task (train, eval, explore)
None variables
Input variable for the training or the classification analysis.
str truth
Truth variable name.
None auxiliaries
Input auxiliaries the classification analysis.