Skip to content

Commit

Permalink
Update test_dml_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenKlaassen committed Jan 13, 2025
1 parent d1a4915 commit 5bd1d3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doubleml/tests/test_dml_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def test_add_vars_in_df():
np.random.seed(3141)
df = make_plr_CCDDHNR2018(n_obs=100, return_type="DataFrame")
dml_data_full_df = DoubleMLData(df, "y", "d", ["X1", "X11", "X13"])
dml_data_subset = DoubleMLData(df[["X1", "X11", "X13"] + ["y", "d"]], "y", "d", ["X1", "X11", "X13"])
subset_columns = ["X1", "X11", "X13", "y", "d"]
dml_data_subset = DoubleMLData(df[subset_columns], "y", "d", ["X1", "X11", "X13"])

Check failure

Code scanning / CodeQL

Unhashable object hashed Error test

This
instance
of
list
is unhashable.
dml_plr_full_df = DoubleMLPLR(dml_data_full_df, Lasso(), Lasso())
dml_plr_subset = DoubleMLPLR(dml_data_subset, Lasso(), Lasso(), draw_sample_splitting=False)
dml_plr_subset.set_sample_splitting(dml_plr_full_df.smpls)
Expand Down

0 comments on commit 5bd1d3f

Please sign in to comment.