Skip to content
AI360XpertBeta
Playgrounds

Evaluation & RL

Learning Curves

A learning curve measures what changes when the same fitting rule receives more observations; its shape is evidence about this experiment.

Data seed 20261029

Guided steps 1 / 3

Stage 1 of 3: Inspect one fit

Computed 0 of 61 size rows.

One actual fit · degree 5 · repetition 1

Curve computation in progress. 0 of 61 size rows computed. No completed scores are displayed yet.

Circle: training. Square: held out. Cross: unused training. Solid: fit. Dotted: true signal.

Inspect this size, then reveal the curve

Curve computation in progress. 0 of 61 size rows computed. No completed scores are displayed yet.

Solid circles: mean training MSE. Dashed squares: mean held-out MSE. Diamond: selected size. Axis: log10(1 + MSE); no error values cropped. Segments join measured sizes, not optimisation steps.

  • Training observation
  • Unused training observation
  • Held-out observation
  • Selected fit
  • Mean training MSE
  • Mean held-out MSE
Adjust parameters

Inspect a nested subset; original observations have only twenty available training records.

Refits use nested prefixes, never held-out labels. Means summarise 5 repetitions. Repetitions reuse observations; SD is descriptive, not a confidence interval.

Scores appear after all requested size rows are computed.

Which observations did this model actually learn from?

Circles enter the fit, crosses wait in the training pool, and squares are held out. Inspect the fitted model and its two real errors at this sample size.

  1. fix membership
  2. select training prefix
  3. refit
  4. score separately
  5. compare repetitions
Held-out validation

Observations excluded from this fit, used here to compare settings. They are not a final test set.

Check this stage

Check your understanding

Add observations to the same fitting rule, then inspect what really changed in training and held-out error.

What does adding data change?

Move Training observations. Circles enter the fit; crosses remain unused in that repetition's training pool. Squares are held out. The solid fitted curve and its training and validation MSE come from the same computation at the inspected size. A small training error says how well this model fits those observations. It does not certify predictions on new ones.

In Add observations, the horizontal axis counts training observations per fresh fit. It does not count optimisation updates or epochs. The full curve refits the same polynomial rule at every integer size, including sizes below the number of coefficients. Solid circles show mean training MSE; dashed squares show mean held-out MSE. The neutral diamond selects a size by dragging or arrow keys; its slider does the same thing. Predict the full-budget result, then reveal the measured comparison.

Neither error must move monotonically. One added record can change the fitted curve, coverage of the input range and the average being scored. A finite plateau does not prove that all future data is useless, and a gap need not close in every experiment.

What stays fixed within a curve?

The generated Curved signal uses f(x)=0.5sin⁡(πx)+0.3xf(x)=0.5\sin(\pi x)+0.3x; Linear signal uses f(x)=0.3x+0.2f(x)=0.3x+0.2. A data seed draws 96 uniform inputs in [−1,1][-1,1] and independent Gaussian target noise. Noise standard deviation changes the targets using the same inputs and standardised noise draws. New data changes those draws; it does not change your controls.

Each repetition shuffles this pool using the separate ordering seed, reserves 32 records for validation and makes the other 64 available for training. A larger training size keeps the earlier prefix and adds the next records. Validation membership stays fixed within that repetition. Repetitions reuse the same pool and may overlap. Reshuffle subsets changes ordering and membership while preserving the observations. Increasing the repetition budget retains the earlier repetitions.

Original observations preserves the original twenty training and eight validation records. Its first repetition at ordering seed zero retains the original order; further repetitions shuffle training order only. Validation membership stays fixed across these repetitions. The available training size is twenty, and full-size scores are identical across orderings up to numerical rounding. No true function or noise variance is known for this fixture, so noise and New data controls are absent.

How are the numbers calculated?

At every size and repetition, the fit minimises squared training residuals plus a small ridge penalty:

c^=arg⁡min⁡c[∑i∈Tn(yi−pc(zi))2+10−6∑j=0dcj2],pc(z)=∑j=0dcjzj.\hat c=\arg\min_c\left[\sum_{i\in T_n}(y_i-p_c(z_i))^2+10^{-6}\sum_{j=0}^{d}c_j^2\right], \qquad p_c(z)=\sum_{j=0}^{d}c_jz^j.

Here dd is polynomial degree and TnT_n contains exactly nn training observations. Generated inputs use z=xz=x. Original inputs use the fixed transform z=(x−5)/5z=(x-5)/5 to improve conditioning. This transform learns nothing from validation. The penalty includes the intercept; it selects a finite fit even for the small underdetermined examples. This basis and penalty can change numerical results from the old raw-power fit.

Scores exclude that penalty:

MSEA=1∣A∣∑i∈A(yi−pc^(zi))2.\mathrm{MSE}_A=\frac{1}{|A|}\sum_{i\in A}(y_i-p_{\hat c}(z_i))^2.

