Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

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

Suggested fix: GaussianProcessRegressor.predict wastes significant time when bothreturn_std andreturn_cov areFalse #31374

Open
@ginoperrotta

Description

@ginoperrotta

Describe the workflow you want to enable

7b71511 moved duplicated code above the conditional statements, but this means that an expensive step for computing GPR variances is executed even if bothreturn_std andreturn_cov areFalse. Profiling shows this takes ~96% of the computation time. I would like to see they_mean value returned before this step to save time.

Describe your proposed solution

AboveV = solve_triangularhttps://github.com/scikit-learn/scikit-learn/blob/main/sklearn/gaussian_process/_gpr.py#L454, add

if not return_std and not return_cov:    return y_mean

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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