Simulators
A4 · machine learning
Each demo lets you try out one algorithm or idea from the A4 syllabus. Change the settings and watch how the algorithm responds.
Add labelled points and change k. Watch how the class with the most votes among nearby points determines each decision region.
Open→Watch gradient descent adjust a straight line to fit the data. Change the learning rate and see how the error changes.
Open→Watch k-means assign points to clusters and move each centroid to the mean of its assigned points.
Open→Train a single perceptron on a logic gate and watch its boundary line rotate into place. Then see why XOR needs a hidden layer.
Open→Use selection, crossover and mutation to evolve random text towards your target. The best candidates are kept unchanged, so the best fitness can improve or stay the same.
Open→An agent learns a route across a grid by trial and error, using rewards and penalties. You set the balance between exploration and exploitation and see the move it learns for each square.
Open→Watch a convolutional filter build a feature map, then use max pooling to reduce its size. These operations help CNNs process image features.
Open→Change the degree of a polynomial from underfitting to overfitting and compare training and test error. Then move one threshold and see accuracy, precision, recall and F1 score change.
Open→Train a classifier on a biased loan dataset, compare approval rates and agreement with past decisions, and investigate why matching history does not prove fairness.
Open→Read about machine learning types, hardware, ethics, and HL topics on preparing data and choosing models. Follow the links to explore relevant demos.