![]() |
Belle II Software development
|
Public Member Functions | |
| weightfile_identifier_basename (self) | |
| get_weightfile_identifier (self, fast_bdt_option=None, recotrack_option=None) | |
| tree_name (self) | |
| random_seed (self) | |
| Basf2PathTask | data_collection_task (self) |
| requires (self) | |
| output (self) | |
| process (self) | |
Public Attributes | |
| recotrack_option | |
| RecoTrack option, use string that is additive: deleteCDCQI0XY (= deletes CDCTracks with CDC-QI below 0.XY), useCDC (= uses trained CDC stored in datafiles/), useVXD (uses trained VXD stored in datafiles/), noVXD (= doesn't use the VXD MVA at all) | |
Static Public Attributes | |
| n_events_training = b2luigi.IntParameter() | |
| Number of events to generate for the training data set. | |
| experiment_number = b2luigi.IntParameter() | |
| Experiment number of the conditions database, e.g. | |
| process_type | |
| Define which kind of process shall be used. | |
| training_target | |
| Feature/variable to use as truth label in the quality estimator MVA classifier. | |
| exclude_variables | |
| List of collected variables to not use in the training of the QE MVA classifier. | |
| fast_bdt_option | |
| Hyperparameter option of the FastBDT algorithm. | |
A teacher task runs the basf2 mva teacher on the training data provided by a data collection task. Since teacher tasks are needed for all quality estimators covered by this steering file and the only thing that changes is the required data collection task and some training parameters, I decided to use inheritance and have the basic functionality in this base class/interface and have the specific teacher tasks inherit from it.
Definition at line 1198 of file combined_quality_estimator_teacher.py.
| Basf2PathTask data_collection_task | ( | self | ) |
Property defining the specific ``DataCollectionTask`` to require. Must implemented by the inheriting specific teacher task class.
Definition at line 1293 of file combined_quality_estimator_teacher.py.
| get_weightfile_identifier | ( | self, | |
| fast_bdt_option = None, | |||
| recotrack_option = None ) |
Name of the xml weightfile that is created by the teacher task. It is subsequently used as a local weightfile in the following validation tasks.
Definition at line 1251 of file combined_quality_estimator_teacher.py.
| output | ( | self | ) |
Generate list of output files that the task should produce. The task is considered finished if and only if the outputs all exist.
Definition at line 1322 of file combined_quality_estimator_teacher.py.
| process | ( | self | ) |
Use basf2_mva teacher to create MVA weightfile from collected training data variables. This is the main process that is dispatched by the ``run`` method that is inherited from ``Basf2Task``.
Definition at line 1329 of file combined_quality_estimator_teacher.py.
| random_seed | ( | self | ) |
Property defining random seed to be used by the ``GenerateSimTask``. Should differ from the random seed in the test data samples. Must implemented by the inheriting specific teacher task class.
Definition at line 1284 of file combined_quality_estimator_teacher.py.
| requires | ( | self | ) |
Generate list of luigi Tasks that this Task depends on.
Reimplemented in RecoTrackQETeacherTask.
Definition at line 1302 of file combined_quality_estimator_teacher.py.
| tree_name | ( | self | ) |
Property defining the name of the tree in the ROOT file from the ``data_collection_task`` that contains the recorded training data. Must implemented by the inheriting specific teacher task class.
Definition at line 1275 of file combined_quality_estimator_teacher.py.
| weightfile_identifier_basename | ( | self | ) |
Property defining the basename for the .xml and .root weightfiles that are created. Has to be implemented by the inheriting teacher task class.
Definition at line 1242 of file combined_quality_estimator_teacher.py.
|
static |
List of collected variables to not use in the training of the QE MVA classifier.
In addition to variables containing the "truth" substring, which are excluded by default.
Definition at line 1229 of file combined_quality_estimator_teacher.py.
|
static |
Experiment number of the conditions database, e.g.
defines simulation geometry
Definition at line 1212 of file combined_quality_estimator_teacher.py.
|
static |
Hyperparameter option of the FastBDT algorithm.
default are the FastBDT default values.
Definition at line 1235 of file combined_quality_estimator_teacher.py.
|
static |
Number of events to generate for the training data set.
Definition at line 1210 of file combined_quality_estimator_teacher.py.
|
static |
Define which kind of process shall be used.
Decide between simulating BBBAR or BHABHA, MUMU, YY, DDBAR, UUBAR, SSBAR, CCBAR, reconstructing DATA or already simulated files (USESIMBB/EE) or running on existing reconstructed files (USERECBB/EE)
Definition at line 1216 of file combined_quality_estimator_teacher.py.
| recotrack_option |
RecoTrack option, use string that is additive: deleteCDCQI0XY (= deletes CDCTracks with CDC-QI below 0.XY), useCDC (= uses trained CDC stored in datafiles/), useVXD (uses trained VXD stored in datafiles/), noVXD (= doesn't use the VXD MVA at all)
Definition at line 1262 of file combined_quality_estimator_teacher.py.
|
static |
Feature/variable to use as truth label in the quality estimator MVA classifier.
Definition at line 1222 of file combined_quality_estimator_teacher.py.