Submitted by JanBitesTheDust t3_11ddohk in MachineLearning

Hi,

I've been reading up on the backpropagation algorithm used in artificial neural nets. After finding out about automatic differentiation, I wanted to implement it myself. The implementation is fairly simple using Python (that allows for operator overloading and has a garbage collector), but I wanted to see how much it differs from the implementation in C. I wrote up a general overview of autodiff in the readme of the repo.

If there are any remarks/feedback, let me know :)

As a result, here is the repo: Autodiff

15

Comments

You must log in or register to comment.

ch9ki7 t1_ja86mi0 wrote

now you might want to provide the python wrapper for this. would be pretty interesting for smaller simpler optimization cases like arbitrary curve fitting.

3

halffloat t1_ja8o7s0 wrote

Cool work! You might also enjoy tapenade (tapenade.inria.fr:8080) which takes a C file and then produces a new C source file with the derivative program. It's useful when you want compiled derivatives. I use this a lot for optimization problems; never tried it for NNs, though.

2