Thanks for sharing! I used to teach students to build ML algorithms from scratch (everything from Markov chains to multilayer perceptrons and convolution neural networks) - I rewrote some of my notes in TypeScript here:
1. https://github.com/keshavsaharia/numbers/blob/dev/lib/nn/neu...
2. https://github.com/keshavsaharia/numbers/blob/dev/lib/cnn/cn... (still working on the visualization)
Hope you find these useful in your own learning journey!
Thank you!