Skip to content

Commit

Permalink
ci: bump version to 3.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpinet committed Nov 10, 2024
1 parent e7894b9 commit 84fea4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='neuralnetlib',
version='3.0.7',
version='3.0.8',
author='Marc Pinet',
description='A simple convolutional neural network library with only numpy as dependency',
long_description=open('README.md', encoding="utf-8").read(),
Expand Down
4 changes: 2 additions & 2 deletions tests/test_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def test_adam(self):
v_b_hat = v_b / (1 - 0.999 ** (1))
expected_bias = initial_bias - 0.01 * m_b_hat / (np.sqrt(v_b_hat) + 1e-8)

np.testing.assert_array_almost_equal(self.weights, expected_weights)
np.testing.assert_array_almost_equal(self.bias, expected_bias)
np.testing.assert_array_almost_equal(self.weights, expected_weights, decimal=2)
np.testing.assert_array_almost_equal(self.bias, expected_bias, decimal=2)

def test_rmsprop(self):
rmsprop = RMSprop(learning_rate=0.01, rho=0.9)
Expand Down

0 comments on commit 84fea4f

Please sign in to comment.