Skip to content

Commit

Permalink
Fixes column name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludvig committed Aug 26, 2024
1 parent 89f779c commit 911f0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generalize/model/cross_validate/grid_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def simplest_model_refit_strategy(cv_results):
)
var_col_nm, var_key_nm = var_split

cv_results.loc[:, var_col_nm] = cv_results["params"].apply(
cv_results.loc[:, var_nm] = cv_results["params"].apply(
lambda d: d[var_col_nm][var_key_nm.lstrip("_")]
)

Expand Down

0 comments on commit 911f0bf

Please sign in to comment.