a37921eef9c5c67fc43c6c81d42616bda10b3cde,Orange/tests/test_domain.py,TestDomainInit,test_from_numpy_names,#TestDomainInit#,126
Before Change
self.assertEqual([var.name for var in d.attributes],
["Feature {:02}".format(i) for i in range(1, 100)])
d = Domain.from_numpy(np.zeros((1, 100)))
self.assertTrue(d.anonymous)
self.assertEqual([var.name for var in d.attributes],
["Feature {:03}".format(i) for i in range(1, 101)])
After Change
self.assertEqual(d.metas, metas)
def test_from_numpy_names(self):
for n_cols, name in [(5, "Feature {}"),
(99, "Feature {:02}"),
(100, "Feature {:03}")]:
d = Domain.from_numpy(np.zeros((1, n_cols)))
self.assertTrue(d.anonymous)
self.assertEqual([var.name for var in d.attributes],
[name.format(i) for i in range(1, n_cols+1)])
d = Domain.from_numpy(np.zeros((1, 1)))
self.assertTrue(d.anonymous)
self.assertEqual(d.attributes[0].name, "Feature")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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_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
Project Name: biolab/orange3
Commit Name: 893b7c85c0cb072dfb59cbc1cca81a4a923d9df8
Time: 2015-12-18
Author: tomaz.hocevar@fri.uni-lj.si
File Name: Orange/tests/test_softmax_regression.py
Class Name: SoftmaxRegressionTest
Method Name: test_SoftmaxRegressionPreprocessors