If like me you are new to all this net stuff I recommend Alexander Schiendorfer's blog post called "A worked example of backpropagation". Everything fell into place for me after reading that.
https://alexander-schiendorfer.github.i ... kprop.html
While working through it, I created a little Javascript version of his example, which I will develop into a net and trainer for Lozza.
Other Javascript coders may or may not find it useful:-
https://github.com/op12no2/toynet
It's a generalised version, so you can easily reshape the net and use different activators etc.
A worked example of backpropagation using Javascript
Moderators: hgm, Rebel, chrisw
-
- Posts: 489
- Joined: Tue Feb 04, 2014 12:25 pm
- Full name: Colin Jenkins
-
- Posts: 2554
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: A worked example of backpropagation using Javascript
nice, thanks.
I'm not a javascript guy but where does h come from at line 185 in netCalcGradients?
I'm not a javascript guy but where does h come from at line 185 in netCalcGradients?
Martin Sedlak
-
- Posts: 489
- Joined: Tue Feb 04, 2014 12:25 pm
- Full name: Colin Jenkins