Roc plot
auto_circuit.metrics.official_circuits.roc_plot
Attributes
Functions
roc_plot
roc_plot(taskname_measurements: Dict[str, Dict[str, Measurements]], variable_width: bool = False) -> Figure
Plots the pessimistic Receiver Operating Characteristic (ROC) curve for a nested dictionary of measurements. The outer dictionary has keys that are the task names and the inner dictionary has keys that are the algorithm names.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
taskname_measurements |
Dict[str, Dict[str, Measurements]]
|
A nested dictionary with keys corresponding to task names (outer), algorithm names (inner), and values corresponding to the points of the ROC curve. |
required |
variable_width |
bool
|
If True, the lines corresponding to different to different algorithms will have different widths. This helps distinguish overlapping lines. |
False
|
Returns:
Type | Description |
---|---|
Figure
|
A plotly figure. |
Source code in auto_circuit/metrics/official_circuits/roc_plot.py
task_roc_plot
task_roc_plot(task_measurements: TaskMeasurements) -> Figure
Wrapper that takes the output of
measure_roc
,
extracts the names of the tasks and algorithms, and plots the ROC curves
using roc_plot
.