def class_of
import mlbend-datasets@0.1.6.0/main.bend as MlbendDatasetsimport Base
119# The class of a row, by name: 0, 1 or 2 for the three iris species.
120def class_of(name: String) -> F32:
121 match name:
122 case "Iris-setosa":
123 0.0
124 case "Iris-versicolor":
125 1.0
126 case "Iris-virginica":
127 2.0
128 case _:
129 0.0