Skip to content

BUG/ENH: Check exog in ARMA and ARIMA predict - #6006

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:fix-exog-predict
Jul 24, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:fix-exog-predict

Conversation

@bashtage

Copy link
Copy Markdown
Member

Check exog shape and adjust when possible to match expected size.

closes #2472
closes #2323

Details

Notes:

  • It is essential that you add a test when making code changes. Tests are not
    needed for doc changes.
  • When adding a new function, test values should usually be verified in another package (e.g., R/SAS/Stata).
  • When fixing a bug, you must add a test that would produce the bug in master and
    then show that it is fixed with the new code.
  • New code additions must be well formatted. Changes should pass flake8. If on Linux or OSX, you can
    verify you changes are well formatted by running
    git diff upstream/master -u -- "*.py" | flake8 --diff --isolated
    
    assuming flake8 is installed. This command is also available on Windows
    using the Windows System for Linux once flake8 is installed in the
    local Linux environment. While passing this test is not required, it is good practice and it help
    improve code quality in statsmodels.
  • Docstring additions must render correctly, including escapes and LaTeX.

Check exog shape and adjust when possible to match expected size.

closes statsmodels#2472
closes statsmodels#2323
@pep8speaks

Copy link
Copy Markdown

Hello @bashtage! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 789:34: W504 line break after binary operator

@codecov

codecov Bot commented Jul 24, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #6006 into master will increase coverage by <.01%.
The diff coverage is 97.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6006      +/-   ##
==========================================
+ Coverage   83.27%   83.28%   +<.01%     
==========================================
  Files         606      606              
  Lines       95086    95121      +35     
  Branches    10393    10393              
==========================================
+ Hits        79184    79221      +37     
+ Misses      13520    13519       -1     
+ Partials     2382     2381       -1
Impacted Files Coverage Δ
statsmodels/tsa/tests/test_arima.py 99.45% <100%> (ø) ⬆️
statsmodels/tsa/arima_model.py 86.4% <96%> (+0.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a09d727...d9f4b2b. Read the comment docs.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.008%) to 85.788% when pulling d9f4b2b on bashtage:fix-exog-predict into a09d727 on statsmodels:master.

@bashtage
bashtage merged commit 21910ef into statsmodels:master Jul 24, 2019
@bashtage
bashtage deleted the fix-exog-predict branch July 24, 2019 09:50
@bashtage bashtage added this to the 0.11 milestone Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: ARIMAX predict when exog is too long Exogenous variable restarts from index 0 when crossing last in-sample date

3 participants