AI experiment laboratory · Level 2
Machine learning laboratory
These labs use real, lightweight calculations in your browser. No external AI model is called and no data leaves this device. Every lab states what kind of demonstration it is.
Data explorer and cleaning lab
Data exercise Inspect a small sales dataset, identify the target and features, then see what cleaning changes.
This is a data-quality exercise, not a trained model. The mean replacement is a simple demonstration and can itself distort a real dataset.
Fruit classifier
Real model training A k-nearest-neighbours classifier trained on the examples in the table. Add examples, then ask for a prediction.
Features: weight and colour score. Label: fruit type. This is real model training in the browser, with a deliberately tiny dataset; do not use it for real sorting decisions.
House price predictor
Real model training Fit a linear regression to example house sizes and prices. Add points to see how the line and error change.
This is an ordinary least-squares regression fitted to the sample table. It is an educational model, not a valuation or lending tool.
Customer segmentation
Real algorithm Run k-means clustering on deterministic sample customer data. Choose how many groups to look for.
Clusters are mathematical groupings. They do not automatically represent meaningful customer segments; a human must interpret and validate them.
Model evaluation calculator
Metric calculator Change a confusion matrix and observe accuracy, precision, recall and F1.
Try a highly imbalanced example: 2 true positives, 1 false positive, 18 false negatives and 979 true negatives. Accuracy can look high while recall is very low.
Overfitting and validation
Real lightweight model Change the number of neighbours and compare approximate fit on training and test data.
The test split is held out from fitting. This is a small educational example, not a general proof about any algorithm.
What is real here?
| Lab | Classification |
|---|---|
| Data explorer | Data exercise; no model |
| Fruit classifier | Real k-NN training in the browser |
| House price predictor | Real least-squares regression in the browser |
| Customer segmentation | Real k-means clustering in the browser |
| Evaluation calculator | Metric calculator; no model |
| Overfitting lab | Real lightweight k-NN on a synthetic, deterministic dataset |
Last updated: