MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / sig

Method sig

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

Source from the content-addressed store, hash-verified

98
99
100 def sig(self,x):
101 return 1 / (1 + np.exp(-1*x))
102
103 def do_round(self,x):
104 return round(x, 3)

Callers 3

convoluteMethod · 0.95
trianMethod · 0.95
predictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected