mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-17 17:34:35 +08:00
Update record to support time series dataset.
This commit is contained in:
@@ -141,6 +141,12 @@ class SignalRecord(RecordTemp):
|
|||||||
del params["data_key"]
|
del params["data_key"]
|
||||||
# The backend handler should be DataHandler
|
# The backend handler should be DataHandler
|
||||||
raw_label = DatasetH.prepare(**params)
|
raw_label = DatasetH.prepare(**params)
|
||||||
|
|
||||||
|
if not isinstance(raw_label, pd.DataFrame):
|
||||||
|
index = raw_label.get_index()
|
||||||
|
raw_label = raw_label.data.loc[index]
|
||||||
|
raw_label = raw_label.iloc[:,-1:]
|
||||||
|
|
||||||
self.recorder.save_objects(**{"label.pkl": raw_label})
|
self.recorder.save_objects(**{"label.pkl": raw_label})
|
||||||
|
|
||||||
def list(self):
|
def list(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user