MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / sig

Method sig

neural_network/convolution_neural_network.py:103–104  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

101 return conv_ins
102
103 def sig(self, x):
104 return 1 / (1 + np.exp(-1 * x))
105
106 def do_round(self, x):
107 return round(x, 3)

Callers 3

convoluteMethod · 0.95
trainMethod · 0.95
predictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected