Skip to content

PERF: Cythonize innovations algo and filter - #5947

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:issue-5326-v3
Jul 16, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:issue-5326-v3

Conversation

@bashtage

Copy link
Copy Markdown
Member
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.

Add Cythonized versions for performance
@codecov

codecov Bot commented Jul 15, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5947 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5947      +/-   ##
==========================================
- Coverage   82.97%   82.96%   -0.01%     
==========================================
  Files         600      600              
  Lines       95046    94991      -55     
  Branches    10459    10443      -16     
==========================================
- Hits        78860    78805      -55     
  Misses      13764    13764              
  Partials     2422     2422
Impacted Files Coverage Δ
statsmodels/tsa/stattools.py 86.79% <100%> (-1.25%) ⬇️
statsmodels/regression/linear_model.py 91.65% <0%> (ø) ⬆️
statsmodels/stats/outliers_influence.py 81.79% <0%> (ø) ⬆️

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 ae285f3...184a566. Read the comment docs.

1 similar comment
@codecov

codecov Bot commented Jul 15, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5947 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5947      +/-   ##
==========================================
- Coverage   82.97%   82.96%   -0.01%     
==========================================
  Files         600      600              
  Lines       95046    94991      -55     
  Branches    10459    10443      -16     
==========================================
- Hits        78860    78805      -55     
  Misses      13764    13764              
  Partials     2422     2422
Impacted Files Coverage Δ
statsmodels/tsa/stattools.py 86.79% <100%> (-1.25%) ⬇️
statsmodels/regression/linear_model.py 91.65% <0%> (ø) ⬆️
statsmodels/stats/outliers_influence.py 81.79% <0%> (ø) ⬆️

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 ae285f3...184a566. Read the comment docs.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.04%) to 85.474% when pulling 184a566 on bashtage:issue-5326-v3 into ae285f3 on statsmodels:master.

Comment thread statsmodels/tsa/_innovations.pyx Resolved
@bashtage
bashtage merged commit cc8d877 into statsmodels:master Jul 16, 2019
@bashtage
bashtage deleted the issue-5326-v3 branch July 16, 2019 05:50
bashtage added a commit to bashtage/statsmodels that referenced this pull request Jul 16, 2019
PERF: Cythonize innovations algo and filter
@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.

DESIGN: Speed up innovations algorithm / filter with Cython or Numba?

3 participants