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

[949] - Remove argument internal in BaseRun::download_data. (#953)

* [949] - Remove argument internal in BaseRun::download_data.

* Fix black.

* Fix bug.
This commit is contained in:
Chia-hung Tai
2022-03-08 10:26:35 +08:00
committed by GitHub
parent 9e3d0249f7
commit 57f7ed9914
4 changed files with 4 additions and 9 deletions

View File

@@ -226,7 +226,6 @@ class Run(BaseRun):
delay=0,
start=None,
end=None,
interval="1d",
check_data_length: int = None,
limit_nums=None,
):
@@ -255,7 +254,7 @@ class Run(BaseRun):
$ python collector.py download_data --source_dir ~/.qlib/crypto_data/source/1d --start 2015-01-01 --end 2021-11-30 --delay 1 --interval 1d
"""
super(Run, self).download_data(max_collector_count, delay, start, end, interval, check_data_length, limit_nums)
super(Run, self).download_data(max_collector_count, delay, start, end, check_data_length, limit_nums)
def normalize_data(self, date_field_name: str = "date", symbol_field_name: str = "symbol"):
"""normalize data