Commits

Lan Zagar committed db5b7a7

Test update.

  • Participants
  • Parent commits 562c338

Comments (0)

Files changed (1)

tests/test_groups.py

 
 
 groups, pergroup, tasks, overlap = 10, 10, 10, 2
-factors = [5,4,3,2,1]
-data = generate_data.Group(groups, pergroup, factors, tasks, overlap=overlap)(pertask=20)
+factors = [3,2,1,1,1]
+data = generate_data.Group(groups, pergroup, factors, tasks, overlap=overlap)(pertask=50)
 
 mean = Orange.regression.mean.MeanLearner()
 mtmean = MultiTaskLearner(learner=mean)
-ridge = Orange.regression.linear.LinearRegressionLearner(ridge_lambda=1)
+ridge = Orange.regression.linear.LinearRegressionLearner(ridge_lambda=4)
 mtridge = MultiTaskLearner(learner=ridge)
-mtf = mtfeat.MTFeatLearner(max_iter=50, gamma=1, intercept=True)
-mtfs = mtfeat.MTFeatLearner(max_iter=50, gamma=1, selection=True, intercept=True)
-mtfg = mtfeat.MTFeatLearner(max_iter=50, gamma=1, intercept=True, groups=[
+mtf = mtfeat.MTFeatLearner(max_iter=50, gamma=3., intercept=True, tol=1e-7)
+mtfs = mtfeat.MTFeatLearner(max_iter=50, gamma=0.1, selection=True, intercept=True, tol=1e-7)
+mtfg = mtfeat.MTFeatLearner(max_iter=50, gamma=0.1, intercept=True, tol=1e-7, groups=[
     range(i * (pergroup - overlap), (i + 1) * pergroup - i * overlap)
     for i in range(groups)])