HomeMachine Learning & Neural NetworksClassification Algorithms Arena

Classification Algorithms Arena

Compare k-Nearest Neighbours and Logistic Regression on the same labelled point cloud: a live 3D probability-surface terrain, a real ROC curve with computed AUC, and an adjustable decision threshold that redraws the confusion matrix in real time.

Machine Learning & Neural Networks3DModerate60 FPS🌍 Earth
classification-algorithms ↗ Open standalone

Classification is the supervised-learning task of assigning a discrete label to an input, and different algorithms draw wildly different decision boundaries even on identical data. This simulator trains two of the most common ones — k-Nearest Neighbours and Logistic Regression — on the same 2D point cloud and renders each classifier's output probability as a literal 3D terrain: high ground means "confidently class 1", low ground means "confidently class 0". A movable threshold plane slices the terrain to show the exact decision boundary, instantly recolouring misclassified points, while a genuine ROC curve — swept across every threshold from the classifiers' real scores — shows the trade-off between true and false positive rates and reports the computed AUC. Adjust k, class separation and the threshold to see how a local, distance-based vote differs from a single global linear boundary.

⚙ Under the hood

Compare k-Nearest Neighbours and Logistic Regression on the same labelled point cloud: a live 3D probability-surface terrain, a real ROC curve with computed AUC, and an adjustable decision threshold that redraws the confusion matrix in real time.

Three.jsmachine learningclassificationk-NNlogistic regressionROC curveAUC

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)