Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features/469 kmeans rework #470

Merged
Prev Previous commit
Next Next commit
Bugfix for Lasso Test
  • Loading branch information
Cdebus committed Feb 5, 2020
commit e82381e5f6a95b0c4141316a978c9be7b72b3c85
6 changes: 3 additions & 3 deletions heat/regression/lasso/tests/test_lasso.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_lasso(self):
X = X / ht.sqrt((ht.mean(X ** 2, axis=0)))
m, n = X.shape
# HeAT lasso instance
estimator = ht.core.regression.lasso.HeatLasso(max_iter=100, tol=None)
estimator = ht.regression.lasso.HeatLasso(max_iter=100, tol=None)
# check whether the results are correct
self.assertEqual(estimator.lam, 0.1)
self.assertTrue(estimator.theta is None)
Expand Down Expand Up @@ -82,7 +82,7 @@ def test_lasso(self):
X = X / torch.sqrt((torch.mean(X ** 2, 0)))
m, n = X.shape

estimator = ht.core.regression.lasso.PytorchLasso(max_iter=100, tol=None)
estimator = ht.regression.lasso.PytorchLasso(max_iter=100, tol=None)
# check whether the results are correct
self.assertEqual(estimator.lam, 0.1)
self.assertTrue(estimator.theta is None)
Expand Down Expand Up @@ -126,7 +126,7 @@ def test_lasso(self):
X = X / np.sqrt((np.mean(X ** 2, axis=0, keepdims=True)))
m, n = X.shape

estimator = ht.core.regression.lasso.NumpyLasso(max_iter=100, tol=None)
estimator = ht.regression.lasso.NumpyLasso(max_iter=100, tol=None)
# check whether the results are correct
self.assertEqual(estimator.lam, 0.1)
self.assertTrue(estimator.theta is None)
Expand Down