Skip to Main Content
Practical Neural Network Recipies in C++
book

Practical Neural Network Recipies in C++

by Masters
June 2014
Intermediate to advanced content levelIntermediate to advanced
493 pages
20h 30m
English
Morgan Kaufmann
Content preview from Practical Neural Network Recipies in C++
Multilayer Feedforward Networks
105
double ThreeLayer::find_grad (
int ntrain ,
double *ins ,
double *targ ,
double *outdelta ,
double **outgrad ,
double **hidgrad
)
{
int i,
j,
pnum ;
double error, *gptr ;
for (i=0 ; i<nout ; i++) { // Zero output gradient in preparation
gptr = outgrad[i] ; // for summing across this epoch
for ö=0 ; j<=nhid
;
j++)
gptr[j] = 0.0 ;
}
for (i=0 ; i<nhid ; i++) { // Similarly zero hidden gradient
gptr = hidgrad[i] ;
for 0=0
;
j<=nin
;
j++)
gptr[j] = 0.0 ;
}
error = 0.0 ;
for (pnum=0 ; pnum<ntrain ; pnum++) { // All presentations in epoch
gettrain ( pnum , ins , targ ) ; // Get a training presentation
present (
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Neural Networks with Keras Cookbook

Neural Networks with Keras Cookbook

V Kishore Ayyadevara
Scientific Computing with Python 3

Scientific Computing with Python 3

Claus Führer, Claus Fuhrer, Jan Erik Solem, Olivier Verdier
Mastering Java Machine Learning

Mastering Java Machine Learning

Uday Kamath, Krishna Choppella

Publisher Resources

ISBN: 9780080514338