For example, use training observations (−1,−1),(1,3)(-1,-1),(1,3) and, just for hand arithmetic, a ridge penalty of 2 at degree one. The normal equations give intercept 0.50.5 and slope 11. Predictions −0.5,1.5-0.5,1.5 have residuals −0.5,1.5-0.5,1.5, so training MSE is (0.25+2.25)/2=1.25(0.25+2.25)/2=1.25. On validation observations (0,1),(2,4)(0,1),(2,4) the MSE is also 1.25. The training-mean baseline predicts 1 and has validation MSE (0+9)/2=4.5(0+9)/2=4.5.

The error axis displays log⁡10(1+MSE)\log_{10}(1+\mathrm{MSE}) so large values remain visible; zero is still zero. Straight segments connect computed integer sizes, without fitting a smooth curve through the errors. The fit picture clamps only its sampled geometry to its labelled vertical range. Inspection reports the clipped sample count, full coefficients, raw errors and predictions, including values beyond the visible picture.

What do repeated scores mean?

In Compare the evidence, inspect one repetition's actual fit and errors alongside the means over all repetitions. A curve point is the arithmetic mean of individual MSEs, not the error of an average fitted model. The displayed SD uses divisor RR:

eˉ=1R∑r=1Rer,s=1R∑r=1R(er−eˉ)2.\bar e=\frac{1}{R}\sum_{r=1}^{R}e_r,\qquad s=\sqrt{\frac{1}{R}\sum_{r=1}^{R}(e_r-\bar e)^2}.

For errors 1 and 3, the mean is 2 and descriptive SD is 1. These reused observations and overlapping partitions do not provide independent population samples. SD is not standard error or a confidence interval. No uncertainty band is shown. The gap between mean training and validation errors is not mathematical model variance or a bias estimate; use the bias–variance lab for that separate experiment.

Turn on Compare degree one to evaluate a line on the same observations, prefixes, validation sets and repetition budget. The training-mean baseline is fitted from training labels only. The interface prints its actual score and the signed full-budget change. It does not automatically select a degree using held-out labels.

When will more observations fail to help?

Load Curved signal, degree one and compare with a more flexible polynomial using common subsets. A line cannot bend, however many records constrain it. More data can improve estimation within a family without repairing an unsuitable family. Conversely, additional representative data can constrain a flexible model whose small-sample fits vary substantially. Neither comparison guarantees a direction for every finite seed.

Noise also matters. Under this generator's independent zero-mean noise assumptions, σ2\sigma^2 is an expected irreducible contribution, not a hard lower bound on every finite measured MSE. Stronger regularisation can reduce sensitivity at a cost in fit; it does not guarantee better validation error.

These held-out observations are validation, because you can use their scores to choose settings. They are never included in an individual fit. The lab does not show an untouched final-test score. After choosing a real procedure, evaluate it on a separate final test set. Related records, future observations and shifted populations need a suitable split protocol; random shuffling alone cannot establish that validity.

Keep the experiment reproducible

Inspection changes reuse existing fits. Mathematical edits rebuild all curve rows with bounded progress and Cancel/Retry. Stage and exploration changes cancel pending work, then rebuild the same experiment if needed. No partial curve is mixed with a new state. Reset controls retains stage and data seed. Failure recovery restores the complete preceding settings, seeds and inspection, then reproduces their fits. A shared link reproduces the current stage, observations, partitions and inspection after fresh computation; guesses, completed work and recovery snapshots stay in memory.

Try the fixed data challenge. Keep degree, noise, seeds and repetition budget unchanged while adding observations. Then investigate another seed without treating the challenge's measured outcome as a general law.

Stage recap

  1. Inspect one fit

    Circles enter the fit, crosses wait in the training pool, and squares are held out. Inspect the fitted model and its two real errors at this sample size.

  2. Add observations

    Drag the size diamond. Each position selects fresh fits of the same rule on nested training prefixes; held-out membership stays fixed within each repetition. Neither error has to move in one direction.

  3. Compare the evidence

    Change degree, inspect individual repetitions and compare a degree-one rule on identical subsets. Means and descriptive SD summarise these reused observations; a gap does not measure mathematical variance.

Reference

Learning curve
Refit a fixed rule at increasing training sizes and score each fit. Iteration or epoch curves instead track optimisation on a given dataset.
Validation and final test
These held-out scores guide exploration. Evaluate a chosen procedure on a separate untouched final test set before making a generalisation claim.
Evaluation protocol
Generated pools use repeated 64/32 shuffled splits and nested training prefixes. Original observations retain fixed 20/8 membership and vary training order only.
Ridge fit
Minimise residual sum of squares plus 1e−6 times the sum of squared coefficients, including intercept. Scores exclude the penalty. Original inputs use the fixed basis z=(x−5)/5.
Mean and spread
Every curve point is the arithmetic mean of R real errors. SD uses divisor R and is descriptive. Reused observations and overlapping splits preclude a naive independent-sample confidence claim.
Diagnostic limits
A large gap can motivate checking sensitivity, data coverage and leakage. High errors can reflect model mismatch, noise or shift. Neither quantity is a bias/variance decomposition.

Break it on purpose

Try degree 5 on four noisy observations. Compare actual training and held-out MSE, then add observations without changing the task. Low training error alone cannot establish good predictions.