def input_processing(data_to_predict_local, data_input_2, strategy_dictionary): fitting_inputs, fitting_targets = generate_training_variables(data_to_predict_local, strategy_dictionary) fitting_inputs_2, fitting_targets_2 = generate_training_variables(data_input_2, strategy_dictionary) fitting_inputs, fitting_inputs_2 = trim_inputs(fitting_inputs, fitting_inputs_2) fitting_inputs = np.hstack((fitting_inputs, fitting_inputs_2)) return fitting_inputs, fitting_targets
def input_processing(data_to_predict_local, data_input_2, strategy_dictionary): fitting_inputs, continuous_targets, classification_targets = generate_training_variables( data_to_predict_local, strategy_dictionary) fitting_inputs_2, fitting_targets_2, classification_targets_2 = generate_training_variables( data_input_2, strategy_dictionary, prior_data_obj=data_to_predict_local) fitting_inputs, fitting_inputs_2 = trim_inputs(fitting_inputs, fitting_inputs_2) fitting_inputs = np.hstack((fitting_inputs, fitting_inputs_2)) return fitting_inputs, continuous_targets, classification_targets
def input_processing(data_input_1, data_input_2, strategy_dictionary): print("Generating training variables [1]") fitting_inputs, continuous_targets, classification_targets = generate_training_variables( data_input_1, strategy_dictionary) print("Generating training variables [2]") fitting_inputs_2, fitting_targets_2, classification_targets_2 = generate_training_variables( data_input_2, strategy_dictionary, prior_data_obj=data_input_1) print("Trimming inputs") fitting_inputs, fitting_inputs_2 = trim_inputs(fitting_inputs, fitting_inputs_2) print("Hstacking") fitting_inputs = np.hstack((fitting_inputs, fitting_inputs_2)) return fitting_inputs, continuous_targets, classification_targets
def input_processing(data_to_predict_local, strategy_dictionary): """retrieve and process continuous and classification targets""" fitting_inputs, continuous_targets, classification_targets = generate_training_variables( data_to_predict_local, strategy_dictionary) return fitting_inputs, continuous_targets, classification_targets