Skip to content

Commit f992eda

Browse files
authored
Merge pull request #698 from wearepal/nan-to-num
Fix usage of nan_to_num
2 parents 6bd6446 + a3beca2 commit f992eda

File tree

1 file changed

+1
-1
lines changed
  • ethicml/data/tabular_data

1 file changed

+1
-1
lines changed

ethicml/data/tabular_data/acs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def load(
486486
target_transform=lambda x: x == 1,
487487
group=self.split,
488488
preprocess=lambda x: x,
489-
postprocess=lambda x: np.nan_to_num(x, -1),
489+
postprocess=lambda x: np.nan_to_num(x, nan=-1),
490490
)
491491

492492
dataframe = data_obj._preprocess(dataframe)

0 commit comments

Comments
 (0)