mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 00:06:58 +08:00
simplify parameters
This commit is contained in:
@@ -60,7 +60,6 @@ class DataHandler(Serializable):
|
|||||||
data_loader: Tuple[dict, str, DataLoader] = None,
|
data_loader: Tuple[dict, str, DataLoader] = None,
|
||||||
init_data=True,
|
init_data=True,
|
||||||
fetch_orig=True,
|
fetch_orig=True,
|
||||||
**kwargs,
|
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Parameters
|
Parameters
|
||||||
@@ -77,8 +76,6 @@ class DataHandler(Serializable):
|
|||||||
intialize the original data in the constructor.
|
intialize the original data in the constructor.
|
||||||
fetch_orig : bool
|
fetch_orig : bool
|
||||||
Return the original data instead of copy if possible.
|
Return the original data instead of copy if possible.
|
||||||
**kwargs:
|
|
||||||
it will be passed into data_loader
|
|
||||||
"""
|
"""
|
||||||
# Set logger
|
# Set logger
|
||||||
self.logger = get_module_logger("DataHandler")
|
self.logger = get_module_logger("DataHandler")
|
||||||
@@ -91,7 +88,6 @@ class DataHandler(Serializable):
|
|||||||
data_loader,
|
data_loader,
|
||||||
None if (isinstance(data_loader, dict) and "module_path" in data_loader) else data_loader_module,
|
None if (isinstance(data_loader, dict) and "module_path" in data_loader) else data_loader_module,
|
||||||
accept_types=DataLoader,
|
accept_types=DataLoader,
|
||||||
**kwargs,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# what data to be loaded from data source
|
# what data to be loaded from data source
|
||||||
|
|||||||
Reference in New Issue
Block a user