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

Function deriv

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

Derivative of the activation function

Source from the content-addressed store, hash-verified

27
28// Derivative of the activation function
29array deriv(const array &out) { return out * (1 - out); }
30
31// Cost function
32double error(const array &out, const array &pred) {

Callers 1

back_propagateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected