MlbendPreprocess.one_hot_count_go: def of mlbend-preprocess@0.1.0.0 Import: import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocess Lines 278-284 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=278&end_line=284 import Base # The number of rows of a one-hot matrix, counted. def one_hot_count_go(+labels: List<&2, Nat>, +acc: Nat) -> Nat: match labels: case Nil{}: acc case Con{h, t}: one_hot_count_go(t, Nat.add(acc, 1n)) 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