Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bddean/BQNprop

Toy backpropagation implementation written in BQN.
https://github.com/bddean/BQNprop

Last synced: about 2 months ago
JSON representation

Toy backpropagation implementation written in BQN.

Awesome Lists containing this project

README

        

# BQNprop
BQNprop is a toy backpropagation implementation I wrote to learn about
machine learning and array programming. It's extremely bare-bones:
Hyperparameters are all hardcoded, there are no bias nodes, and I haven't
even tested this on any real data.

I am still pleasantly surprised at how short the implementation ended
up being. Only 17 lines excluding comments, blank lines and testing.

# Future work
Real ML libraries apparently use Automatic Differentiation (AD)
nowadays. I've been looking into http://conal.net/papers/essence-of-ad/
as a potential implementation approach, which involves compiling functions
to an efficiently differentiable form. For BQN this might mean a codegen step.

And ideally we'd want BQN running on a GPU for this.

# References

I used [3Blue1Brown](https://www.youtube.com/watch?v=Ilg3gGewQ5U&t=750s)
and [Michael Nielson's online
textbook](http://neuralnetworksanddeeplearning.com/chap2.html)
to learn the math. I used [this worked-out example
](https://steemit.com/ai/@ralampay/training-a-neural-network-a-numerical-example-part-1)
as a test.

And, of course, the [BQN docs](https://mlochbaum.github.io/BQN/).