diff --git a/README.md b/README.md index a14ab5c31..8276c4951 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,20 @@ [![License](https://img.shields.io/pypi/l/pyqlib)](LICENSE) [![Join the chat at https://gitter.im/Microsoft/qlib](https://badges.gitter.im/Microsoft/qlib.svg)](https://gitter.im/Microsoft/qlib?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +## :newspaper: **What's NEW!**   :sparkling_heart: +Recent released features +| Feature | Status | +| -- | ------ | +| Online serving and automatic model rolling | :star: [Released](https://github.com/microsoft/qlib/pull/290) on May 17, 2021 | +| DoubleEnsemble Model | [Released](https://github.com/microsoft/qlib/pull/286) on Mar 2, 2021 | +| High-frequency data processing example | [Released](https://github.com/microsoft/qlib/pull/257) on Feb 5, 2021 | +| High-frequency trading example | [Part of code released](https://github.com/microsoft/qlib/pull/227) on Jan 28, 2021 | +| High-frequency data(1min) | [Released](https://github.com/microsoft/qlib/pull/221) on Jan 27, 2021 | +| Tabnet Model | [Released](https://github.com/microsoft/qlib/pull/205) on Jan 22, 2021 | + +Features released before 2021 are not listed here. + +

@@ -21,7 +35,7 @@ With Qlib, users can easily try ideas to create better Quant investment strategi For more details, please refer to our paper ["Qlib: An AI-oriented Quantitative Investment Platform"](https://arxiv.org/abs/2009.11189). -- [**News and Plans**](#news-and-plans) +- [**Plans**](#plans) - [Framework of Qlib](#framework-of-qlib) - [Quick Start](#quick-start) - [Installation](#installation) @@ -40,7 +54,7 @@ For more details, please refer to our paper ["Qlib: An AI-oriented Quantitative - [Contributing](#contributing) -# News And Plans +# Plans New features under development(order by estimated release time). Your feedbacks about the features are very important. | Feature | Status | @@ -51,18 +65,6 @@ Your feedbacks about the features are very important. | High-frequency trading | Under review: https://github.com/microsoft/qlib/pull/408 | | Meta-Learning-based data selection | Initial opensource version under development | -Recent released features -| Feature | Status | -| -- | ------ | -| Online serving and automatic model rolling | Released: https://github.com/microsoft/qlib/pull/290 | -| DoubleEnsemble Model | Released https://github.com/microsoft/qlib/pull/286 | -| High-frequency data processing example | Released https://github.com/microsoft/qlib/pull/257 | -| High-frequency trading example | Part of code released https://github.com/microsoft/qlib/pull/227 | -| High-frequency data(1min) | Released https://github.com/microsoft/qlib/pull/221 | -| Tabnet Model | Released https://github.com/microsoft/qlib/pull/205 | - -Features released before 2021 are not listed here. - # Framework of Qlib

diff --git a/qlib/utils/__init__.py b/qlib/utils/__init__.py index 77857182d..dbbe69d43 100644 --- a/qlib/utils/__init__.py +++ b/qlib/utils/__init__.py @@ -8,6 +8,7 @@ from __future__ import print_function import os import pickle import re +import sys import copy import json import yaml @@ -178,8 +179,10 @@ def get_module_by_module_path(module_path: Union[str, ModuleType]): module = module_path else: if module_path.endswith(".py"): - module_spec = importlib.util.spec_from_file_location("", module_path) + module_name = re.sub("^[^a-zA-Z_]+", "", re.sub("[^0-9a-zA-Z_]", "", module_path[:-3].replace("/", "_"))) + module_spec = importlib.util.spec_from_file_location(module_name, module_path) module = importlib.util.module_from_spec(module_spec) + sys.modules[module_name] = module module_spec.loader.exec_module(module) else: module = importlib.import_module(module_path) diff --git a/scripts/README.md b/scripts/README.md index ff7ba8015..ff2e7f402 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -22,7 +22,7 @@ python get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/qlib_cn_1min --region cn --interval 1min ``` -### Downlaod US Data +### Download US Data ```bash