A Perceptron machine learning algorithm implementation in JavaScript