1.3. copro.pipeline.run_reference

copro.pipeline.run_reference(X, Y, config, scaler, clf, out_dir, run_nr)[source]

Top-level function to run one of the four supported models.

Parameters
  • X (array) – X-array containing variable values.

  • Y (array) – Y-array containing conflict data.

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

  • scaler (scaler) – the specified scaler instance.

  • clf (classifier) – the specified model instance.

  • out_dir (str) – path to output folder.

Raises

ValueError – raised if unsupported model is specified.

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