a37921eef9c5c67fc43c6c81d42616bda10b3cde,Orange/tests/test_domain.py,TestDomainInit,test_from_numpy_dimensions,#TestDomainInit#,155
Before Change
["Meta {:03}".format(i) for i in range(1, 101)])
def test_from_numpy_dimensions(self):
d = Domain.from_numpy(np.zeros((1, 1)), np.zeros(5))
self.assertTrue(d.anonymous)
self.assertEqual(len(d.class_vars), 1)
d = Domain.from_numpy(np.zeros((1, 1)), np.zeros((5, 1)))
self.assertTrue(d.anonymous)
self.assertEqual(len(d.class_vars), 1)
After Change
["Meta {:03}".format(i) for i in range(1, 101)])
def test_from_numpy_dimensions(self):
for dimension in [[5], [5, 1]]:
d = Domain.from_numpy(np.zeros((1, 1)), np.zeros(dimension))
self.assertTrue(d.anonymous)
self.assertEqual(len(d.class_vars), 1)
self.assertRaises(ValueError, Domain.from_numpy, np.zeros(2))
self.assertRaises(ValueError, Domain.from_numpy, np.zeros((2, 2, 2)))
self.assertRaises(ValueError, Domain.from_numpy, np.zeros((2, 2)), np.zeros((2, 2, 2)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: biolab/orange3
Commit Name: a37921eef9c5c67fc43c6c81d42616bda10b3cde
Time: 2016-04-22
Author: andrej.jugovic7@gmail.com
File Name: Orange/tests/test_domain.py
Class Name: TestDomainInit
Method Name: test_from_numpy_dimensions
Project Name: biolab/orange3
Commit Name: a37921eef9c5c67fc43c6c81d42616bda10b3cde
Time: 2016-04-22
Author: andrej.jugovic7@gmail.com
File Name: Orange/tests/test_domain.py
Class Name: TestDomainInit
Method Name: test_from_numpy_dimensions
Project Name: biolab/orange3
Commit Name: a37921eef9c5c67fc43c6c81d42616bda10b3cde
Time: 2016-04-22
Author: andrej.jugovic7@gmail.com
File Name: Orange/tests/test_domain.py
Class Name: TestDomainInit
Method Name: test_from_numpy_names
Project Name: biolab/orange3
Commit Name: a37921eef9c5c67fc43c6c81d42616bda10b3cde
Time: 2016-04-22
Author: andrej.jugovic7@gmail.com
File Name: Orange/tests/test_domain.py
Class Name: TestDomainInit
Method Name: test_from_numpy_values