Commit Graph

20 Commits

Author SHA1 Message Date
Jérémie du Boisberranger 34f9dbf541
MNT Clean fixes and compat for old versions of our dependencies (#22642)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-02 11:32:06 +01:00
mlondschien 3a3f1bed10
ENH Allow `sample_weight` in `SplineTransformer.fit` method (#20526)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-21 16:36:52 +02:00
mlondschien f081f58291
Fix `_weighted_percentile` for `percentile=0` (#20528) 2021-07-19 18:13:14 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Lucy Liu f93f560bb9
ENH add support for sample weights in MAE (#17225) 2020-05-27 15:03:43 +02:00
Aditya Vyas 301076e77b MAINT Replace absolute imports with relative imports (#13653) 2019-04-17 12:45:14 -04:00
Andreas Mueller 0f94f2962b
MNT simple deprecations and removals for 0.21 (#12238)
Part of #11992.
These were all the things that seemed pretty straight-forward. It's actually a bit bulky but should still be easy to review, hopefully.
2018-10-11 14:56:37 -04:00
Adrin Jalali 757663c881 MNT Clip percentile_idx in _weighted_percentile (#11847) 2018-08-19 08:54:28 +08:00
Loïc Estève ab0342a5ef COSMIT add missing spaces in deprecated messages 2017-06-09 16:00:01 +02:00
Naoya Kanai bd0fc236e0 [MRG+1] MAINT drop SciPy < 0.13 (#8854)
Remove sklearn.utils.fixes functions that are not needed for scipy >= 0.13 and keep deprecated wrappers in other modules.
2017-06-02 23:36:33 +02:00
yangarbiter fa59873857 [MRG+1] FIX unstable cumsum (#7376)
* FIX unstable cumsum in utils.random

* equal_nan = true for isclose
since numpy < 1.9 sum is as unstable as cumsum, fallback to np.cumsum

* added axis parameter to stable_cumsum

* FIX unstable sumsum in ensemble.weight_boosting and utils.stats

* FIX axis problem in stable_cumsum

* FIX unstable cumsum in mixture.gmm and mixture.dpgmm

* FIX unstable cumsum in cluster.k_means_, decomposition.pca, and manifold.locally_linear

* FIX unstable sumsum in dataset.samples_generator

* added docstring for parameter axis of stable_cumsum

* added comment for why fall back to np.cumsum when np version < 1.9

* remove unneeded stable_cumsum

* added stable_cumsum's axis testing

* FIX numpy docstring for make_sparse_spd_matrix

* change stable_cumsum from error to warning
2016-10-17 15:49:23 +02:00
Loïc Estève 67dcd99d82 TST fix tests with numpy 1.6.1
np.bincount raises an Exception with empty input arrays for numpy versions < 1.6.2
Add utils.fixes.bincount to tackle this issue and use it instead of np.bincount
2015-02-01 15:49:49 +01:00
Raghav R V b3fbccca38 FIX various mismatch between docstring and signature params
DOC max_iterations -> max_iter. Make it consistent with kmeans

MAINT Replace the deprecated dx parameter with d in the docstrings

MAINT Deprecation warning for max_iterations parameter.
2015-01-16 11:54:57 -05:00
MechCoder e01f225f82 COSMIT: Use searchsorted in weighted_percentile 2014-11-05 17:57:21 -05:00
Arnaud Joly da31344751 Add sample_weight support to Dummy Regressor 2014-10-16 16:41:49 +02:00
Arnaud Joly b0995f9ff8 FIX encoding issue 2014-07-19 11:55:18 +02:00
Arnaud Joly dc482a2d73 ENH less nested code 2014-07-18 17:27:57 +02:00
Arnaud Joly 56bba96e8d DOC add documentation to backported function 2014-07-18 17:07:14 +02:00
Arnaud Joly bb93ede201 DOC remove confusing mention to mean average precision 2014-07-17 11:25:21 +02:00
Arnaud Joly a80c58b777 ENH be backward compatible for old version of scipy 2014-07-17 11:21:27 +02:00