Skip to content

Commit

Permalink
Add TODO note
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Nov 22, 2024
1 parent 90dbb09 commit ce0982a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions baybe/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ def toggle_discrete_candidates( # noqa: DOC501
elif isinstance(constraints, Collection) and is_all_instance(
constraints, DiscreteConstraint
):
# TODO: Should be taken over by upcoming `SubspaceDiscrete.filter` method,
# automatically choosing the appropriate backend (polars/pandas/...)

# Filter the search space dataframe according to the given constraint
idx = reduce(
lambda x, y: x.intersection(y), (c.get_valid(df) for c in constraints)
Expand Down

0 comments on commit ce0982a

Please sign in to comment.