vision_unlearning.evaluator.class_unlearning
Functions
|
|
|
|
|
Formats metrics as a markdown table. Can display either just overall metrics |
Module Contents
- vision_unlearning.evaluator.class_unlearning.average_metrics(name_to_value_all: List[Dict[str, float | int | bool]]) Dict[str, float][source]
- vision_unlearning.evaluator.class_unlearning.format_metrics_as_markdown(name_to_value: Dict[str, float | int | bool], name_to_value_all: Dict[str, Dict[str, float | int | bool]] | None = None) str[source]
Formats metrics as a markdown table. Can display either just overall metrics or include per-class metrics as additional columns.
- Parameters:
name_to_value – Dictionary of overall/average metrics
name_to_value_all – Optional dictionary of per-class metrics
- Returns:
Markdown formatted table
- Return type:
str