Skip to content

Commit

Permalink
fix the bug that DAE/SDAE's transform() changes the input dataframe (#57
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jeongyoonlee authored Jun 4, 2021
1 parent f229afe commit 5994583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kaggler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.9.8'
__version__ = '0.9.9'
__all__ = ['const',
'data_io',
'ensemble',
Expand Down
1 change: 1 addition & 0 deletions kaggler/preprocessing/autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def transform(self, X):
Returns:
Encoding matrix for features
"""
X = X.copy()
if self.cat_cols:
X[self.cat_cols] = self.lbe.transform(X[self.cat_cols])

Expand Down

0 comments on commit 5994583

Please sign in to comment.