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

Diagnostics #223

Merged
merged 26 commits into from
Jul 22, 2020
Merged

Diagnostics #223

merged 26 commits into from
Jul 22, 2020

Conversation

raoulcollenteur
Copy link
Member

@raoulcollenteur raoulcollenteur commented Jul 21, 2020

Short Description

This PR updates the stats module in numerous ways and is accompanied by an example notebook about diagnostic checking of Pastas models.

New:

  • methods in ps.stats: diagnostics, plot_diagnostics, stoffer_toloi, plot_acf
  • metrics.py: all goodness-of-fit metrics may now be used separately (e.g., ps.stats.evp)
  • 4_diagnostic_checking.ipynb

Updated:

  • ml.plots.diagnostics
  • methods in tests.py: ljung_box, durbin_watson, runs_test

Documention for this branch is also compiled and visible here:
https://pastas.readthedocs.io/en/diagnostics/api/statistics.html

Checklist before PR can be merged:

  • is documented
  • PEP8 compliant code
  • tests added / passed
  • passes Travis
  • Example Notebook (for new features)

@raoulcollenteur raoulcollenteur added development Indicates development of new features enhancement Indicates improvement of existing features labels Jul 21, 2020
@raoulcollenteur raoulcollenteur added this to the 0.15.0 milestone Jul 21, 2020
@raoulcollenteur
Copy link
Member Author

The Notebook requires some more work but I think we can do this in the Dev-branch so we also include all changes there when working on the notebook.

pastas/stats/tests.py Outdated Show resolved Hide resolved
pastas/stats/tests.py Outdated Show resolved Hide resolved
Copy link
Member

@dbrakenhoff dbrakenhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to move plotting functions outside of plots.py? I don't really mind, and they are focused on plotting statistics, so I'm ok with that.

Some minor comments (in docstrings).

@raoulcollenteur raoulcollenteur self-assigned this Jul 22, 2020
@raoulcollenteur
Copy link
Member Author

I thought this makes more sense as it is really part of the stats subpackage right now. One could do:

from pastas import stats

and do a diagnostic testing of non-Pastas models as well :)

Merging.

@raoulcollenteur raoulcollenteur merged commit b3d3de6 into dev Jul 22, 2020
@raoulcollenteur raoulcollenteur deleted the diagnostics branch July 22, 2020 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Indicates development of new features enhancement Indicates improvement of existing features
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants