MCPcopy
hub / github.com/microsoft/qlib / _init_qlib

Method _init_qlib

examples/highfreq/workflow.py:83–89  ·  view source on GitHub ↗

initialize qlib

(self)

Source from the content-addressed store, hash-verified

81 }
82
83 def _init_qlib(self):
84 """initialize qlib"""
85 # use cn_data_1min data
86 QLIB_INIT_CONFIG = {**HIGH_FREQ_CONFIG, **self.SPEC_CONF}
87 provider_uri = QLIB_INIT_CONFIG.get("provider_uri")
88 GetData().qlib_data(target_dir=provider_uri, interval="1min", region=REG_CN, exists_skip=True)
89 qlib.init(**QLIB_INIT_CONFIG)
90
91 def _prepare_calender_cache(self):
92 """preload the calendar for cache"""

Callers 2

get_dataMethod · 0.95
dump_and_load_datasetMethod · 0.95

Calls 4

GetDataClass · 0.90
qlib_dataMethod · 0.80
initMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected