MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / error

Function error

examples/machine_learning/deep_belief_net.cpp:32–35  ·  view source on GitHub ↗

Cost function

Source from the content-addressed store, hash-verified

30
31// Cost function
32double error(const array &out, const array &pred) {
33 array dif = (out - pred);
34 return sqrt((double)(sum<float>(dif * dif)));
35}
36
37array sigmoid_binary(const array in) {
38 // Choosing "1" with probability sigmoid(in)

Callers 2

trainMethod · 0.70
trainMethod · 0.70

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected