Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 10 of 10 in this unit

Understand Neural Networks · ORIGINAL LEARN AI LESSON

Finish a tabular experiment.

Turn a real-data comparison into a frozen, reproducible report with error examples and carefully bounded claims.

By the end: Compare a baseline and candidate on development evidence, freeze a complete fitting recipe, inspect evaluation errors and justify the next decision.

Start with the exampleJump to the experimentRead the explanation
Prerequisites and path options

Why learn this? Carry a model comparison through freezing and reporting so someone else can inspect the evidence.

01 · TRY

Start with something concrete.

A five-stage ensemble sounds more capable than a straight line. Before choosing, run a mean baseline and both candidates on the same training and development groups. Which measured result supports your choice?

Try the interactive model
02 · PREDICT
Before you experiment

An ensemble has lower training error than a line. What should decide the next model choice?

An ensemble has lower training error than a line. What should decide the next model choice?
03 · EXPERIMENT

Change one thing. Watch what follows.

Loading this browser experiment…

04 · UNDERSTAND
READ & CONNECT

Understand what changed.

Back to the experiment

A shorter explanation, with the original worked examples available below. Both explain the same experiment and its limits.

Same learning goal in both modes: Compare a baseline and candidate on development evidence, freeze a complete fitting recipe, inspect evaluation errors and justify the next decision.

The idea in everyday terms

A complete experiment includes more than fitting a model. Define the numerical target, separate training from selection and final reporting, compare simple references, and freeze the chosen recipe before inspecting the reserved outcomes.

What to watch in the experiment

The Iris workbench compares actual fitted mean, line and boosted models. Keep preprocessing trained on the training groups and replay the frozen recipe from its source. Report errors, comparison history and known exposure along with the chosen result.

What this does not establish

Iris is previously exposed public data, so this partition is not globally unseen. Report submission checks presence and matching evidence; it does not establish reasoning or implementation quality.

Open the full worked examples, calculations and limitations

This is the same reference used in Technical mode. Expand it whenever you need the exact numbers, assumptions or further explanation.

Make the task specific before fitting

The project asks a modest question: how well can sepal length predict petal length, both in centimetres, for this educational Iris comparison? A sepal is an outer flower structure; a petal is a different flower structure. The task predicts a measurement, not a species label. Species is used only to balance partitions and inspect error slices.

This distinction matters. A classifier’s percentage correct cannot be compared directly with a regression error in centimetres. Write the input, target, available measurement time and intended use before choosing a model. For a real collection, also ask whether measuring the target directly would be more useful than estimating it.

Read the data contract

The local file contains 150 rows from the UCI Iris dataset, licensed CC BY 4.0. The workbench links the source, license and exact local CSV hash. The source measurements are unchanged. Generated row IDs are not verified specimen identities.

Identical original four-measurement vectors are grouped and deduplicated, leaving 149 measurement groups. Within each species, first-occurrence group order assigns index modulo five: remainder 0 to evaluation, remainder 1 to development, and remainders 2–4 to training. “Modulo five” means the remainder after dividing by five. This gives 89 training, 30 development and 30 evaluation groups.

Grouping uses all four original measurements to avoid exact duplicate vectors across partitions. The fitted models receive only sepal length as their input. This historical, deterministic protocol is not a random sample of future flowers, and measurement fingerprints cannot detect every repeated specimen. No synthetic missingness or unit damage is applied in this project.

Iris has appeared in earlier lessons. Reserving rows inside this workflow does not make the public dataset previously unseen. The experiment teaches a frozen comparison, not authenticated independent performance.

Give the simple reference a fair chance

A mean baseline predicts the training average petal length for every input. If training targets were 1, 3 and 5 cm, that prediction would be 3 cm. It provides a reference for whether input-dependent predictions add value.

The line fits an intercept and slope from the same training groups. The ensemble repeatedly fits trees to training residuals and adds their scaled predictions. A residual is the observed target minus the current prediction. The earlier regression lesson and boosting lesson explain those calculations step by step.

Compare using the same task, groups and units. A line may beat a more flexible ensemble on development data. Complexity also affects explanation, implementation and maintenance. Choosing the simpler model is a valid conclusion when the evidence supports it.

The workbench retains twelve configurations at most. Decide an allowance for model choices before examining many results. Settings are recorded even when repeated; repetition is not fresh evidence. The controls that configure a new candidate are temporary, while recorded configurations and reports are saved locally.

