2.4. copro.models.dubbelsteen

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

Model workflow when the relation between variables and conflict is based on randomness. Thereby, the fraction of actual conflict is equal to observations, but the location in array is randomized by shuffling. The model workflow is executed for each model 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.

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