vision_unlearning.evaluator.class_unlearning

Functions

average_metrics(→ Dict[str, float])

_convert_mean_to_std(→ str)

format_metrics_as_markdown(→ str)

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]
vision_unlearning.evaluator.class_unlearning._convert_mean_to_std(name: str) str
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

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