It's fun, but it's cheating a bit if you use numpy. Can someone implement one with all the matrix math from scratch too?
Implementing a Neural Network from Scratch in Python
41–50 of 104 posts
Re: Implementing a Neural Network from Scratch in Python
#42Why are deep learning researchers allergic to meaningful variable names?
Re: Implementing a Neural Network from Scratch in Python
#43My first reading of this headline was "Implementing a Neural Network in Scratch". Now that I would like to see. https://scratch.mit.edu/
Re: Implementing a Neural Network from Scratch in Python
#44 1
∑(y_true - y_pred)^2
i=1
There's no 'i' in the sum, should probably be y_true_i - y_pred_i.Re: Implementing a Neural Network from Scratch in Python
#45Why are deep learning researchers allergic to meaningful variable names?
I think this is an extremely well written tutorial! Kudos to the author.
Re: Implementing a Neural Network from Scratch in Python
#46Why are deep learning researchers allergic to meaningful variable names?
When I'm implementing algorithm, I'll typically be implementing something that uses single letter variable names. It's easier to do with consistent variable names. That's it. I once tried meaningful variable names in LaTeX to make code nicer, but long variable names rendered as math are an unreadable mess, so I went back to short variable names.
That being said, it's not hard to change variable names with a good IDE, and in LaTeX you can alias variable names with \newcommand.
Re: Implementing a Neural Network from Scratch in Python
#47I see so many implementations of NeuralNets from Scratch on Repl.it (I'm a co-founder) but this is one of the simplest and clearest one.
One that blew my mind recently is one by a 12 year old programmer: https://repl.it/@pyelias/netlib
Re: Implementing a Neural Network from Scratch in Python
#48Friendly comment: at the beginning of section 4 there's this sum: 1 ∑(y_true - y_pred)^2 i=1 There's no 'i' in the sum, should probably be y_true_i - y_pred_i.
Re: Implementing a Neural Network from Scratch in Python
#49Disclaimer: I am taking the deep learning nanodegree degree for free but its sponsored by Facebook rather than Udacity directly.