Skip to content

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)

Calls to make_learner, make_grid_search, or make_randomized_search with keep_subsampling=True where fitted is omitted or set to False.

Pass fitted=True to fit on the subsampled preview data, or set keep_subsampling=False when constructing an unfitted learner.

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.