def weighted_of
import mlbend-report@0.1.0.0/main.bend as MlbendReportimport Base
228# The weighted average: the per-class scores, each weighed by its
229# support, over the total support, the way scikit-learn's weighted
230# average does.
231def weighted_of(classes: List<&2, Cls>, +total: Nat) -> Cls:
232 weighted_of.go(weighted_sums(classes, 0.0, 0.0, 0.0), total)