Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Improvement Suggestion for predictor_proba Function in sklearn.py #1312

Open
Labels
enhancementNew feature or request
@HJH0924

Description

@HJH0924

Hello,

I've been exploring the predictor_proba function defined in sklearn.py atthis location and I have some suggestions to improve its functionality and usability.

  1. Clarify the Function's Docstring: Thecurrent docstring mentions a parameternum_targets which is not present in the function signature. It might be beneficial for future users if the documentation accurately reflects the function's parameters and intended use.
  2. Handling Multi-class Predictions: For models that predict probabilities across multiple classes, flattening the output might not always be desirable. It could be more useful to return the original array structure to preserve the relationship between classes and probabilities.
  3. Error Handling for predict_proba Method: Not all Scikit-Learn estimators have a predict_proba method. Adding a check to ensure that the estimator passed to predictor_proba supports this method could prevent runtime errors and improve user experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp