Skip to content

ExtraTree*.fit docstring is the DecisionTree*.fit docstring #34180

Closed

Description

@cakedev0

Warning

This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.

Describe the issue linked to the documentation

The docstring for ExtraTree*.fit is the same than the one of DecisionTree* so it's inaccurate:

https://scikit-learn.org/stable/modules/generated/sklearn.tree.ExtraTreeRegressor.html#sklearn.tree.ExtraTreeRegressor.fit

Build a decision tree regressor from the training set (X, y).

Return:
self : DecisionTreeRegressor
Fitted estimator.

Suggest a potential alternative/fix

Removing ExtraTree* classes would fix this (this is one option considered in #33158)

Otherwise we need to add a fit method to those classes.

Activity

  1. shamshertamang commented on Jun 5, 2026

    @shamshertamang

    Hi @cakedev0 , I’d be interested to contribute to this when triaged if you need some to work on it. But if you are going to work on it, don't want to duplicate the work. I would be able to fix the documentation if that is the needed fix. While new to open source, I would also be able to work on the fit method with some guidance, if that is the appropriate fix.

  2. cakedev0 commented on Jun 5, 2026

    @cakedev0
    MemberAuthor

    I'd considered this as blocked by discussions in #33158, let's wait for a decision there first, as I don't think solving this issue is super important, I opened it just to not forget about it.

  3. beanscg commented on Jun 9, 2026

    @beanscg
  4. Muhtasim-Munif-Fahim commented on Jul 30, 2026

    @Muhtasim-Munif-Fahim
  5. jeremiedbb commented on Aug 10, 2026

    @jeremiedbb
    Member

    Given that there's a consensus on deprecating the ExtraTree* classes, there's no point in investing effort to improve the docstring. Let's close this issue and the related PRs.

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

    DocumentationNeeds Triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions