Show HN: A perceptron with stochastic gradient descent in Go
github.com
github.com
Well, not always the case. Of course I understand the merit of standing on the shoulders of giant(corporation)s, but sometimes you just want to try out something new (to you) just to test your intuition and improve your own perception of existing knowledge.
Would definitely recommend trying vectorised calculus (instead of calculating the output with loops [0]) I'd also advise you to steer from some apparently neurology-inspired terms (stimulus) and use terms more common in machine learning (vector, features, etc.).
If you want to go further with this, you could try to implement back propagation with different activation functions and any depth. Check CS231n [1], the reference course for this.
[0] https://github.com/made2591/go-perceptron-go/blob/master/uti... [1] http://cs231n.stanford.edu/
This is nice to see.
I do wonder where the activation function is in the code, though? I looked it over, and maybe I missed it? If it's in there, it's gotta be something very simple (binary or relu?) - enough to overlook it easily...
Or maybe I'm looking at the code wrong - is this really "a perceptron" - that is, an implementation of the McColloch-Pitts model (basically a single neuron, and basic activation)?
https://en.wikipedia.org/wiki/Artificial_neuron
Hmm - what I recall of the code, this does look probable...
Interesting.
NOTE: this invite link will expire in 7 days (from 8/3/2017)
I don't have a clue what any of those words mean. Neat!