7.2.1. copro.models.all_data

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

Main model workflow when all XY-data is used. The model workflow is executed for each classifier.

Parameters
  • X (array) – array containing the variable values plus IDs 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.

Returns

containing the test-data X-array values. datatrame: containing model output on polygon-basis. dict: dictionary containing evaluation metrics per simulation.

Return type

dataframe