mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 16:26:55 +08:00
adjust data and model interface
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
'''
|
||||
TODO:
|
||||
|
||||
- Online needs that the model have such method
|
||||
def get_data_with_date(self, date, **kwargs):
|
||||
"""
|
||||
Will be called in online module
|
||||
need to return the data that used to predict the label (score) of stocks at date.
|
||||
|
||||
:param
|
||||
date: pd.Timestamp
|
||||
predict date
|
||||
:return:
|
||||
data: the input data that used to predict the label (score) of stocks at predict date.
|
||||
"""
|
||||
raise NotImplementedError("get_data_with_date for this model is not implemented.")
|
||||
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user