-
Notifications
You must be signed in to change notification settings - Fork 77
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
MinTrace's protection to Schafer-Strimmer covariance, eliminated stat… #97
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left some comments. As we are not testing the nbs/examples
files automatically, please just check that we are able to recover the previous outputs/replications. I'll work on an automatic test to help future development.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, if this PR is going close #92, please let's add a test where it is verified that before the changes, the same error arises, and now with these changes, it is solved.
See, for example, this PR.
A user had an error using HierarchicalEvaluation
when h=1
, then a test was included showing that it works. In particular, these lines,
This particular case is a little bit tricky because we don't have the actual data. I'd start trying to reproduce the error with a small example. Just to be sure that these changes are actually solving the problem.
Just some thoughts on the test: An element of the diagonal of the variance-covariance matrix would be zero if a time series has only one value, so to reproduce the error, we could use the objects used for testing purposes in
The output of the previous code is, This small example recovers the #92 bug. Observe that if we use The user's data has time series with a single value. |
Solved eigenvalue indetermination in the presence of small percentage of zero predictions.
MinTrace
warning.I took out the
statsmodels
, the only function we used from it wascov2corr
that is particularly simple and does not merit such a big dependency.