Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5663e4

Browse files
authored
dropping the acceptable error rate values
1 parent c431efe commit e5663e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_deep_learning4e.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def test_neural_net():
2626
np.array([x[n_features] for x in iris.examples])
2727
nnl_gd = NeuralNetworkLearner(iris, [4], l_rate=0.15, epochs=100, optimizer=stochastic_gradient_descent).fit(X, y)
2828
assert grade_learner(nnl_gd, iris_tests) > 0.7
29-
assert err_ratio(nnl_gd, iris) < 0.08
29+
assert err_ratio(nnl_gd, iris) < 0.1
3030
nnl_adam = NeuralNetworkLearner(iris, [4], l_rate=0.001, epochs=200, optimizer=adam).fit(X, y)
3131
assert grade_learner(nnl_adam, iris_tests) == 1
32-
assert err_ratio(nnl_adam, iris) < 0.08
32+
assert err_ratio(nnl_adam, iris) < 0.1
3333

3434

3535
def test_perceptron():

0 commit comments

Comments
 (0)