mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 08:16:54 +08:00
format code
This commit is contained in:
@@ -71,12 +71,14 @@ def update_online_pred(experiment_name="online_srv"):
|
||||
|
||||
online_manager.update_online_pred()
|
||||
|
||||
def main(provider_uri = "~/.qlib/qlib_data/cn_data", region=REG_CN, experiment_name="online_srv"):
|
||||
|
||||
def main(provider_uri="~/.qlib/qlib_data/cn_data", region=REG_CN, experiment_name="online_srv"):
|
||||
provider_uri = "~/.qlib/qlib_data/cn_data" # target_dir
|
||||
qlib.init(provider_uri=provider_uri, region=region)
|
||||
first_train(experiment_name)
|
||||
update_online_pred(experiment_name)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
## to train a model and set it to online model, use the command below
|
||||
# python update_online_pred.py first_train
|
||||
|
||||
Reference in New Issue
Block a user