alkaline-ml / pmdarima

A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function.
https://www.alkaline-ml.com/pmdarima
MIT License
1.58k stars 232 forks source link

example_auto_arima.py run fail #575

Open wallace-hu opened 6 months ago

wallace-hu commented 6 months ago

Describe the bug

I run the example_auto_arima.py on 4.0.2 verison, and got below error.

root@1d253a791c90:/home# python3 example_auto_arima.py * On entry to DGELSD parameter number 7 had an illegal value Traceback (most recent call last): File "/home/example_auto_arima.py", line 13, in modl = pm.auto_arima(train, start_p=1, start_q=1, start_P=1, start_Q=1,max_p=5, max_q=5, max_P=5, max_Q=5, seasonal=True,stepwise=True, suppress_warnings=True, D=10, max_D=10,error_action='ignore') File "/usr/local/lib/python3.10/dist-packages/pmdarima/arima/auto.py", line 547, in auto_arima d = ndiffs( File "/usr/local/lib/python3.10/dist-packages/pmdarima/arima/utils.py", line 189, in ndiffs pval, dodiff = testfunc(x) File "/usr/local/lib/python3.10/dist-packages/pmdarima/arima/stationarity.py", line 186, in should_diff lm = LinearRegression().fit(t, x) File "/usr/local/lib/python3.10/dist-packages/sklearn/base.py", line 1474, in wrapper return fit_method(estimator, args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/sklearn/linear_model/base.py", line 651, in fit self.coef, , self.rank, self.singular_ = linalg.lstsq(X, y) File "/usr/local/lib/python3.10/dist-packages/scipy/linalg/_basic.py", line 1269, in lstsq lwork, iwork = _compute_lwork(lapack_lwork, m, n, nrhs, cond) File "/usr/local/lib/python3.10/dist-packages/scipy/linalg/lapack.py", line 1007, in _compute_lwork raise ValueError("Internal work array size computation failed: " ValueError: Internal work array size computation failed: -7

To Reproduce

My platform is RISC-V. below is the package list:

Versions

root@1d253a791c90:/home# pip3 list 
Package                   Version
------------------------- -----------
altgraph                  0.17.4
appdirs                   1.4.4
attrs                     21.2.0
Babel                     2.8.0
beautifulsoup4            4.10.0
beniget                   0.4.1
Bottleneck                1.3.6
Brotli                    1.0.9
chardet                   4.0.0
colorama                  0.4.4
cvxopt                    1.2.7
cycler                    0.11.0
Cython                    3.0.9
decorator                 4.4.2
defusedxml                0.7.1
et-xmlfile                1.1.0
fonttools                 4.29.1
fs                        2.4.12
gast                      0.5.4
html5lib                  1.1
importlib-metadata        4.6.4
iniconfig                 1.1.1
jdcal                     1.0
Jinja2                    3.0.3
joblib                    1.3.2
kiwisolver                1.3.2
lightgbm                  4.3.0
lxml                      4.8.0
lz4                       3.1.3+dfsg
MarkupSafe                2.0.1
matplotlib                3.5.1
meson                     1.4.0
more-itertools            8.10.0
mpmath                    0.0.0
numexpr                   2.8.4
numpy                     1.26.4
odfpy                     1.4.2
olefile                   0.46
openpyxl                  3.1.2
packaging                 24.0
pandas                    2.2.1
patsy                     0.5.6
pefile                    2023.2.7
Pillow                    9.0.1
pip                       22.0.2
pluggy                    0.13.0
ply                       3.11
pmdarima                  2.0.4
psutil                    5.9.0
py                        1.10.0
pybind11                  2.12.0
Pygments                  2.11.2
pyinstaller               6.5.0
pyinstaller-hooks-contrib 2024.3
pyparsing                 2.4.7
pytest                    6.2.5
python-dateutil           2.9.0.post0
pythran                   0.15.0
pytz                      2024.1
scikit-learn              1.4.1.post1
scipy                     1.13.0
setuptools                59.6.0
simplejson                3.17.6
six                       1.16.0
some-package              0.1
soupsieve                 2.3.1
statsmodels               0.14.1
sympy                     1.9
tables                    3.7.0
threadpoolctl             3.4.0
toml                      0.10.2
tzdata                    2024.1
ufoLib2                   0.13.1
unicodedata2              14.0.0
urllib3                   2.2.1
webencodings              0.5.1
wheel                     0.37.1
xgboost                   2.0.3
xlwt                      1.3.0
zipp                      1.0.0

Expected Behavior

Run not as expected.

Actual Behavior

Pls refer to the log.

File "/usr/local/lib/python3.10/dist-packages/scipy/linalg/lapack.py", line 1007, in _compute_lwork raise ValueError("Internal work array size computation failed: " ValueError: Internal work array size computation failed: -7

Additional Context

No response