MCPcopy 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
37array deriv(const array &out) { return out * (1 - out); }
38
39// Cost function
40double error(const array &out, const array &pred) {

Callers 1

back_propagateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected