Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ deriv
Function
deriv
examples/machine_learning/neural_network.cpp:37–37 ·
view source on GitHub ↗
Derivative of the activation function
Source
from the content-addressed store, hash-verified
35
36
// Derivative of the activation function
37
array deriv(const array &out) { return out * (1 - out); }
38
39
// Cost function
40
double error(const array &out, const array &pred) {
Callers
1
back_propagate
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected