Repository navigation
CLN: Replace UserWarnings with meaningful warning - #3012
Conversation
| elif self.model.k_exog == 0 and exog is not None: | ||
| warn('Exogenous array provided to predict, but additional data not' | ||
| ' required. `exog` argument ignored.') | ||
| ' required. `exog` argument ignored.', InvalidInputWarning) |
There was a problem hiding this comment.
What's the difference here between InvalidInputWarning and InputIgnoredWarning, given that you also added the latter
There was a problem hiding this comment.
Have switched both to ValueWarning, which I think makes sense since they are like ValueErrors that don't raise.
|
looks good overall main question is whether the changes in statespace will cause a large number of merge conflicts given that we have at least two large PRs open or coming. @ChadFulton Can you guess whether this is ok for you, and avoids too many merge conflicts? An alternative would be to split off the statespace changes and apply them to Chad's branch or merge them at a later time. |
Replace all UserWarnings with meaningful warnings xref statsmodels#2781 closes statsmodels#2747 closes statsmodels#2492
7d34cca to
dff5609
Compare
|
My guess is that these will be okay. l have time to look closer this evening. Sent from my iPhone
|
|
Yes, shouldn't be a problem. Thanks! |
|
@ChadFulton thanks, looks good to me, I like the new warnings better. @bashtage Thank you |
Replace all UserWarnings with meaningful warnings
xref #2781
closes #2747
closes #2492