source: orange/Orange/testing/unit/tests/test_lasso.py @ 10434:cc6c17c6f286

Revision 10434:cc6c17c6f286, 670 bytes checked in by anzeh <anze.staric@…>, 2 years ago (diff)

Removed testing of Lasso Regression on the auto-mpg dataset because the test takes too long.

For more information see ticket #1118.

Line 
1from Orange.misc import testing
2from Orange.misc.testing import datasets_driven, test_on_data, test_on_datasets
3from Orange.regression import lasso
4import Orange
5try:
6    import unittest2 as unittest
7except:
8    import unittest
9
10@datasets_driven(datasets=["housing", "servo"])
11class TestLassoRegressionLearner(testing.LearnerTestCase):
12
13    def setUp(self):
14        self.learner = lasso.LassoRegressionLearner(n_boot=2, n_perm=2)
15
16    @test_on_data
17    def test_learner_on(self, dataset):
18        testing.LearnerTestCase.test_learner_on(self, dataset)
19        self.assertTrue(isinstance(self.classifier.to_string(), str))
20
21if __name__ == "__main__":
22    unittest.main()
Note: See TracBrowser for help on using the repository browser.