-
Notifications
You must be signed in to change notification settings - Fork 26
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
Feature Request - Parameter Loading - MarginalCopula #30
Comments
Good point, I'll think of how we can make it look as such for the GMC # assuming params is the dictionary, will do some checks to ensure it's properly defined here
cop.params = params I believe one alternative to saving the copula parameters is to save the copula object as a pickle. This removes the issue with the user needing to know which copula the parameter is for. import pickle
with open('my-cop.p', 'wb') as f:
pickle.dump(my_cop, f) Later on, we wouldn't need to know whether to import Gaussian, Student, or any other copula. We could just load the copula as-is. The parameters can still be accessed via |
@DanielBok although that is the easy way out 😄 and I was thinking of pickling the cop object lol... But I thought that this wouldn't be like the most elegant of solution, because you lose the info due to pkl compression, so the object isn't recognizable unless you unpickle it... I mean, that saving & loading the parameters of the copula, which is kind of a dict now, will allow transferring of parameters and allow you to see how the parameters are evolving across different fits... But maybe for this to work, you need maybe to add to the dict in cop.params the type of copula being used so on load it can push in those parameters accordingly... |
I am not sure this is possible, but I am trying to do is save the parameters of the fit and load them in the future (as to avoid having to refit the data). So the parameters of a MarginalCopula fit are obtained using the following:
Then loading them back into a copula object is kind of tricky because the parameters for a Marginal Copula is a dict, as opposed to a numpy array. Maybe there is already a hard way to this.
The text was updated successfully, but these errors were encountered: