2.3. copro.models.single_variables

copro.models.single_variables(X, Y, config, scaler, clf, out_dir)[source]

Model workflow when the model is based on only one single variable. Output is limited to the metric scores. Output is stored to sub-folders of the output directory, with each sub-folder containing output for a 1 variable combination. After computing metric scores per prediction (i.e. per variable), model exit is forced. Not tested yet for more than one simulation!

Parameters
  • X (array) – array containing the variable values plus unique identifer and geometry information.

  • Y (array) – array containing merely the binary conflict classifier data.

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

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

  • clf (classifier) – the specified model instance.

  • out_dir (str) – path to output folder.

Raises

DeprecationWarning – this function will most likely be deprecated due to lack of added value and applicability.