A worked example of backpropagation using Javascript

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

op12no2
Posts: 489
Joined: Tue Feb 04, 2014 12:25 pm
Full name: Colin Jenkins

A worked example of backpropagation using Javascript

Post by op12no2 »

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.
mar
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

Post by mar »

nice, thanks.
I'm not a javascript guy but where does h come from at line 185 in netCalcGradients?
Martin Sedlak
op12no2
Posts: 489
Joined: Tue Feb 04, 2014 12:25 pm
Full name: Colin Jenkins

Re: A worked example of backpropagation using Javascript

Post by op12no2 »

mar wrote: Tue Mar 16, 2021 4:02 pm nice, thanks.
I'm not a javascript guy but where does h come from at line 185 in netCalcGradients?
Cheers Martin. Ah. typo - I'll fix it. Edit. Fixed. Nice catch - copy and paste error :)