9.5. copro.plots.plot_ROC_curve_n_times

copro.plots.plot_ROC_curve_n_times(ax, clf, X_test, y_test, tprs, aucs, mean_fpr, **kwargs)[source]

Plots the ROC-curve per model simulation to a pre-initiated matplotlib-instance.

Parameters
  • ax (axis) – axis of pre-initaited matplotlib-instance

  • clf (classifier) – sklearn-classifier used in the simulation.

  • X_test (array) – array containing test-sample variable values.

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

  • tprs (list) – list with false positive rates.

  • aucs (list) – list with area-under-curve values.

  • mean_fpr (array) – array with mean false positive rate.

Returns

lists with true positive rates and area-under-curve values per plot.

Return type

list