Skip to content

Commit da2c65d

Browse files
committed
fix typo in is_scale_log_needed (#293)
1 parent bcc280e commit da2c65d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

supervised/preprocessing/preprocessing_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ def is_scale_needed(x_org):
8383

8484
@staticmethod
8585
def is_log_scale_needed(x_org):
86-
x = np.array(x_org[~pd.isnull(x_org)])
86+
x_full = np.array(x_org[~pd.isnull(x_org)])
8787
# first scale on raw data
88-
x = preprocessing.scale(x)
88+
x = preprocessing.scale(x_full)
8989
# second scale on log data
90-
x_log = preprocessing.scale(np.log(x - np.min(x) + 1))
90+
x_log = preprocessing.scale(np.log(x_full - np.min(x_full) + 1))
9191

9292
# the old approach, let's check how new approach will work
9393
# original_skew = np.abs(stats.skew(x))

0 commit comments

Comments
 (0)