You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GenericLikelihoodModel: add option for which results class #2122
The superclass fit methods return a hard coded results class. This means we have to copy over the results to a new instance if we want to return a model specific results class.
I'm running into this right now in BetaRegression PR #2030, and I have somewhere (didn't find it) an issue for improvements in discrete.
GenericLikelihoodModel would be a good case where we can try out adding an option for which Results class is created.
Related: I don't see an example in miscmodels for a subclass of GenericLikelihoodModel where we could just copy the pattern for a model specific Results class.
I added the class as attribute results_class in BetaReg enhancement but this might not work for pickling (never tried).
So far I/we have avoided attaching classes. I think a method would be better or as property if that works,
Activity
josef-pkt commentedon Dec 5, 2014
Related: I don't see an example in miscmodels for a subclass of GenericLikelihoodModel where we could just copy the pattern for a model specific Results class.
REF/ENH: GenericLikelihoodModel, allow subclass Results class, see st…
josef-pkt commentedon Dec 5, 2014
I added the class as attribute
results_classin BetaReg enhancement but this might not work for pickling (never tried).So far I/we have avoided attaching classes. I think a method would be better or as property if that works,
REF/ENH: GenericLikelihoodModel, allow subclass Results class, see st…
REF/ENH: GenericLikelihoodModel, allow subclass Results class, see st…
REF/ENH: GenericLikelihoodModel, allow subclass Results class, see st…