| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dcaa880 commit dae3e4d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,10 +26,10 @@ def test_neural_net(): | |||
| 26 | 26 | np.array([x[n_features] for x in iris.examples]) | |
| 27 | 27 | nnl_gd = NeuralNetworkLearner(iris, [4], l_rate=0.15, epochs=100, optimizer=stochastic_gradient_descent).fit(X, y) | |
| 28 | 28 | assert grade_learner(nnl_gd, iris_tests) > 0.7 | |
| 29 | - assert err_ratio(nnl_gd, iris) < 0.1 | ||
| 29 | + assert err_ratio(nnl_gd, iris) < 0.15 | ||
| 30 | 30 | nnl_adam = NeuralNetworkLearner(iris, [4], l_rate=0.001, epochs=200, optimizer=adam).fit(X, y) | |
| 31 | 31 | assert grade_learner(nnl_adam, iris_tests) == 1 | |
| 32 | - assert err_ratio(nnl_adam, iris) < 0.1 | ||
| 32 | + assert err_ratio(nnl_adam, iris) < 0.15 | ||
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | 35 | def test_perceptron(): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments