How it works
Every predictor is fitted (least squares, Levenberg–Marquardt, Adam, …) using only the observations with x ≤ cut,
then evaluated over the whole range. R²in is the goodness of fit on the used points; RMSEout
is the error against the hidden future points — the number you'd actually care about, but can't see in real time.
The "Auto" predictor picks whichever selected model has the highest in-sample R², which is what a naïve forecaster would do.
Everything runs in your browser: Vue 3 from a CDN, plain SVG, no build step. Source on
GitHub.