def __init__(self, config):
    self.work_directory = config['WorkDirectory']
    data_config = config['DataParams']
    self.data_path = data_config['DataPath']
    if ('DataFile' in data_config):
        data_file = data_config['DataFile']
        self.data_full_path = os.path.join(self.work_directory, self.data_path, data_file)
    else:
        self.data_full_path = os.path.join(self.work_directory, self.data_path)
    parameters_config = config['Parameters']
    self.parameter_name_list = [n for (n, _) in parameters_config.items()]
    parameter_value_list = [p for (_, p) in parameters_config.items()]
    self.parameter_combinations = list(itertools.product(*parameter_value_list))
    features_config = config['Features']
    self.feature_selection_mode = features_config['FeatureSelectionMode']
    if (self.feature_selection_mode == 'Default'):
        self.feature_list = features_config['FeatureList']
    else:
        pass
def __init__(self, config):
    self.work_directory = config['WorkDirectory']
    data_config = config['DataParams']
    self.data_path = data_config['DataPath']
    if ('DataFile' in data_config):
        data_file = data_config['DataFile']
        self.data_full_path = os.path.join(self.work_directory, self.data_path, data_file)
    else:
        self.data_full_path = os.path.join(self.work_directory, self.data_path)
    parameters_config = config['Parameters']
    self.parameter_name_list = [n for (n, _) in parameters_config.items()]
    parameter_value_list = [p for (_, p) in parameters_config.items()]
    self.parameter_combinations = list(itertools.product(*parameter_value_list))
    features_config = config['Features']
    self.feature_selection_mode = features_config['FeatureSelectionMode']
    if (self.feature_selection_mode == 'Default'):
        self.feature_list = features_config['FeatureList']
    else:
        pass