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++
394
Chapter 21
threshold. The direct_crit subroutine divides these counts by the
number of samples to get the error probability, then multiplies by the
prior probability times the misclassification cost, summing to get the
total cost.
static int count (
int n ,
double *array ,
double value
)
{
int lo, mid, hi ;
if (value > array[n-1])
return 0 ;
if (value <= array[0])
return n ;
lo = 0;
hi = n-1 ;
for (;;) {
mid = (lo + hi) / 2 ;
if (mid == lo)
return n - hi ;
if (array[mid] < value)
lo = mid ;
else
hi = mid ;
}
}
double direct_crit (
int ηθ ,
int
n1
,
double *s0 ,
double *s1 ,
double wtO ,
double wt1 ,
double thresh
)
// At all times we kee ...
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