Prune metrics plot
auto_circuit.metrics.prune_metrics.prune_metrics_plot
Attributes
Classes
Functions
edge_patching_plot
edge_patching_plot(data: List[Dict[str, Any]], task_measurements: TaskMeasurements, ablation_type: AblationType, metric_name: str, log_x: bool, log_y: bool, y_axes_match: bool, y_max: Optional[float], y_min: Optional[float]) -> Figure
A figure showing the performance of the circuits produced by different
PruneAlgos
on different tasks.
The x-axis is the number of edges in the circuit and the y-axis is the performance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
List[Dict[str, Any]]
|
A list of dictionaries in the following format:
|
required |
task_measurements |
TaskMeasurements
|
The measurements to plot
(the same as |
required |
ablation_type |
AblationType
|
The type of ablation used to generate the data. |
required |
metric_name |
str
|
The name of the metric which the data represents. |
required |
log_x |
bool
|
Whether to log the x-axis. |
required |
log_y |
bool
|
Whether to log the y-axis. |
required |
y_axes_match |
bool
|
Whether to use the same y-axis for all tasks. |
required |
y_max |
Optional[float]
|
The maximum value for the y-axis. |
required |
y_min |
Optional[float]
|
The minimum value for the y-axis. |
required |
Returns:
Type | Description |
---|---|
Figure
|
A plotly figure. |