2.2. copro.models.leave_one_out

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

Model workflow when each variable is left out from analysis once. 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 n-1 variable combination. After computing metric scores per prediction (i.e. n-1 variables combinations), 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.