Skip to content

FAQ-D SMWarnings #282

Open
Open

Description

@josef-pkt

we would need some custom warnings that are set to always warn on first import of statsmodels. The warning level shouldn't be reset after the initial import by statsmodels (e.g. in later imports of some modules) so we don't affect changed settings by user.

example I have right now is

lag in cov_nw_panel: if lag is too large then we cannot use the largest lags, but we still have the truncated lagged sum.
I have it right now as exception, but I don't think that's useful. lag=a_large_number could just mean, take all available lags, as in python

>>> range(5)[:10]
[0, 1, 2, 3, 4]

However, in this example the kernel would still depend on the specified lag, so it would be a truncated kernel, any problems with that?

Activity

  1. modified the milestones: 0.7, 0.6 on Sep 26, 2014
  2. josef-pkt commented on Feb 15, 2015

    @josef-pkt
    MemberAuthor

    we have now several cases of specific warnings opened in several PRs in statsmodels.tools.sm_exceptions

  3. modified the milestones: 0.8, 0.7 on Feb 15, 2015
  4. josef-pkt commented on Jun 6, 2016

    @josef-pkt
    MemberAuthor

    searching the source, I see 6 UserWarnings left in module code, none in the main models.

    we don't yet have a generic StatsmodelsUserWarning for cases that don't fit a specific Warning.

  5. josef-pkt commented on Jun 6, 2016

    @josef-pkt
    MemberAuthor

    Do we have documentation or a FAQ for statsmodels Warnings?

  6. bashtage commented on Jun 19, 2016

    @bashtage
    Member

    @josef-pkt Closeable?

  7. changed the title [-]add SMWarnings[/-] [+]FAQ-D SMWarnings[/+] on Jun 19, 2016
  8. josef-pkt commented on Jun 19, 2016

    @josef-pkt
    MemberAuthor

    I made it into a FAQ-D for developers, at least until we have a better FAQ-D or developer notes.

    I think we have more plain warnings sneaking into master, until we get used to using those warnings.

  9. modified the milestones: 0.9, 0.8 on Jun 19, 2016
  10. modified the milestones: 0.9, Someday on Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions