Commit Graph

203 Commits

Author SHA1 Message Date
Thomas J. Fan 1170f21ec4
MAINT Remove deprecated kwargs support in density (#27925) 2023-12-11 11:16:12 +01:00
Olivier Grisel 5c09163d77
FIX array_api support for non-integer n_components in PCA (#27431) 2023-11-15 11:45:35 -05:00
Edoardo Abati 5cf61b21ec
ENH Add Array API compatibility to `Normalizer` (#27558) 2023-11-14 14:08:43 +01:00
Christian Lorentzen 3076f297cd
MNT replace log_logistic by logaddexp (#27544)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-10-10 08:23:36 +00:00
Guillaume Lemaitre 286f0c9d17
DOC fixes references issues given by sphinx (#27432) 2023-10-03 20:25:29 +02:00
Mateusz Sokół 702316c271
ENH Array API support for PCA (#26315)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Tim Head <betatim@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-13 16:58:06 -05:00
Julien Jerphanion dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions (#26751) 2023-07-12 18:34:01 +02:00
Shreesha Kumar Bhat 876c235d15
MAINT Parameters validation for sklearn.utils.extmath.randomized_svd (#26690)
Co-authored-by: shreesha3112 <shreesha3112.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-06-29 11:18:17 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Dimitri Papadopoulos Orfanos 2fd022d972
MAINT Fix typos found by codespell (#26448) 2023-05-31 10:19:21 +02:00
Julien Jerphanion 41b0bd82ff
MAINT Use `scipy.sparse.isspmatrix_*` (#26420) 2023-05-30 13:46:32 -04:00
Thomas J. Fan 66a3905541
ENH Adds PyTorch support to LinearDiscriminantAnalysis (#25956)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Tim Head <betatim@gmail.com>
2023-04-21 11:13:29 +02:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Marc Torrellas Socastro dedc587f84
ENH add np.nan option for zero_division in precision/recall/f-score (#25531)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-03-21 11:16:01 +01:00
Guillaume Lemaitre 86080bbd5f
ENH cartesian accepts mixed dtypes arrays (#25067)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2022-11-29 17:02:41 +01:00
Jérémie du Boisberranger 96f0a01343
MAINT Clean deprecation for 1.2: default random_state in randomized_svd (#24661) 2022-10-14 15:15:50 +02:00
Ashwin Mathur 9a697e4647
DOC Ensures that sklearn.utils.extmath.fast_logdet passes numpydoc validation (#24605)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2022-10-14 14:23:43 +02:00
Ashwin Mathur aa7fd7ad0f
DOC Ensures that `sklearn.utils.extmath.randomized_svd` passes numpydoc validation (#24607)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-10-13 23:31:36 +02:00
Mansi Agrawal 97057d329d
DOC Ensures that svd_flip passes numpydoc validation (#24581)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-10-11 10:41:58 -04:00
Ashwin Mathur c674e589f9
DOC Ensures that sklearn.utils.extmath.weighted_mode passes numpydoc validation (#24571)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2022-10-07 13:05:54 +02:00
Mia Bajić 5d8a199462
API Deprecate the extra keyword arguments of utils.extmath.density (#24523)
Co-authored-by: Meekail Zain <34613774+Micky774@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-10-07 10:24:34 +02:00
Luciano Mantovani fa4643407c
DOC Ensures that utils.extmath.density passes numpydoc validation (#24516) 2022-09-26 23:51:56 +02:00
Thomas J. Fan 2710a9e7ee
ENH Adds Array API support to LinearDiscriminantAnalysis (#22554)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-09-21 15:36:19 +02:00
Omar Salman c5e34473cd
DOC Ensures that `squared_norm` passes numpydoc validation (#24360) 2022-09-05 14:31:41 +02:00
TheDevPanda 45756377c7
DOC ensure sklearn/utils/extmath/stable_cumsum passes numpydoc (#24348) 2022-09-04 09:55:01 +02:00
Loïc Estève ac84b2f7d7
Revert change in sklearn.extmath.util and fix randomized_svd benchmark (#23421) 2022-05-20 11:01:38 -04:00
SELEE 6ab4ebd122
FIX Update randomized SVD benchmark (#23373) 2022-05-19 10:25:25 +02:00
Srinath Kailasa 0c618b2910
ENH Add lapack driver argument to randomized svd function (#20617)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-05-17 12:26:35 +02:00
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
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Sultan Orazbayev cd892f9688
DOC use the arxiv directive in the docstrings (#21418)
Co-authored-by: aufarkari <aufar.di.sini@gmail.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-01-28 17:55:55 +01:00
AJ Druck 6447ec5964
DOC Ensures randomized_range_finder passes numpydoc validation (#22069) 2021-12-24 08:01:26 -05:00
Rishabh 8cfbc38ab8
DOC Ensures that extmath.cartesian passes numpydoc validation (#21513)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-11-02 12:02:58 +01:00
Thomas J. Fan d1285a9232
DOC Adds missing imports into examples and test them (#21186) 2021-09-29 13:51:33 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Thomas J. Fan f812e2a276
ENH Improves memory usage for standard scalar (#20652) 2021-08-05 18:32:16 +02:00
Thomas J. Fan 351ace7935
STY Uses black's with target_version >= 3.7 (#20294) 2021-06-17 15:50:27 -04:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
Sylvain Marié bf0886bae0
[MRG after #12145] Add "Randomized SVD" solver option to KernelPCA for faster partial decompositions, like in PCA (#12069)
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
2021-04-27 16:06:10 +02:00
Jérémie du Boisberranger 684b7d1955
FIX detect near constant feature in StandardScaler and linear models (#19788)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-04-14 13:34:22 +02:00
cliffordEmmanuel 77e998db35
ENH Deprecated the default random_state=0 in randomized_svd (#19670)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: cinbez <cindyb@lightstone.co.za>
2021-03-15 12:22:16 +01:00
Norbert Preining 8066086a85
MNT Consolidate _incremental_weighted_mean_and_var into _incremental_mean_and_var (#19422) 2021-02-10 16:37:14 +01:00
Rishi Advani b474b40969
Modify randomized_svd random_state default in doc (#18564)
The documentation for the
`utils.extmath.randomized_svd` function lists
`None` as the default value for the `random_state`
parameter. However, the implementation has `0` as
the default value. This commit modifies the
function's documentation to reflect the default
value in the implementation.
2020-10-08 20:58:57 +02:00
Maria Telenczuk 64697c665f
MRG Sample weight for StandardScaler (#18510) 2020-10-07 10:10:30 +02:00
Maria Telenczuk ca0065d3bf
BUG exchanging _safe_accumulator_op for np.average (#18537) 2020-10-06 17:14:28 +02:00
Albert Villanova del Moral 3bb138f879
ENH Incremental weighted mean and var (#18447)
Co-authored-by: Piotr Gaiński <dociebieaniuszlem@gmail.com>
2020-10-01 23:55:41 +02:00
N. Haiat 6a9fe2a48c
DOC Fix docs for default values in sklearn.utils.extmath (#18399) 2020-09-17 13:17:08 -04:00
Frans Larsson e103b53b8d
DOC Fix default values for utils.extmath.py (#18295) 2020-08-31 12:48:31 +02:00
Henry eff1bdf3ee
DOC Add note on the max number of extmath.cartesian arguments (#16406)
Co-authored-by: Henry <hlc5v@virginia.edu>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-08-07 22:31:03 +02:00