def weighted_of

mlbend-report@0.1.0.0 · main.bend:228

import mlbend-report@0.1.0.0/main.bend as MlbendReport
import 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)

Uses (5)

Used by (1)