Skip to content

[FEA] Add option to accept sample weight vectors to fit methods #669

Open
@beckernick

Description

@beckernick

Is your feature request related to a problem? Please describe.
In sklearn, estimator.fit can (almost always?) accept a sample_weight parameter (defaulting to None) that allows users to pass in a weights vector that determines how much weight each sample should receive (with length equal to the number of samples).

This would be a useful feature for cuML estimators, too. As an example, see the sklearn KMeans documentation

sample_weight : array-like, shape (n_samples,), optional
The weights for each observation in X. If None, all observations are assigned equal weight (default: None)

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