metadpy.plotting.plot_roc#
- metadpy.plotting.plot_roc(nR_S1: Union[list, ndarray], nR_S2: Union[list, ndarray], fitModel: Optional[dict] = None, ax: Optional[Axes] = None) Axes [source]#
Type2 ROC curve from observed an estimated data fit.
- Parameters
- nR_S1
Number of ratings for signal 1 (correct and incorrect).
- nR_S2
Number of ratings for signal 2 (correct and incorrect).
- fitModel
Dictionary returned by
metadpy.mle.fit_metad()
. If provided, the estimated ratings will be plotted toghether with the observed data.- ax
Where to draw the plot. Default is None (create a new figure).
- Returns
- ax
The matplotlib axes containing the plot.