Belle II Software release-09-00-00
MainTask Class Reference
Inheritance diagram for MainTask:
Collaboration 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 1020 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 1058 of file combined_cdc_to_svd_ckf_mva_training.py.

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

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 1054 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 1056 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 1041 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 1035 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 1029 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 1047 of file combined_cdc_to_svd_ckf_mva_training.py.


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