Shruti Nath

Results 15 issues of Shruti Nath

Fixes #22914 What does this implement/fix? Explain your changes. Adapted from the pull request #23045 by s-banach Modifies _alpha_grid function in linear_model._coordinate_descent to accept a sample_weight argument and implements changes...

module:linear_model

#### Reference Issues/PRs Fixes #29416 #### What does this implement/fix? Explain your changes. Added sample weighting for test set into default calculation of scores within _log_reg_scoring_path TO DO: - [...

module:linear_model

Fixes #22914 What does this implement/fix? Explain your changes. Adapted from the pull request #23045 by s-banach and #29308 from snath-xoc Modifies _alpha_grid function in linear_model._coordinate_descent to accept a sample_weight...

module:linear_model

Fixes #29906 and cross-linked to meta-issue #16298 Sample weight was previously not passed through to resample throwing an error in KbinsDiscretizer when subsample was specified. Sample weight is now passed...

module:preprocessing
module:utils

### Describe the bug Sample weights are not properly passed through when specifying subsample within KBinsDiscretizer. ### Steps/Code to Reproduce ```python from sklearn.datasets import make_blobs from sklearn.preprocessing import KBinsDiscretizer import...

Bug

### Describe the bug It seems that the _alpha_grid computations ignore sample weights and as a result the model coefficients do not match after fitting on two versions of the...

Bug

Fixes #30056 and cross-linked to meta-issue #16298 Under class_weight='balanced' strategy class weights are calculated as: n_samples / (n_classes * np.bincount(y)) Sample weights were previously not passed through under this strategy...

module:svm

### Describe the bug LinearSVC does not pass sample weights through when computing class weights under the "balanced" strategy leading to sample weight invariance issues cross-linked to meta-issue #16298 ###...

Bug

When trying to load GEFS forecasts (not reanalysis) from AWS for years before 2021 (i.e., 2017-2020 which should exist), Herbie cannot find the file. I find Herbie super useful so...

First step in fixing the error in the log-marginal likelihood gradient calculations in Gaussian Processes as noticed in #31366. Also related to #31289. #### What does this implement/fix? Explain your...

module:gaussian_process