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++
Eluding Local
Minima II
149
same time, the valuable gene pool must be protected from wanton
destruction. Thus, the probability of mutation should be tiny. A
subroutine for mutation is shown below:
void mutate (
double *child , // Input/Output of the child
int nvars , // Number of vars in objective function
double stddev , // Standard deviation of mutation
double pmutate // Probability of mutation
)
{
double rn ;
while (nvars-) {
rn = (double) rand 0 / ((double) RANDMAX + 1.0) ;// Random 0-1
if (rn < pmutate) { // Mutate this gene?
rn = (double) randO + (double) randO -
(double) randO - (double) randO ;
child[nvars] +=
rn * stddev * 3.46410161 ...
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