7.8. copro.conflict.get_pred_conflict_geometry

copro.conflict.get_pred_conflict_geometry(X_test_ID, X_test_geom, y_test, y_pred, y_prob_0, y_prob_1)[source]

Stacks together the arrays with unique identifier, geometry, test data, and predicted data into a dataframe. Contains therefore only the data points used in the test-sample, not in the training-sample. Additionally computes whether a correct prediction was made.

Parameters
  • X_test_ID (list) – list containing the unique identifier per data point.

  • X_test_geom (list) – list containing the geometry per data point.

  • y_test (list) – list containing test-data.

  • y_pred (list) – list containing predictions.

Returns

dataframe with each input list as column plus computed ‘correct_pred’.

Return type

dataframe