Skip to content

Explicit docstrings for DecisionTreeClassifier.fit and DecisionTreeRegressor.fit #7809

Closed

Description

@amueller

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

  1. added
    Easy
    on Nov 1, 2016
  2. chiangqiqi commented on Nov 2, 2016

    @chiangqiqi

    The DecisionTreeRegressor and DecisionTreeClassifier shares the fit function docstring in BaseDecisionTree.fit, how to separate the doc string?

  3. jnothman commented on Nov 2, 2016

    @jnothman
    Member

    cleanest way writes a new fit in each that calls super.

    On 3 November 2016 at 01:00, alexjiang [email protected] wrote:

    The DecisionTreeRegressor and DecisionTreeClassifier shares the fit
    function docstring in BaseDecisionTree.fit, how to separate the doc
    string?

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly, view it on GitHub
    #7809 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AAEz65is3DXkFxC5BDdC9K4rD0Igu83Tks5q6JeVgaJpZM4KmeIA
    .

  4. amueller commented on Nov 2, 2016

    @amueller
    MemberAuthor

    That's what I though. @jnothman that's not overkill, is it? I think docs are important.

  5. jnothman commented on Nov 2, 2016

    @jnothman
    Member

    not overkill, no. easier to read in the code too

    On 3 November 2016 at 06:57, Andreas Mueller [email protected]
    wrote:

    That's what I though. @jnothman https://github.com/jnothman that's not
    overkill, is it? I think docs are important.

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #7809 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AAEz6-Qtud3ggGhh1TV_Ucj87EzS_WCuks5q6OsigaJpZM4KmeIA
    .

  6. dalmia commented on Nov 4, 2016

    @dalmia
    Contributor

    Hi, I would like to take up the issue.

  7. dalmia commented on Nov 4, 2016

    @dalmia
    Contributor

    Should both the fit functions have any change in the docString from the one in the BaseDecisionTree.fit() function?

  8. dalmia commented on Nov 12, 2016

    @dalmia
    Contributor

    Please close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationEasy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions