We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcc280e commit da2c65dCopy full SHA for da2c65d
supervised/preprocessing/preprocessing_utils.py
@@ -83,11 +83,11 @@ def is_scale_needed(x_org):
83
84
@staticmethod
85
def is_log_scale_needed(x_org):
86
- x = np.array(x_org[~pd.isnull(x_org)])
+ x_full = np.array(x_org[~pd.isnull(x_org)])
87
# first scale on raw data
88
- x = preprocessing.scale(x)
+ x = preprocessing.scale(x_full)
89
# second scale on log data
90
- x_log = preprocessing.scale(np.log(x - np.min(x) + 1))
+ x_log = preprocessing.scale(np.log(x_full - np.min(x_full) + 1))
91
92
# the old approach, let's check how new approach will work
93
# original_skew = np.abs(stats.skew(x))
0 commit comments