def l1_normalize

mlbend-preprocess@0.1.0.0 · main.bend:138

import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocess
import Base
import bend-ml-tensor@0.1.0.0/main.bend as T

138# The L1 normaliser: every row divided by the sum of its absolute
139# values.
140def l1_normalize(+r: Nat, +c: Nat, a: T.Mat<r, c>) -> T.Mat<r, c>:
141  mat_of(r, c, l1_normalize_go(T.Mat.to_rows(r, c, a), Nil{}))

Uses (6)

Used by (0)

No other definition uses this definition.