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

Practical Neural Network Recipies in C++

by Masters
June 2014
Intermediate to advanced
493 pages
20h 30m
English
Morgan Kaufmann
Content preview from Practical Neural Network Recipies in C++
Appendix
463
copy weights - Copy the weights from one network to another
Note that this 1s NOT like a copy or assignment,
as 1t does not copy other parameters. In fact,
1t gets sizes from the calling Instance!
void LayerNet::copy weights ( LayerNet *dest , LayerNet *source )
{
1nt n ;
dest->neterr source->neterr ;
1f (source->exe && dest->exe) // These may be Important too!
memcpy ( dest->confusi on . source->confusi on . (nout+1) * slzeofdnt) )
1f (nhldl 0) { // No hidden layer
n - nout * (n1n+l) ;
memcpy ( dest->out coefs , source->out coefs , n * s1zeof(doubl e) ) ;
else 1f (nh1d2 0) { // One hidden layer
n - nhldl * (n1n+l) ;
memcp ...
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

Data Clustering in C++

Data Clustering in C++

Guojun Gan
Wireless Network Simulation: A Guide using Ad Hoc Networks and the ns-3 Simulator

Wireless Network Simulation: A Guide using Ad Hoc Networks and the ns-3 Simulator

Henry Zárate Ceballos, Jorge Ernesto Parra Amaris, Hernan Jiménez Jiménez, Diego Alexis Romero Rincón, Oscar Agudelo Rojas, Jorge Eduardo Ortiz Triviño

Publisher Resources

ISBN: 9780080514338