def add_features

mlbend-datasets@0.1.6.0 · main.bend:45

import mlbend-datasets@0.1.6.0/main.bend as MlbendDatasets
import Base

45# One row's features, appended to the rows so far.
46def add_features(acc: List<&2, List<&2, F32>>, r: Row) -> List<&2, List<&2, F32>>:
47  match r:
48    case Row{features, label}:
49      List.append(&2, List<&2, F32>, acc, Con{features, Nil{}})

Uses (4)

Used by (1)