FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Learning: Neural Net Test + Minor Styling Fix (#746) · binlecode/aima-python@eae217b · GitHub

Repository navigation

Commit eae217b

Browse files
authored andcommitted
Learning: Neural Net Test + Minor Styling Fix (aimacode#746)
* Update learning.py * Update test_learning.py
1 parent 3092089 commit eae217b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎learning.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def predict(example):
309309
def NaiveBayesLearner(dataset, continuous=True, simple=False):
310310
if simple:
311311
return NaiveBayesSimple(dataset)
312-
if(continuous):
312+
if continuous:
313313
return NaiveBayesContinuous(dataset)
314314
else:
315315
return NaiveBayesDiscrete(dataset)

‎tests/test_learning.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_neural_network_learner():
192192
([7.3, 4.0, 6.1, 2.4], 2),
193193
([7.0, 3.3, 6.1, 2.5], 2)]
194194
assert grade_learner(nNL, tests) >= 1/3
195-
assert err_ratio(nNL, iris) < 0.2
195+
assert err_ratio(nNL, iris) < 0.21
196196

197197

198198
def test_perceptron():

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL