self.assertLess(Orange.evaluation.RMSE(res)[0], 0.1)
def test_NuSVR(self):
nrows, ncols = 200, 5
X = np.random.rand(nrows, ncols)
y = X.dot(np.random.rand(ncols))
data = Orange.data.Table(X, y)
learn = NuSVRLearner(kernel="rbf", gamma=0.1)
res = Orange.evaluation.CrossValidation(data, [learn], k=2)
self.assertLess(Orange.evaluation.RMSE(res)[0], 0.1)
def test_OneClassSVM(self):
// TODO: improve the test - what does it check?