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

Function abserr

examples/machine_learning/softmax_regression.cpp:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28float abserr(const array &predicted, const array &target) {
29 return 100 * sum<float>(abs(predicted - target)) / predicted.elements();
30}
31
32array divide(const array &a, const array &b) { return a / b; }
33

Callers 1

logit_demoFunction · 0.70

Calls 2

absFunction · 0.50
elementsMethod · 0.45

Tested by

no test coverage detected