Skip to content

Commit

Permalink
fix bug in fix clip_outlier in class RobustZScoreNorm(Processor) (mic…
Browse files Browse the repository at this point in the history
  • Loading branch information
NotF404 authored Nov 11, 2022
1 parent c67fa85 commit 59438f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qlib/data/dataset/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ def __call__(self, df):
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


Expand Down

0 comments on commit 59438f4

Please sign in to comment.