Skip to main content

Machine Learning

Each guide here explains one machine learning idea with a live chart you can change in your browser: the model trains or recomputes as you move a slider, so you can see what it does rather than read about it. Each one ends with the code to chart it in JavaScript, React or Angular with SciChart.js.

GuideWhat it covers
Activation functionsSigmoid, tanh, ReLU, GELU and softmax: formulas, derivatives and a network trained live
Anomaly detectionZ-scores, seasonal baselines and isolation forests on a live sensor stream
Decision boundaryHow k-NN, logistic regression, trees, forests, naive Bayes and SVMs divide data, trained live
Dimensionality reductionPCA, t-SNE and UMAP compared, with a 2D and 3D embedding of digit images
Hierarchical clusteringHow to read a dendrogram, linkage methods, and DBSCAN
K-means clusteringHow k-means works, the elbow method and silhouette score, step by step
RegularizationRidge and lasso regression, overfitting and the bias–variance trade-off
ROC curveHow ROC and precision-recall curves are built, what AUC means, and choosing a threshold
Support vector machineMargins, support vectors and the kernel trick, in 2D and 3D

For the statistics charts these guides use, see correlation matrix and residual plot and Q-Q plot.