source: orange/Orange/testing/unit/tests/test_neural.py @ 11756:0e1509d4c059

Revision 11756:0e1509d4c059, 500 bytes checked in by Ales Erjavec <ales.erjavec@…>, 5 months ago (diff)

Skip neural network tests with numpy < 1.5

Line 
1try:
2    import unittest2 as unittest
3except ImportError:
4    import unittest
5
6import numpy
7from distutils.version import StrictVersion
8
9from Orange.testing import testing
10from Orange.classification import neural
11
12np_version = StrictVersion(numpy.version.short_version).version
13
14
15@unittest.skipIf(np_version < (1, 5), "numpy >= 1.5 required")
16@testing.datasets_driven(datasets=["iris", "lenses", "monks-1"])
17class TestNeuralNetwork(testing.LearnerTestCase):
18    LEARNER = neural.NeuralNetworkLearner
Note: See TracBrowser for help on using the repository browser.