Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdapretnar committed Sep 14, 2017
1 parent 596fb9f commit d8dfa1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Orange/tests/test_neural_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ def test_NN_regression(self):
const = ConstantLearner()
results = CrossValidation(self.housing, [NNRegressionLearner(), const],
k=3)
mse = MSE(results)
self.assertLess(mse[0], 35)
self.assertLess(mse[0], mse[1])
mse = MSE()
res = mse(results)
self.assertLess(res[0], 35)
self.assertLess(res[0], res[1])

def test_NN_model(self):
results = CrossValidation(self.iris, [self.learner], k=3)
self.assertGreater(CA(results), 0.90)
results = CrossValidation(self.housing, [self.learner], k=3)
mse = MSE(results)
self.assertLess(mse[0], 35)
mse = MSE()
res = mse(results)
self.assertLess(res[0], 35)

def test_NN_classification_predict_single_instance(self):
lrn = NNClassificationLearner()
Expand Down
2 changes: 1 addition & 1 deletion Orange/widgets/model/owneuralnetwork.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
from AnyQt.QtCore import Qt
import re

from Orange.data import Table
from Orange.modelling import NNLearner
Expand Down

0 comments on commit d8dfa1b

Please sign in to comment.