def add_features
import mlbend-datasets@0.1.6.0/main.bend as MlbendDatasetsimport 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{}})