MlbendPreprocess.one_hot_count_of: def of mlbend-preprocess@0.1.0.0 Import: import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocess Lines 286-292 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=286&end_line=292 import Base # The number of rows of a one-hot matrix. def one_hot_count_of(ys: List<&2, Nat>) -> Nat: match ys: case Nil{}: 0n case Con{h, t}: (1n + one_hot_count_of(t) : Nat) Uses (3): 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=Base/base.bend&name=Nat.add