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
Explicit docstrings for DecisionTreeClassifier.fit and DecisionTreeRegressor.fit #7809
As pointed out in #7801 the docstring for the decision tree fit is a bit vague (because it's shared). I think it would be better if they had separate, precise docstrings.
Activity
chiangqiqi commentedon Nov 2, 2016
The
DecisionTreeRegressorandDecisionTreeClassifiershares thefitfunction docstring inBaseDecisionTree.fit, how to separate the doc string?jnothman commentedon Nov 2, 2016
cleanest way writes a new fit in each that calls super.
On 3 November 2016 at 01:00, alexjiang [email protected] wrote:
amueller commentedon Nov 2, 2016
That's what I though. @jnothman that's not overkill, is it? I think docs are important.
jnothman commentedon Nov 2, 2016
not overkill, no. easier to read in the code too
On 3 November 2016 at 06:57, Andreas Mueller [email protected]
wrote:
dalmia commentedon Nov 4, 2016
Hi, I would like to take up the issue.
dalmia commentedon Nov 4, 2016
Should both the fit functions have any change in the docString from the one in the BaseDecisionTree.fit() function?
dalmia commentedon Nov 12, 2016
Please close this.