lander0s / machine-learning-in-javascript

a set of examples and experiments to learn machine learning
3 stars 1 forks source link

Artificial Intelligence and Machine Learning in javascript

This repo contains some AI and ML experiments, all of them work on any modern web browser.

AI learns how to land a rocket smoothly

This AI controlls a rocket inside a simulation and learns how to land it smoothly using an algorithm called neuroevolution, the below image shows the difference between the Generation Zero and the 1000th.

Generation #0 Generation #1000

ANN learns image filters

an artificial neural network (ANN) learns how to apply Image filters based on a given example. This example uses perceptron with 3 neurons. The below image shows the ANN learning threshold and negative.

Threshold Negative

Tic Tac Toe

In this experiment, an artificial intelligence explores all the possible states of a Tic Tac Toe board, compiling a decision tree, then it is able to plays agains a human , it may win or may draw but it never loses.

tic-tac-toe

Credits

Contributors