MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / __init__

Method __init__

mla/neuralnet/layers/basic.py:93–97  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

91
92class Activation(Layer):
93 def __init__(self, name):
94 self.last_input = None
95 self.activation = get_activation(name)
96 # Derivative of activation function
97 self.activation_d = elementwise_grad(self.activation)
98
99 def forward_pass(self, X):
100 self.last_input = X

Callers

nothing calls this directly

Calls 1

get_activationFunction · 0.90

Tested by

no test coverage detected