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 976 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 1014 of file combined_to_pxd_ckf_mva_training.py.

1014 def requires(self):
1015 """
1016 Generate list of tasks that needs to be done for luigi to finish running
1017 this steering file.
1018 """
1019
1020 fast_bdt_options = [
1021 [50, 8, 3, 0.1],
1022 [100, 8, 3, 0.1],
1023 [200, 8, 3, 0.1],
1024 ]
1025
1026 experiment_numbers = b2luigi.get_setting("experiment_numbers")
1027
1028 # iterate over all possible combinations of parameters from the above defined parameter lists
1029 for experiment_number, fast_bdt_option_state_filter, fast_bdt_option_result_filter in itertools.product(
1030 experiment_numbers, fast_bdt_options, fast_bdt_options
1031 ):
1032
1033 state_filter_cuts = [0.01, 0.02, 0.03, 0.05, 0.1, 0.2]
1034 n_best_states_list = [3, 5, 10]
1035 result_filter_cuts = [0.05, 0.1, 0.2]
1036 n_best_results_list = [2, 3, 5]
1037 for state_filter_cut, n_best_states, result_filter_cut, n_best_results in \
1038 itertools.product(state_filter_cuts, n_best_states_list, result_filter_cuts, n_best_results_list):
1039 yield self.clone(
1040 ValidationAndOptimisationTask,
1041 experiment_number=experiment_number,
1042 n_events_training=self.n_events_training,
1043 n_events_testing=self.n_events_testing,
1044 state_filter_cut=state_filter_cut,
1045 use_n_best_states=n_best_states,
1046 result_filter_cut=result_filter_cut,
1047 use_n_best_results=n_best_results,
1048 fast_bdt_option_state_filter=fast_bdt_option_state_filter,
1049 fast_bdt_option_result_filter=fast_bdt_option_result_filter,
1050 )
1051
1052

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 1010 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 1012 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 997 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 991 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 985 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 1003 of file combined_to_pxd_ckf_mva_training.py.


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