Area under curve
auto_circuit.metrics.area_under_curve
Attributes
Functions
algo_measurements_auc
algo_measurements_auc(algo_measurements: AlgoMeasurements, log_x: bool, log_y: bool, y_min: Optional[float] = None) -> Dict[AlgoKey, float]
Wrapper that runs
measurements_auc
on each
algorithm's measurements.
Source code in auto_circuit/metrics/area_under_curve.py
average_auc_plot
average_auc_plot(task_measurements: TaskMeasurements, log_x: bool, log_y: bool, y_min: Optional[float], inverse: bool) -> Figure
A bar chart of the average AUC for each algorithm across all tasks.
See measurements_auc
.
Returns:
Type | Description |
---|---|
Figure
|
A Plotly figure. |
Source code in auto_circuit/metrics/area_under_curve.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
|
measurements_auc
measurements_auc(points: Measurements, log_x: bool, log_y: bool, y_min: Optional[float], eps: float = 0.001) -> float
Calculate the area under the curve of a set of points.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
points |
Measurements
|
A list of (x, y) points. |
required |
log_x |
bool
|
Whether to log the x values. All values must be |
required |
log_y |
bool
|
Whether to log the y values. (See |
required |
y_min |
Optional[float]
|
Must be provided if |
required |
eps |
float
|
A small value to ensure the returned area is greater than zero. |
0.001
|
Source code in auto_circuit/metrics/area_under_curve.py
metric_measurements_auc
metric_measurements_auc(points: PruneMetricMeasurements, log_x: bool, log_y: bool, y_min: Optional[float] = None) -> Dict[PruneMetricKey, Dict[TaskKey, Dict[AlgoKey, float]]]
Wrapper that runs
measurements_auc
for
each metric, task, and algorithm.
Source code in auto_circuit/metrics/area_under_curve.py
task_measurements_auc
task_measurements_auc(task_measurements: TaskMeasurements, log_x: bool, log_y: bool, y_min: Optional[float] = None) -> Dict[TaskKey, Dict[AlgoKey, float]]
Wrapper that runs
measurements_auc
for
each task and algorithm.