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 1074 of file combined_cdc_to_svd_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 1112 of file combined_cdc_to_svd_ckf_mva_training.py.

1112 def requires(self):
1113 """
1114 Generate list of tasks that needs to be done for luigi to finish running
1115 this steering file.
1116 """
1117
1118 fast_bdt_options = [
1119 [50, 8, 3, 0.1],
1120 [100, 8, 3, 0.1],
1121 [200, 8, 3, 0.1],
1122 ]
1123
1124 experiment_numbers = b2luigi.get_setting("experiment_numbers")
1125
1126 # iterate over all possible combinations of parameters from the above defined parameter lists
1127 for experiment_number, fast_bdt_option_state_filter, fast_bdt_option_result_filter in itertools.product(
1128 experiment_numbers, fast_bdt_options, fast_bdt_options
1129 ):
1130
1131 state_filter_cuts = [0.01, 0.02, 0.03, 0.05, 0.1, 0.2]
1132 n_best_states_list = [3, 5, 10]
1133 result_filter_cuts = [0.05, 0.1, 0.2]
1134 n_best_results_list = [3, 5, 10]
1135 for state_filter_cut, n_best_states, result_filter_cut, n_best_results in \
1136 itertools.product(state_filter_cuts, n_best_states_list, result_filter_cuts, n_best_results_list):
1137 yield self.clone(
1138 ValidationAndOptimisationTask,
1139 experiment_number=experiment_number,
1140 n_events_training=self.n_events_training,
1141 n_events_testing=self.n_events_testing,
1142 state_filter_cut=state_filter_cut,
1143 use_n_best_states=n_best_states,
1144 result_filter_cut=result_filter_cut,
1145 use_n_best_results=n_best_results,
1146 fast_bdt_option_state_filter=fast_bdt_option_state_filter,
1147 fast_bdt_option_result_filter=fast_bdt_option_result_filter,
1148 )
1149
1150

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 1108 of file combined_cdc_to_svd_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 1110 of file combined_cdc_to_svd_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 1095 of file combined_cdc_to_svd_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 1089 of file combined_cdc_to_svd_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 1083 of file combined_cdc_to_svd_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 1101 of file combined_cdc_to_svd_ckf_mva_training.py.


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