MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / do_round

Method do_round

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

Source from the content-addressed store, hash-verified

104 return 1 / (1 + np.exp(-1 * x))
105
106 def do_round(self, x):
107 return round(x, 3)
108
109 def convolute(self, data, convs, w_convs, thre_convs, conv_step):
110 # convolution process

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected