mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 05:51:17 +08:00
fix bug in fix clip_outlier in class RobustZScoreNorm(Processor) (#1294)
This commit is contained in:
@@ -289,9 +289,9 @@ class RobustZScoreNorm(Processor):
|
||||
X = df[self.cols]
|
||||
X -= self.mean_train
|
||||
X /= self.std_train
|
||||
df[self.cols] = X
|
||||
if self.clip_outlier:
|
||||
df.clip(-3, 3, inplace=True)
|
||||
X = np.clip(X, -3, 3)
|
||||
df[self.cols] = X
|
||||
return df
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user