Skip to content

Commit

Permalink
Silence warning by allowing extra columns
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Jul 22, 2024
1 parent 2bbff23 commit b6c56e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion baybe/surrogates/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ def fit(

def transform_inputs(df: pd.DataFrame, /) -> pd.DataFrame:
"""Fitted input transformation pipeline."""
out = input_scaler.transform(searchspace.transform(df, allow_missing=True))
out = input_scaler.transform(
searchspace.transform(df, allow_extra=True, allow_missing=True)
)
return pd.DataFrame(
out, index=df.index, columns=input_scaler.get_feature_names_out()
)
Expand Down

0 comments on commit b6c56e9

Please sign in to comment.