Belle II Software development
MainTask Class Reference
Inheritance diagram for MainTask:

Public Member Functions

def requires (self)
 

Static Public Attributes

b2luigi n_events_training
 Number of events to generate for the training data set.
 
b2luigi n_events_testing
 Number of events to generate for the test data set.
 
b2luigi n_events_per_task
 Number of events per task.
 
b2luigi num_processes
 Number of basf2 processes to use in Basf2PathTasks.
 
b2luigi bkgfiles_by_exp = b2luigi.get_setting("bkgfiles_by_exp")
 Dictionary with experiment numbers as keys and background directory paths as values.
 
dict bkgfiles_by_exp = {int(key): val for (key, val) in bkgfiles_by_exp.items()}
 Transform dictionary keys (exp.
 

Detailed Description

Wrapper task that needs to finish for b2luigi to finish running this steering file.

It is done if the outputs of all required subtasks exist.  It is thus at the
top of the luigi task graph.  Edit the ``requires`` method to steer which
tasks and with which parameters you want to run.

Definition at line 1030 of file combined_to_pxd_ckf_mva_training.py.

Member Function Documentation

◆ requires()

def requires (   self)
Generate list of tasks that needs to be done for luigi to finish running
this steering file.

Definition at line 1068 of file combined_to_pxd_ckf_mva_training.py.

1068 def requires(self):
1069 """
1070 Generate list of tasks that needs to be done for luigi to finish running
1071 this steering file.
1072 """
1073
1074 fast_bdt_options = [
1075 [50, 8, 3, 0.1],
1076 [100, 8, 3, 0.1],
1077 [200, 8, 3, 0.1],
1078 ]
1079
1080 experiment_numbers = b2luigi.get_setting("experiment_numbers")
1081
1082 # iterate over all possible combinations of parameters from the above defined parameter lists
1083 for experiment_number, fast_bdt_option_state_filter, fast_bdt_option_result_filter in itertools.product(
1084 experiment_numbers, fast_bdt_options, fast_bdt_options
1085 ):
1086
1087 state_filter_cuts = [0.01, 0.02, 0.03, 0.05, 0.1, 0.2]
1088 n_best_states_list = [3, 5, 10]
1089 result_filter_cuts = [0.05, 0.1, 0.2]
1090 n_best_results_list = [2, 3, 5]
1091 for state_filter_cut, n_best_states, result_filter_cut, n_best_results in \
1092 itertools.product(state_filter_cuts, n_best_states_list, result_filter_cuts, n_best_results_list):
1093 yield self.clone(
1094 ValidationAndOptimisationTask,
1095 experiment_number=experiment_number,
1096 n_events_training=self.n_events_training,
1097 n_events_testing=self.n_events_testing,
1098 state_filter_cut=state_filter_cut,
1099 use_n_best_states=n_best_states,
1100 result_filter_cut=result_filter_cut,
1101 use_n_best_results=n_best_results,
1102 fast_bdt_option_state_filter=fast_bdt_option_state_filter,
1103 fast_bdt_option_result_filter=fast_bdt_option_result_filter,
1104 )
1105
1106

Member Data Documentation

◆ bkgfiles_by_exp [1/2]

b2luigi bkgfiles_by_exp = b2luigi.get_setting("bkgfiles_by_exp")
static

Dictionary with experiment numbers as keys and background directory paths as values.

Definition at line 1064 of file combined_to_pxd_ckf_mva_training.py.

◆ bkgfiles_by_exp [2/2]

dict bkgfiles_by_exp = {int(key): val for (key, val) in bkgfiles_by_exp.items()}
static

Transform dictionary keys (exp.

numbers) from strings to int

Definition at line 1066 of file combined_to_pxd_ckf_mva_training.py.

◆ n_events_per_task

b2luigi n_events_per_task
static
Initial value:
= b2luigi.get_setting(
)

Number of events per task.

Used to split up the simulation tasks.

Definition at line 1051 of file combined_to_pxd_ckf_mva_training.py.

◆ n_events_testing

b2luigi n_events_testing
static
Initial value:
= b2luigi.get_setting(
)

Number of events to generate for the test data set.

Definition at line 1045 of file combined_to_pxd_ckf_mva_training.py.

◆ n_events_training

b2luigi n_events_training
static
Initial value:
= b2luigi.get_setting(
)

Number of events to generate for the training data set.

Definition at line 1039 of file combined_to_pxd_ckf_mva_training.py.

◆ num_processes

b2luigi num_processes
static
Initial value:
= b2luigi.get_setting(
)

Number of basf2 processes to use in Basf2PathTasks.

Definition at line 1057 of file combined_to_pxd_ckf_mva_training.py.


The documentation for this class was generated from the following file: