MlbendPreprocess.l1_normalize: def of mlbend-preprocess@0.1.0.0 Import: import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocess Lines 138-141 of mlbend-preprocess@0.1.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=mlbend-preprocess@0.1.0.0/main.bend&start_line=138&end_line=141 import Base import bend-ml-tensor@0.1.0.0/main.bend as T # The L1 normaliser: every row divided by the sum of its absolute # values. def l1_normalize(+r: Nat, +c: Nat, a: T.Mat) -> T.Mat: mat_of(r, c, l1_normalize_go(T.Mat.to_rows(r, c, a), Nil{})) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor@0.1.2.0/main.bend&name=Mat https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor@0.1.2.0/main.bend&name=Mat.to_rows https://jend.leeeet.dev/definition.txt?path=mlbend-preprocess@0.1.0.0/main.bend&name=l1_normalize_go https://jend.leeeet.dev/definition.txt?path=mlbend-preprocess@0.1.0.0/main.bend&name=mat_of