1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-11 06:46:56 +08:00

Print volume limitation log

This commit is contained in:
Young
2021-08-04 11:03:38 +00:00
parent 3ff1d91d61
commit 8e87950292
4 changed files with 61 additions and 24 deletions

View File

@@ -273,7 +273,24 @@ class QlibConfig(Config):
else:
raise NotImplementedError(f"This type of uri is not supported")
def set(self, default_conf="client", **kwargs):
def set(self, default_conf: str = "client", **kwargs):
"""
configure qlib based on the input parameters
The configure will act like a dictionary.
Normally, it literally replace the value according to the keys.
However, sometimes it is hard for users to set the config when the configure is nested and complicated
So this API provides some special parameters for users to set the keys in a more convenient way.
- region: REG_CN, REG_US
- several region-related config will be changed
Parameters
----------
default_conf : str
the default config template chosen by user: "server", "client"
"""
from .utils import set_log_with_config, get_module_logger, can_use_cache
self.reset()