FUNCTION REFERENCE
roc
Receiver operating characteristic for each network output row.
Receiver operating characteristic for each network output row.
Syntax
[tpr,fpr,thresholds] = roc(targets,outputs)Use one-hot targets or a binary row and outputs in [0,1]. Thresholds descend through distinct observed scores and endpoints 1 and 0; a score >= threshold is positive. Rates divide by actual positives and actual negatives; absent classes give NaN. Multiple rows return 1-by-S cell arrays; one row returns vectors.
Example
[tpr,fpr,thresholds] = roc([0 1 1],[.1 .9 .2]);Differences from MATLAB: finite matrices only; categorical inputs and cell input sequences are unsupported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.