Skip to content

Commit

Permalink
Fixes failing tests. Update to newer api.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed Feb 23, 2024
1 parent 1005340 commit 9cfcbe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion groupyr/sgl.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _alpha_grid(
n_samples = len(y)
if Xy is None:
X = check_array(X, accept_sparse=False, copy=(copy_X and fit_intercept))
X, y, _, _, _ = _preprocess_data(X, y, fit_intercept, normalize, copy=False)
X, y, _, _, _ = _preprocess_data(X, y, fit_intercept=fit_intercept, copy=False)
Xy = safe_sparse_dot(X.T, y, dense_output=True)

if Xy.ndim == 1:
Expand Down
2 changes: 1 addition & 1 deletion groupyr/tests/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def test_GroupAggregator():
feature_names_ref = []
for grp in group_names:
feature_names_ref.append("__".join([grp, "mean"]))
feature_names_ref.append("__".join([grp, "max"]))
feature_names_ref.append("__".join([grp, "amax"]))

assert ga.feature_names_out_ == feature_names_ref # nosec
X_ref = np.array([np.array([1, 2, 4, 5, 7, 8, 9, 9]) + i * 10 for i in range(10)])
Expand Down

0 comments on commit 9cfcbe0

Please sign in to comment.