main.bend fails
raw source on the hub · import mlbend-datasets@0.1.5.0/main.bend as Main
mlbend-datasets: the datasets of scikit-learn, fetched from the hub.
import mlbend-datasets@0.1.5.0/main.bend as Datasets
The features of a dataset and its labels beside them: the rows of the features, and one label per row.
The labels are numbers. A classification label is the index of the class, a regression label is the value; which one it is, the model decides.
Every dataset here comes from HuggingFace, over the network, at run time: the effect is at the edge and the data that comes back is a value, so an estimator over it stays pure and a run is reproducible.
Two shapes of file. The iris dataset is the one scikit-learn calls
load_iris: 150 rows, four features, three classes, and no header,
5.1,3.5,1.4,0.2,Iris-setosa
The others are CSV with a header, and the label is one of the columns:
fixed_acidity,volatile_acidity,...,alcohol,quality,is_red 7.4,0.7,0.0,1.9,0.076,11.0,34.0,0.9978,3.51,0.56,9.4,5,0
The loader is told how many columns to leave out at the end of a row: the label is the column before them.
2 imports
import Base import mlbend-huggingface@0.1.1.0/main.bend as Hf
The reader could not load this file (at 0xbd1b4cc5d2844d9d24fe4ccd14752506/admission.bend:40). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Lost)
- observed : 'Lost'
Location:
39 | Full{lease: Lease}
40>| Lost{}
| ^^^^
41 |