Further exploration / Optional

A different way
to compute.

Choose one idea to investigate after the core lessons.

Both experiments run locally in your browser.

Teach the curve.
Then test its limits.

Train a small machine-learning model on samples from a material law. Then ask it to predict a response it has never seen.

Your task

Train up to stretch 1.8. Test at 2.6, then widen the training range and compare the prediction.

Live machine-learning model

Material surrogate

Ready to train

Material lawTraining samplesLearned predictionTraining interval

Train a model to test this prediction.

Training errorPending
Unseen in-range errorPending
Prediction at test stretchPending
Exact value at test stretchPending

Choose your training domain and press Train. The pale region shows where the model has seen examples.

How the learning model works

This experiment uses kernel ridge regression. It learns weighted radial-basis functions from samples; it does not receive the material equation. [1]

Training data: P(λ) = μ(λ − λ⁻²), with μ = 0.8 MPa. Uniform deterministic synthetic noise is added to the observations, except at λ = 1. The material law stays outside the learned model.

Kᵢⱼ = exp[−(λᵢ − λⱼ)² / (2ℓ²)]
(K + αI)w = y
P̂(λ) = Σᵢ wᵢ K(λ, λᵢ)

The browser solves the regularized system by Cholesky factorization. Regularization α = 0.003; ℓ is the adjustable kernel width. Training RMSE compares against noisy samples. The unseen in-range RMSE uses noise-free midpoint samples that were never used in training. All errors have units MPa. The curve can violate physical constraints outside its training range; this surrogate has no embedded constitutive law.

There is no claim of a speed advantage for this tiny example: evaluating its original equation is already inexpensive. The lesson is the trade-off between learned prediction and evidence.

Take away

A low training error is only the first check. Test unseen cases, track the training domain and return to physics when the evidence runs out.

Sources and further reading
  1. scikit-learn: Kernel ridge regression: the learning method used in this experiment.
  2. IBM Quantum: Phase estimation procedure: how phase becomes measurable through interference.
  3. IBM Quantum: Limitations on quantum information: the distinction between state amplitudes and measurement outcomes.
  4. Harrow, Hassidim & Lloyd: Quantum algorithm for solving linear systems of equations (2009): assumptions and output of the quantum linear-system problem.

Educational experiments executed locally in your browser. Synthetic data and ideal state-vector calculations.