The GridSearcher class

class grid_searcher.GridSearcher(features_analyzer, input_gatherer, model_trainer, forecast_type, cfg, logger)[source]

Bases: object

Given a dataset with a target column this class performs grid search over the weights w1, w2 and w3 as specified in the config files

get_datasets()[source]
search_weights(region, target_column, cfg_file_name)[source]

Iterate over the weights as specified in the config file, and for each iteration save the KPIs and all the prediction of the algorithm performed on the test set

grid_searcher.gs_cell_process(mt, q, features, region, target_column, df_x, df_y, weights)[source]