Repository navigation
Wold Representation - #3992
Wold Representation#3992jbrockmendel wants to merge 5 commits into
Conversation
|
This pull request introduces 2 alerts and fixes 3 - view on lgtm.com new alerts:
fixed alerts:
Comment posted by lgtm.com |
|
From a brief look this looks pretty reasonable to me. Is this some / mostly / all reorganization? How much of this is new? |
Mostly. The main points are:
I think there is a non-trivial change that I should revert that returns empty arrays instead of np.nan for There are a couple of TODO notes that could use a look from a fresh pair of eyes:
|
|
Note #3482 arima process recently got a cleanup and better unit test coverage |
|
very superficial skimming only parts are fine but overall I'm vaguely skeptical. Mainly this adds an additional layer and module, with what was mainly supposed to be covered by the ARMA and VAR process classes. |
The non-stochastic representation is a layer that is already present in AR/ARMA/ARIMA/VAR/SVAR/... De-duplicating them reduces the amount of code to maintain, makes it easier to maintain internal consistency, and clarifies the relationships between them. Moreover, because this is a carefully-thought-out level of abstraction, it is almost entirely independent of other layers, so can be thoroughly tested in isolation of those other layers. You want to finally bury I'm pretty frustrated by what I perceive to be an inconsistency between "My main criterion for code style and cleanliness is how long it takes me to understand a piece of code" and an unwillingness to consider/allow/delegate incremental improvements specifically tailored to be be trivially-verifiable. On the flip side, it was only a few weeks ago that someone was saying that ar_model/arma_model/... are basically un-maintained and gee wouldn't it be nice if someone stepped up to take responsibility for them (not to mention varma_process/arme_mle/...). Not interested in going in circles on this. Closing. |
|
This pull request introduces 2 alerts and fixes 3 - view on lgtm.com new alerts:
fixed alerts:
Comment posted by lgtm.com |
If you can show me how it help closing existing bugs, then I'm much more interested in reviewing it. For example based on the number of open issues, problems and missing support, I think ARIMA/... predict needs a refactoring that might help to fix and close several bugs, and make the code easier to understand.
My/our thinking (years ago) was that |
Paying down technical debt is about pre-empting problems. If done right it should make the higher-priority issues you mentioned easier to address. |
The various methods/attributes in the AR/ARMA/ARIMA/VAR/... classes can be segmented based on what information is necessary in order to implement them. e.g.:
aic? --> needs degrees of freedom --> needs sample size
forecast_cov --> needs correlation structure of shocks (i.e. sigma_u)
mean --> only needs intercepts and coefs
The idea behind
tsa.woldis to separate out (and unify, and de-duplicate, and test) the subset of attributes/methods that depend only on the non-stochastic Wold representation of AR/ARMA/...Fairly thorough (self-contained) tests, none of which are smoke tests.