Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PYTEST WARNING] Machine learning forecasting #7305

Closed
CaedenPH opened this issue Oct 16, 2022 · 3 comments · Fixed by #8958
Closed

[PYTEST WARNING] Machine learning forecasting #7305

CaedenPH opened this issue Oct 16, 2022 · 3 comments · Fixed by #8958
Labels
enhancement This PR modified some existing files

Comments

@CaedenPH
Copy link
Contributor

Feature description

@nandiya Please could you resolve this warning

machine_learning/forecasting/run.py::machine_learning.forecasting.run.sarimax_predictor
  /opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/statsmodels/tsa/statespace/sarimax.py:866: UserWarning: Too few observations to estimate starting parameters for ARMA and trend. All parameters except for variances will be set to zeros.
    warn('Too few observations to estimate starting parameters%s.'

machine_learning/forecasting/run.py::machine_learning.forecasting.run.sarimax_predictor
  /opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/statsmodels/tsa/statespace/sarimax.py:866: UserWarning: Too few observations to estimate starting parameters for seasonal ARMA. All parameters except for variances will be set to zeros.
    warn('Too few observations to estimate starting parameters%s.'

machine_learning/forecasting/run.py::machine_learning.forecasting.run.sarimax_predictor
  /opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3715: RuntimeWarning: Degrees of freedom <= 0 for slice
    return _methods._var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,

machine_learning/forecasting/run.py::machine_learning.forecasting.run.sarimax_predictor
  /opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/numpy/core/_methods.py:223: RuntimeWarning: invalid value encountered in divide
    arrmean = um.true_divide(arrmean, div, out=arrmean, casting='unsafe',

machine_learning/forecasting/run.py::machine_learning.forecasting.run.sarimax_predictor
  /opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/numpy/core/_methods.py:257: RuntimeWarning: invalid value encountered in double_scalars
    ret = ret.dtype.type(ret / rcount)

origin: #7211

@CaedenPH CaedenPH added the enhancement This PR modified some existing files label Oct 16, 2022
@cclauss cclauss closed this as completed Oct 29, 2022
@tianyizheng02
Copy link
Contributor

@cclauss I think this issue should be reopened since the pytest warnings were never resolved

@cclauss
Copy link
Member

cclauss commented Jan 2, 2023

My sense is that these warnings were solved but new ones have come up.

@tianyizheng02
Copy link
Contributor

In the pytest logs from the most recent build here, it appears that the 5 warnings cited above are still present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This PR modified some existing files
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants