Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
float abserr(const array &predicted, const array &target) {
29
return 100 * sum<float>(abs(predicted - target)) / predicted.elements();
30
}
31
32
array divide(const array &a, const array &b) { return a / b; }
33
Callers
1
logit_demo
Function · 0.70
Calls
2
abs
Function · 0.50
elements
Method · 0.45
Tested by
no test coverage detected