I\'m developing (my first) ML algorithm in JavaScript (on the doodle recognition of the MNIST data set).
I had a piece of code that generates the x and y/slope for th