From 84fea4ff4d8f65713dae5618eb83329d915178d6 Mon Sep 17 00:00:00 2001 From: GitHub Action <52708150+marcpinet@users.noreply.github.com> Date: Sun, 10 Nov 2024 02:37:08 +0100 Subject: [PATCH] ci: bump version to 3.0.8 --- setup.py | 2 +- tests/test_optimizers.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index dc90391..afeeed7 100644 --- a/setup.py +++ b/setup.py @@ -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(), diff --git a/tests/test_optimizers.py b/tests/test_optimizers.py index ce4860b..0041760 100644 --- a/tests/test_optimizers.py +++ b/tests/test_optimizers.py @@ -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)