Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RFC Make n_outputs_ consistent across regressors #30889

Copy link
Copy link
Open
@glemaitre

Description

@glemaitre
Issue body actions

The scikit-learn API defines classes_ as part of the API for classifier.

A similar handy thing for regressor models, IMO, would be to know if it was fit on a single or multioutput target. Currently, some regressors expose the n_outputs_ parameter, but other not. One can infer from the intercept_ or coef_ the number of target for liner model.

So I'm wondering if we could extend the API by extending n_outputs_ for all regressors the same way we have classes_ for classifiers?

Note that the tags do not help here because they inform whether or not an estimator is supporting multioutput.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status
    Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.