mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-17 01:14:35 +08:00
update comments
This commit is contained in:
@@ -125,8 +125,7 @@ class DataHandler(Serializable):
|
|||||||
|
|
||||||
def setup_data(self, enable_cache: bool = False):
|
def setup_data(self, enable_cache: bool = False):
|
||||||
"""
|
"""
|
||||||
Set Up the data.
|
Set Up the data in case of running intialization for multiple time
|
||||||
In case of running intialization for multiple time, it will do nothing for the second time.
|
|
||||||
|
|
||||||
It is responsible for maintaining following variable
|
It is responsible for maintaining following variable
|
||||||
1) self._data
|
1) self._data
|
||||||
@@ -431,7 +430,7 @@ class DataHandlerLP(DataHandler):
|
|||||||
|
|
||||||
def setup_data(self, init_type: str = IT_FIT_SEQ, **kwargs):
|
def setup_data(self, init_type: str = IT_FIT_SEQ, **kwargs):
|
||||||
"""
|
"""
|
||||||
Set up the data of Qlib
|
Set up the data in case of running intialization for multiple time
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class Processor(Serializable):
|
|||||||
def config(self, **kwargs):
|
def config(self, **kwargs):
|
||||||
attr_list = {"fit_start_time", "fit_end_time"}
|
attr_list = {"fit_start_time", "fit_end_time"}
|
||||||
for k, v in kwargs.items():
|
for k, v in kwargs.items():
|
||||||
if k in attr_list and getattr(self, k, None) is not None:
|
if k in attr_list and hasattr(self, k):
|
||||||
setattr(self, k, v)
|
setattr(self, k, v)
|
||||||
|
|
||||||
for attr in attr_list:
|
for attr in attr_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user