From 3e6e2865ce6064c2f55ce78a62592236d4cf624c Mon Sep 17 00:00:00 2001 From: YaOzI Date: Tue, 14 Jun 2022 20:12:14 +0800 Subject: [PATCH] Fixed a few mixed Chinese punctuation typos (#1123) --- docs/component/strategy.rst | 2 +- qlib/config.py | 2 +- qlib/contrib/meta/data_selection/dataset.py | 2 +- qlib/contrib/model/pytorch_tabnet.py | 2 +- qlib/data/storage/file_storage.py | 2 +- scripts/dump_bin.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/component/strategy.rst b/docs/component/strategy.rst index 06ed686f1..d16527b3c 100644 --- a/docs/component/strategy.rst +++ b/docs/component/strategy.rst @@ -66,7 +66,7 @@ TopkDropoutStrategy - Adopt the ``Topk-Drop`` algorithm to calculate the target amount of each stock .. note:: - There are two parameters for the ``Topk-Drop`` algorithm: + There are two parameters for the ``Topk-Drop`` algorithm: - `Topk`: The number of stocks held - `Drop`: The number of stocks sold on each trading day diff --git a/qlib/config.py b/qlib/config.py index 8c54f6af9..8fc7d778d 100644 --- a/qlib/config.py +++ b/qlib/config.py @@ -113,7 +113,7 @@ _default_config = { # "~/.qlib/stock_data/cn_data" # # dict # {"day": "~/.qlib/stock_data/cn_data", "1min": "~/.qlib/stock_data/cn_data_1min"} - # NOTE: provider_uri priority: + # NOTE: provider_uri priority: # 1. backend_config: backend_obj["kwargs"]["provider_uri"] # 2. backend_config: backend_obj["kwargs"]["provider_uri_map"] # 3. qlib.init: provider_uri diff --git a/qlib/contrib/meta/data_selection/dataset.py b/qlib/contrib/meta/data_selection/dataset.py index 379588e85..2c6fe2eae 100644 --- a/qlib/contrib/meta/data_selection/dataset.py +++ b/qlib/contrib/meta/data_selection/dataset.py @@ -217,7 +217,7 @@ class MetaDatasetDS(MetaTaskDataset): ---------- task_tpl : Union[dict, list] Decide what tasks are used. - - dict : the task template, the prepared task is generated with `step`, `trunc_days` and `RollingGen` + - dict : the task template, the prepared task is generated with `step`, `trunc_days` and `RollingGen` - list : when list, use the list of tasks directly the list is supposed to be sorted according timeline step : int diff --git a/qlib/contrib/model/pytorch_tabnet.py b/qlib/contrib/model/pytorch_tabnet.py index 68cc907bb..adc7354fe 100644 --- a/qlib/contrib/model/pytorch_tabnet.py +++ b/qlib/contrib/model/pytorch_tabnet.py @@ -53,7 +53,7 @@ class TabnetModel(Model): """ TabNet model for Qlib - Args: + Args: ps: probability to generate the bernoulli mask """ # set hyper-parameters. diff --git a/qlib/data/storage/file_storage.py b/qlib/data/storage/file_storage.py index bcf1bfd01..faa3b404a 100644 --- a/qlib/data/storage/file_storage.py +++ b/qlib/data/storage/file_storage.py @@ -24,7 +24,7 @@ class FileStorageMixin: """ - # NOTE: provider_uri priority: + # NOTE: provider_uri priority: # 1. self._provider_uri : if provider_uri is provided. # 2. provider_uri in qlib.config.C diff --git a/scripts/dump_bin.py b/scripts/dump_bin.py index 582a629fc..dbee65446 100644 --- a/scripts/dump_bin.py +++ b/scripts/dump_bin.py @@ -488,7 +488,7 @@ class DumpDataUpdate(DumpDataBase): except Exception: error_code[futures[_future]] = traceback.format_exc() p_bar.update() - logger.info(f"dump bin errors: {error_code}") + logger.info(f"dump bin errors: {error_code}") logger.info("end of features dump.\n")