Skip to content

Commit

Permalink
fix: 🐛 replace np.Inf by np.inf because the former is deprecated and …
Browse files Browse the repository at this point in the history
…the latter is standard notation
  • Loading branch information
Thomas Bury committed Sep 16, 2024
1 parent 8079925 commit fb109a1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changes

# 2.3.1
- [BUG] replace np.Inf by np.inf for compatibility purpose

# 2.3.0
- [BUG] corrected the column names for the GrootCV scheme, setting the shadow var in last position to guarantee the real names are used
- [ENHANCEMENT] support user defined cross-validation scheme for time series applications for GrootCV
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ keywords:
- "Machine Learning"
license: MIT License
url: 'https://github.com/ThomasBury/arfs'
version: 2.2.6
version: 2.3.1
date-released: 2021-12-18
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
author = "Thomas Bury"

# The full version, including alpha/beta/rc tags
release = "2.3.0"
release = "2.3.1"

# If extensions (or modules to document with autodoc) are in another
# directory, add these directories to sys.path here. If the directory is
Expand Down
2 changes: 1 addition & 1 deletion src/arfs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""init module, providing information about the arfs package
"""

__version__ = "2.3.0"
__version__ = "2.3.1"
2 changes: 1 addition & 1 deletion src/arfs/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def _fit_tree_and_create_bins(self, X, col, y, sample_weight, is_categorical):
.values.ravel()
)
bin_array = np.delete(bin_array, [np.argmax(bin_array)])
bin_array = np.unique(np.append(bin_array, [-np.Inf, np.Inf]))
bin_array = np.unique(np.append(bin_array, [-np.inf, np.inf]))
self.bin_upper_bound_dic[col] = bin_array

nan_pred_val = tree.predict(np.expand_dims([np.nan], axis=1))[0]
Expand Down

0 comments on commit fb109a1

Please sign in to comment.