Skip to content

Commit

Permalink
prepare release 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWestenthanner committed Oct 5, 2022
1 parent a0d4748 commit ef72036
Show file tree
Hide file tree
Showing 4 changed files with 10 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 @@
unreleased
==========

v2.5.1
==========
* Added base class for contrast coding schemes in order to make them more maintainable
* Added hierarchical column feature in target encoder
* Fixed maximum recursion depth bug in hashing encoder
Expand Down
4 changes: 2 additions & 2 deletions category_encoders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
from category_encoders.glmm import GLMMEncoder
from category_encoders.quantile_encoder import QuantileEncoder, SummaryEncoder

__version__ = '2.5.0'
__version__ = '2.5.1'

__author__ = "willmcginnis", "cmougan"
__author__ = "willmcginnis", "cmougan", "paulwestenthanner"

__all__ = [
"BackwardDifferenceEncoder",
Expand Down
3 changes: 3 additions & 0 deletions category_encoders/base_contrast_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import numpy as np
from category_encoders.ordinal import OrdinalEncoder
import category_encoders.utils as util
import warnings

__author__ = 'paulwestenthanner'

Expand Down Expand Up @@ -122,6 +123,8 @@ def transform_contrast_coding(X, mapping):

# See issue 370 if it is necessary to add an intercept or not.
X['intercept'] = pd.Series([1] * X.shape[0], index=X.index)
warnings.warn("Intercept column might not be added anymore in future releases (c.f. issue #370)",
category=FutureWarning)

for switch in mapping:
col = switch.get('col')
Expand Down
4 changes: 2 additions & 2 deletions category_encoders/datasets/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def load_compass():
Returns
-------
X: A pandas series containing features
X: A pandas data frame containing features
y: A pandas series containing the target variable
"""
Expand Down Expand Up @@ -51,7 +51,7 @@ def load_postcodes(target_type='binary'):
Returns
-------
X: A pandas series containing features
X: A pandas data frame containing features
y: A pandas series containing the target variable
"""
Expand Down

0 comments on commit ef72036

Please sign in to comment.