Skip to content

n_neighbors param in mutual_info_regression doesn't do anything #8173

@cmardiros

Description

@cmardiros

Description

Setting n_neighbors to different values does not change the MI score returned by mutual_info_regression.

Steps/Code to Reproduce

https://github.com/scikit-learn/scikit-learn/blob/14031f6/sklearn/feature_selection/mutual_info_.py#L196

n_neighbors seems to be passed to _estimate_mi but not actually used in the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions