1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

Update processor.

This commit is contained in:
lwwang1995
2020-11-12 13:20:49 +08:00
parent 063bfd4621
commit 54a256d3bc

View File

@@ -160,7 +160,7 @@ class ZscoreNorm(Processor):
df = fetch_df_by_index(df, slice(self.fit_start_time, self.fit_end_time), level="datetime")
cols = get_group_columns(df, self.fields_group)
self.mean_train = np.nanmean(df[cols].values, axis=0)
self.std_train = np.nanstd(_df[cols].values, axis=0)
self.std_train = np.nanstd(df[cols].values, axis=0)
self.ignore = self.std_train == 0
self.cols = cols