mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-01 18:11:18 +08:00
Merge pull request #300 from bxdd/qlib_2021_03_02
Update FAQ doc & Update ops docstring
This commit is contained in:
@@ -70,3 +70,31 @@ If the issue is not resolved, use ``keys *`` to find if multiple keys exist. If
|
||||
|
||||
|
||||
Also, feel free to post a new issue in our GitHub repository. We always check each issue carefully and try our best to solve them.
|
||||
|
||||
3. ModuleNotFoundError: No module named 'qlib.data._libs.rolling'
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
#### Do not import qlib package in the repository directory in case of importing qlib from . without compiling #####
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
||||
File "qlib/qlib/__init__.py", line 19, in init
|
||||
from .data.cache import H
|
||||
File "qlib/qlib/data/__init__.py", line 8, in <module>
|
||||
from .data import (
|
||||
File "qlib/qlib/data/data.py", line 20, in <module>
|
||||
from .cache import H
|
||||
File "qlib/qlib/data/cache.py", line 36, in <module>
|
||||
from .ops import Operators
|
||||
File "qlib/qlib/data/ops.py", line 19, in <module>
|
||||
from ._libs.rolling import rolling_slope, rolling_rsquare, rolling_resi
|
||||
ModuleNotFoundError: No module named 'qlib.data._libs.rolling'
|
||||
|
||||
- If the error occurs when importing ``qlib`` package with ``PyCharm`` IDE, users can execute the following command in the project root folder to compile Cython files and generate executable files:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
python setup.py build_ext --inplace
|
||||
|
||||
- If the error occurs when importing ``qlib`` package with command ``python`` , users need to change the running directory to ensure that the script does not run in the project directory.
|
||||
@@ -1182,7 +1182,7 @@ class Slope(Rolling):
|
||||
Returns
|
||||
----------
|
||||
Expression
|
||||
a feature instance with regression slope of given window
|
||||
a feature instance with linear regression slope of given window
|
||||
"""
|
||||
|
||||
def __init__(self, feature, N):
|
||||
@@ -1210,7 +1210,7 @@ class Rsquare(Rolling):
|
||||
Returns
|
||||
----------
|
||||
Expression
|
||||
a feature instance with regression r-value square of given window
|
||||
a feature instance with linear regression r-value square of given window
|
||||
"""
|
||||
|
||||
def __init__(self, feature, N):
|
||||
|
||||
Reference in New Issue
Block a user