4.5. copro.machine_learning.pickle_clf

copro.machine_learning.pickle_clf(scaler, clf, config, root_dir)[source]

(Re)fits a classifier with all available data and pickles it.

Parameters
  • scaler (scaler) – the specified scaling method instance.

  • clf (classifier) – the specified model instance.

  • config (ConfigParser-object) – object containing the parsed configuration-settings of the model.

  • root_dir (str) – path to location of cfg-file.

Returns

classifier fitted with all available data.

Return type

classifier