skrub/unfitted-keep-subsampling
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| skrub | error | none, edit by hand | All versions |
DataOp.skb.make_learner, make_grid_search, and make_randomized_search default to fitted=False, and skrub raises ValueError when keep_subsampling=True is passed without fitted=True.
learner = pred.skb.make_learner(keep_subsampling=True)learner = pred.skb.make_learner(fitted=True, keep_subsampling=True)What the rule reports
Section titled “What the rule reports”Calls to make_learner, make_grid_search, or make_randomized_search with keep_subsampling=True where fitted is omitted or set to False.
How to fix it
Section titled “How to fix it”Pass fitted=True to fit on the subsampled preview data, or set keep_subsampling=False when constructing an unfitted learner.
Diagnostic message
Section titled “Diagnostic message”keep_subsampling=True requires fitted=True on make_learner, make_grid_search, and make_randomized_search; skrub raises ValueError when fitted is False (the default). Pass fitted=True or keep_subsampling=False.See all rules in the skrub pack.