Check out the code to make this and train the model (pure numpy and python) on my github page. Matrix mutiplications made with NumJs