cellflow.metrics.compute_mean_metrics

cellflow.metrics.compute_mean_metrics(metrics, prefix='')[source]

Compute the mean value of different metrics.

Parameters:
  • metrics (dict[str, dict[str, float]]) – A dictionary where the keys indicate the name of the pertubations and the values are dictionaries containing computed metrics.

  • prefix (str) – A string definining the prefix of all metrics in the output dictionary.

Return type:

dict[str, list[float]]

Returns:

: A dictionary where the keys indicate the metrics and the values contain the average metric values over all pertubations.