diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e91c83..afee33a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/CITATION.cff b/CITATION.cff index 387169d..b3f24a9 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -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 diff --git a/docs/conf.py b/docs/conf.py index 8a16db6..d52e0e6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 diff --git a/src/arfs/__init__.py b/src/arfs/__init__.py index d1c0ab9..ec67416 100644 --- a/src/arfs/__init__.py +++ b/src/arfs/__init__.py @@ -1,4 +1,4 @@ """init module, providing information about the arfs package """ -__version__ = "2.3.0" +__version__ = "2.3.1" diff --git a/src/arfs/preprocessing.py b/src/arfs/preprocessing.py index a6e3059..24bb244 100644 --- a/src/arfs/preprocessing.py +++ b/src/arfs/preprocessing.py @@ -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]