// multiple class variables
y = np.random.random_integers(10, 11, (nrows, 2))
t = data.Table(x, y)
learn = dummies.DummyLearner()
with self.assertRaises(TypeError):
clf = learn(t)
// single class variable
y = np.random.random_integers(10, 11, (nrows, 1))
t = data.Table(x, y)
learn = dummies.DummyLearner()
clf = learn(t)
z = clf(x)
self.assertEqual(z.ndim, 1)
After Change
// single class variable
y = np.random.random_integers(10, 11, (nrows, 1))
t = data.Table(x, y)
learn = DummyLearner()
clf = learn(t)
z = clf(x)
self.assertEqual(z.ndim, 1)