Skip to content

Commit d9852ba

Browse files
committed
ci: bump version to 3.0.8
1 parent e7894b9 commit d9852ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='neuralnetlib',
5-
version='3.0.7',
5+
version='3.0.8',
66
author='Marc Pinet',
77
description='A simple convolutional neural network library with only numpy as dependency',
88
long_description=open('README.md', encoding="utf-8").read(),

tests/test_optimizers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def test_adam(self):
4848
v_b_hat = v_b / (1 - 0.999 ** (1))
4949
expected_bias = initial_bias - 0.01 * m_b_hat / (np.sqrt(v_b_hat) + 1e-8)
5050

51-
np.testing.assert_array_almost_equal(self.weights, expected_weights)
52-
np.testing.assert_array_almost_equal(self.bias, expected_bias)
51+
np.testing.assert_array_almost_equal(self.weights, expected_weights, decimal=5)
52+
np.testing.assert_array_almost_equal(self.bias, expected_bias, decimal=5)
5353

5454
def test_rmsprop(self):
5555
rmsprop = RMSprop(learning_rate=0.01, rho=0.9)

0 commit comments

Comments
 (0)