load_models#

protopipe.pipeline.load_models(path, cam_id_list)[source]#

Load the pickled dictionary of model from disk and fill the model dictionary.

Parameters
pathstring

The path where the pre-trained, pickled models are stored. path is assumed to contain a {cam_id} keyword to be replaced by each camera identifier in cam_id_list (or at least a naked {}).

cam_id_listlist

List of camera identifiers like telescope ID or camera ID and the assumed distinguishing feature in the filenames of the various pickled regressors.

Returns
model_dict: dict

Dictionary with cam_id as keys and pickled models as values.