Thanks to visit codestin.com
Credit goes to github.com

Skip to content

List of estimators with known incorrect handling of sample_weight #16298

Open
@rth

Description

@rth

An issue with an associated common check originally discussed in #15015

This is a pretty simple sample_weight test that says that a weight of 0 is equivalent to not having the samples.
I think every failure here should be considered a bug. This is:

The following estimators have a stochastic fit, so testing for correct handling of sample weights cannot be tested with check_sample_weight_equivalence but instead requires a statistical test:

(some might have been fixed since, need to check).

The required sample weight invariance properties (including the behavior of sw=0) were also discussed in #15657

EDIT: expected sample_weight semantics have since been more generally in the refactoring of check_sample_weight_invariance into check_sample_weight_equivalence to check fitting with integer sample weights is equivalent to fitting with repeated data points with a number of repetitions that matches the original weights.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Meta-issueGeneral issue associated to an identified list of tasks

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions