Skip to content

Commit

Permalink
Fix groups logic for use_child_oof (#4111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Innixma committed Apr 17, 2024
1 parent 8e06686 commit 04a390c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ def _fit(
**kwargs,
):
use_child_oof = self.params.get("use_child_oof", False)
if use_child_oof and groups is not None:
logger.log(20, f"\tForcing `use_child_oof=False` because `groups` is specified")
use_child_oof = False
if use_child_oof:
if self.is_fit():
# TODO: We may want to throw an exception instead and avoid calling fit more than once
Expand Down

0 comments on commit 04a390c

Please sign in to comment.