Skip to content

Commit

Permalink
21667: Fixes a bug with multiprocesing IFA (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackx111 authored Sep 25, 2024
1 parent e7201d9 commit d0b5109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion howso/utilities/feature_attributes/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _shard(data: pd.DataFrame, *, kwargs: dict[str, t.Any]):
ifr_inst = InferFeatureAttributesDataFrame(data)
# Filter out features that are not related to this shard.
_kwargs = kwargs.copy()
if "features" in _kwargs:
if _kwargs.get("features") is not None:
_kwargs['features'] = {
k: v for k, v in _kwargs["features"].items()
if k in data.columns
Expand Down

0 comments on commit d0b5109

Please sign in to comment.