Home▸Machine Learning & Neural Networks▸Gaussian Process Regression: Posterior Band and Random Draws (2D)

Gaussian Process Regression: Posterior Band and Random Draws (2D)

The same exact Gaussian-process posterior drawn on a canvas: mean, plus or minus two standard deviations, moving random draws, data pegs and the posterior standard deviation beneath it, with the numerical checks of the shared model.

Machine Learning & Neural Networks2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Gaussian Process Regression: Posterior Band and Random Draws (2D) ↗ Open standalone

Supervised learning splits into two jobs: classification (predict a category) and regression (predict a number). This simulator focuses on the regression side of k-nearest neighbors — instead of voting on a class, it averages the target values of the k closest labeled points in a 3D feature space to predict a continuous value at any query location. A translucent wireframe traces the true underlying function that generated the noisy training data, so you can watch the k-NN prediction surface hug it tightly at low k and flatten out as k grows, with live readouts for the predicted value, the ground truth, the pointwise error, and the RMSE across the whole domain.

⚙ Under the hood

The same exact Gaussian-process posterior drawn on a canvas: mean, plus or minus two standard deviations, moving random draws, data pegs and the posterior standard deviation beneath it, with the numerical checks of the shared model.

Gaussian ProcessKernel RegressionUncertaintyMarginal LikelihoodSupervised Learning

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)