Read both error summaries

For observed targets 2 and 6 cm and predictions 3 and 4 cm, the absolute errors are 1 and 2 cm. Mean absolute error (MAE) is their average: (1 + 2) / 2 = 1.5 cm.

Mean squared error (MSE) squares each error before averaging: (1² + 2²) / 2 = 2.5 cm². Squared units matter. MSE gives a large individual error more influence than MAE does; neither summary identifies every important failure.

Nearby practice: absolute errors 0, 0 and 3 cm give MAE 1 cm and MSE 3 cm². Compare that with three errors of 1 cm: the same MAE, but MSE only 1 cm². If a single large error would matter in the intended use, inspect individual errors or a predeclared worst-error criterion as well.

Freeze the recipe before looking

Choose a recorded candidate and explain the development evidence supporting it. Freezing records its model configuration and training/development identities. Evaluation replays fitting from the original local source; imported scores do not become evidence just because a file says they are correct.

The project does not silently add development rows to training. Its frozen result evaluates the exact selected fitting recipe on the reserved partition. A different protocol could refit after selection, but would need to declare that change before evaluating it.

Freezing alone does not reveal results. Use the separate evaluation control when ready. Reopening development retains known evaluation exposure. If evaluation errors influence subsequent choices, report that use rather than calling the same rows untouched again. Local exposure records and fixed cases are inspectable and self-administered, not a secure examination system.

Explain an error without inventing its cause

Open the table of evaluation predictions. Select a row and state its input, observed target, prediction and absolute error. Then compare the species slices, each with ten groups in this protocol.

A slice difference can suggest an investigation: perhaps one input does not capture enough variation, or the training range is unrepresentative. It does not prove that explanation. You would need additional measurements, a carefully controlled comparison or a new collection to distinguish possibilities. A small slice should not support a broad reliability claim.

Turn the record into useful evidence

The guided variant asks for a reproducible experiment and explanation. The implementation variant additionally asks for runnable source, environment/run instructions, tests and comparison with browser results. The decision variant asks whether the measured behavior meets the stated purpose, which errors matter, what operating assumptions remain and whether to proceed, defer or avoid the model.

For implementation practice, download the Python comparison starter. It runs a mean baseline immediately and leaves line fitting as your task. Its visible checks cover known arithmetic, constant inputs, invalid values and unintended mutation. Add your own split-isolation and reproduction tests. The starter freezes a line explicitly; extending it to an ensemble is optional further implementation work.

All variants share the same data and workbench. Any learner can choose another depth. The site stores implementation code as inert text; it never executes imported code. Minimum text lengths and matched configurations check that a report has evidence to review, not that the reasoning or implementation is correct.

Use the separate delivery-depot and concentrated-error cases to check transfer. Their arithmetic and situations differ from the Iris example. First submissions remain distinct from practice retries. Even passing both does not establish independently reviewed software implementation or deployment readiness.

Download the report for inspection and use a My Work backup to preserve editable state. Progress stays on this device unless you export and import it. Take the report to a peer or teacher who can challenge one calculation, one data assumption and one claim. Human artifact review and learner pilots remain pending.

05 · APPLY
Check your understanding

The frozen line has a larger error for one species slice. What is a defensible interpretation?

The frozen line has a larger error for one species slice. What is a defensible interpretation?
06 · CONTINUE

Take this idea with you.

A completed experiment connects a task, data contract, simple reference, selected model, frozen evaluation, error analysis and a claim that fits the evidence.

My Learning

Put the lesson into practice: Open the hands-on project and independent transfer assessment. Lesson completion and this practice check are separate from project submission and assessment results.

Explore related topics and the topic map

How this topic connects

Explore this topic on the interactive map

Use these connections to review a foundation or choose where to go next. You can open any topic without completing the others.

What it builds on

  • Validation design

    Choose an evaluation split that reflects groups and time so the score answers the intended question.

  • Linear regression

    Estimate a numerical outcome and inspect its errors before assuming a straight-line relationship is adequate.

  • Explain a model

    Give other people enough context to decide whether your model fits their task and its limits.

You are hereFinish a tabular experiment

Turn a real-data comparison into a frozen, reproducible report with error examples and carefully bounded claims.

What it enables

  • Tabular experiment project Apply in a project

    Collect the declared protocol, frozen model comparisons and limitations into the tabular project’s evidence report.