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
Is there really anything in common in the fit() docstring?
templating assumes that there is enough gain to justify the additional code complication. And templates make the source docstring less informative.
Yes since all of the subclass fit methods call the fit method in Model and can use these parameters as well. I'll have to look if there's a clash of keywords between Model.fit and AR.fit now.
I'm not really that concerned about source docstring readability. It's a mess now for users (in the way that Matplotlib was and in a way pandas has avoided with decorators and templating). I think the way to clean this up and keep from making these mistakes is by moving to templates everywhere as I've started to do elsewhere. Templates seem to work just fine whereas my ad hoc += is not doing the job. Pretty disappointed that I missed this until now.
I don't think we need to copy all the information that is identical to each class.
as part of PR #640 :
I removed the docstring appending, for now.
I fixed also the links in See Also, so now we can just click and get to the full base model docs
Activity
jseabold commentedon Nov 8, 2012
Uh oh. This is used elsewhere too. Should probably move all this over to templating.
josef-pkt commentedon Nov 8, 2012
Is there really anything in common in the fit() docstring?
templating assumes that there is enough gain to justify the additional code complication. And templates make the source docstring less informative.
My first guess was that the templating was wrong.
jseabold commentedon Nov 8, 2012
Yes since all of the subclass fit methods call the fit method in Model and can use these parameters as well. I'll have to look if there's a clash of keywords between Model.fit and AR.fit now.
I'm not really that concerned about source docstring readability. It's a mess now for users (in the way that Matplotlib was and in a way pandas has avoided with decorators and templating). I think the way to clean this up and keep from making these mistakes is by moving to templates everywhere as I've started to do elsewhere. Templates seem to work just fine whereas my ad hoc += is not doing the job. Pretty disappointed that I missed this until now.
josef-pkt commentedon Feb 3, 2013
I don't think we need to copy all the information that is identical to each class.
as part of PR #640 :
I removed the docstring appending, for now.
I fixed also the links in
See Also, so now we can just click and get to the full base model docsDOC: AR, ARMA: don't copy base docstring, fix `See Also` names, closes …
DOC: AR, ARMA: don't copy base docstring, fix `See Also` names, closes …