Skip to content

Commit

Permalink
Improve variable names
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Schmidtblaicher <[email protected]>
  • Loading branch information
stanmart and MatthiasSchmidtblaicherQC authored Jan 29, 2024
1 parent 7ddc9c2 commit 745c5c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/glm/test_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,14 +389,14 @@ def test_P1_P2_expansion_with_categoricals_missings():
mdl2.fit(X, y)
np.testing.assert_allclose(mdl1.coef_, mdl2.coef_)

mdl2 = GeneralizedLinearRegressor(
mdl3 = GeneralizedLinearRegressor(
l1_ratio=0.01,
P1=[1, 2],
P2=sparse.diags([2, 1, 1, 1, 1, 1]),
cat_missing_method="convert",
)
mdl2.fit(X, y)
np.testing.assert_allclose(mdl1.coef_, mdl2.coef_)
mdl3.fit(X, y)
np.testing.assert_allclose(mdl1.coef_, mdl3.coef_)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 745c5c4

Please sign in to comment.