Commit Graph

212 Commits

Author SHA1 Message Date
Adrin Jalali 5080f2527c
CLN remove unneeded copyrights (#29257) 2024-06-17 11:11:33 +02:00
Loïc Estève abbaed326c
MAINT Drop official PyPy support (#29128) 2024-06-03 14:30:35 +02:00
Loïc Estève 60dd8e3c46
MAINT Add project.urls to pyproject.toml (#28761) 2024-04-04 13:49:20 +00:00
Christian Lorentzen 59bba8fd42
MNT remove unnecessary cython.import_array (#28656)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2024-03-20 18:31:06 +00:00
Christian Lorentzen 27178d0f66
MNT move sum_parallel to arrayfuncs (#28451) 2024-02-20 15:40:34 -05:00
Guillaume Lemaitre e8ec36c9f3
MAINT bumpversion Python and dependencies (#27910) 2023-12-12 15:12:41 +01:00
Riccardo Cappuzzo 458c55827a
ENH improve visual HTML estimator representation (#26616)
Co-authored-by: ines.ibnukhsein <ines.ibnukhsein@dataiku.com>
Co-authored-by: Gael Varoquaux <gael.varoquaux@normalesup.org>
Co-authored-by: Ines <ines-99@ukr.net>
Co-authored-by: Lilian <lilian@boulard.fr>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Tim Head <betatim@gmail.com>
2023-10-25 08:38:12 +02:00
Dimitri Papadopoulos Orfanos ed82f78769
DOC http:// → https:// (#27581) 2023-10-13 17:26:15 +02: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
Loïc Estève 93e22cdd8d
CI Build and test Python 3.12 wheels (#27027)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-10-02 14:03:09 +02:00
Omar Salman f86f41d80b
PERF Implement `PairwiseDistancesReduction` backend for `RadiusNeighbors.predict_proba` (#26828)
Co-authored-by: Omar Salman <omar.salman@arbisoft>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-09-25 10:56:45 -04:00
Omar Salman 1bd831afb8
ENH Add `float32` implementations for `BallTree` and `KDTree` (#25914)
Co-authored-by: Omar Salman <omar.salman@arbisoft>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-08-01 12:19:40 -04:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Meekail Zain 415b11a765
FEAT Add `HDBSCAN` as a new estimator in `sklearn.cluster` (#26385)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-05-31 16:02:28 +02:00
Meekail Zain c6628a0e7a
ENH Allow for appropriate dtype us in `preprocessing.PolynomialFeatures` for sparse matrices (#23731)
Co-authored-by: Aleksandr Kokhaniukov <alexander.kohanyukov@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-05-04 21:30:49 +02:00
Jérémie du Boisberranger 09118d976f
MAINT utils._fast_dict uses types from utils._typedefs (#26025) 2023-04-11 15:22:36 +02:00
farhan khan 10eaa52c85
MNT Updates _isotonic.pyx to use memoryviews instead of `cnp.ndarray` (#26068) 2023-04-06 04:01:01 -04:00
Jérémie du Boisberranger 70c489f127
MAINT Consistent cython types from _typedefs (#25942)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-03-29 17:48:56 +02:00
Thomas J. Fan 392fdee003
ENH Adds TargetEncoder (#25334)
Co-authored-by: Andreas Mueller <t3kcit@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jovan Stojanovic <62058944+jovan-stojanovic@users.noreply.github.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-03-16 16:59:20 +01:00
Meekail Zain b6b6f63ebe
PERF Implement `PairwiseDistancesReduction` backend for `KNeighbors.predict_proba` (#24076)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-03-14 12:04:34 +01:00
Jérémie du Boisberranger 2c4e1d70c9
BLD Clean command removes generated from cython templates (#25839) 2023-03-14 06:43:12 -04:00
Julien Jerphanion 7196a03b93
BLD Always use NumPy 1.7 C API for all compiled extensions (#25793) 2023-03-09 14:04:56 +01:00
Omar Salman 63ff30396a
MAINT Replaces cnp.ndarray with memory views in _cd_fast (#25775) 2023-03-09 08:45:29 +00:00
Omar Salman 67ca4dda1d
MAINT replace cnp.ndarray with memory views in sparsefuncs_fast (#25764) 2023-03-06 09:58:33 -05:00
Thomas J. Fan a3305e688e
MAINT Use newest NumPy C API in metrics._dist_metrics (#25702) 2023-02-28 18:07:14 +01:00
Jérémie du Boisberranger 725569f957
MAINT Clean dead code in build helpers (#25661) 2023-02-28 11:55:24 -05:00
Omar Salman 1a669d8202
ENH Support float32 in SGDClassifier and SGDRegressor (#25587) 2023-02-27 16:26:11 -05:00
Rahil Parikh 5ba1fee683
MAINT Remove -Wcpp warnings when compiling arrayfuncs (#25415)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-02-27 14:32:35 -05:00
Thomas J. Fan ee7dd363b6
MAINT Use newest NumPy C API in tree._criterion (#25615)
* MAINT Use newest NumPy C API in tree._criterion

* FIX Use pointer for children
2023-02-19 17:37:39 +01:00
Thomas J. Fan 28f8c87391
MAINT Removes ReadOnlyWrapper (#25586) 2023-02-11 17:35:01 +01:00
Thomas J. Fan f9a1cf072d
MAINT Remove ReadonlyArrayWrapper from _loss module (#25555)
* MAINT Remove ReadonlyArrayWrapper from _loss module

* CLN Remove comments about Cython 3.0
2023-02-09 18:52:44 +00:00
Omar Salman 584d413fec
MAINT Replace cnp.ndarray with memory views in sklearn.tree._tree (where possible) (#25540) 2023-02-09 08:21:28 +00:00
Omar Salman 67450f5638
MAINT Remove -Wcpp warnings from sklearn.utils._seq_dataset (#25406) 2023-02-03 20:42:19 +01:00
Omar Salman cabe027497
MAINT remove -Wcpp warnings when compiling sklearn.preprocessing._csr_polynomial_expansion (#25041) 2023-01-27 12:01:01 +00:00
Omar Salman c58ca7dec4
MAINT Remove -Wcpp warnings when compiling sklearn.decomposition._online_lda_fast (#25020)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-01-26 10:59:30 +01:00
Omar Salman 550fa9c28c
MAINT Remove -Wcpp warnings when compiling sklearn.svm._libsvm_sparse (#25337)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-01-16 09:40:06 +01:00
Omar Salman 0a36bd8892
MAINT Remove -Wcpp warnings when compiling sklearn.svm._liblinear (#25112)
* MAINT Remove -Wcpp warnings when compiling sklearn.svm._liblinear

* Convert the required data in X to bytes

* Add NULL check for class_weight_label

* Add NULL check for class_weight

* Add sklearn.svm._liblinear in setup.py

* Use intermediate memoryviews for static reinterpretation of dtypes

* * Remove the usage of tobytes()
* Use separate memory views for float64 and float32 to handle the possibly dtypes of X
* Separate the functionality to get the bytes of X in functions for sparse and normal ndarray

* Remove the use of functions and implement the functionality directly in train_wrap

* Minor refactor

* Refactor variables names involving X to use capital X

* Define y, class_weight and sample_weight as const memory views

* Use const with X_indices and X_indptr memory view declarations

Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-01-09 08:31:15 +01:00
Omar Salman 0fe2b2c8ca
MAINT Remove -Wcpp warnings when compiling sklearn.neighbors._quad_tree (#25225)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-01-05 10:12:07 +01:00
Thomas J. Fan e411c29625
MNT Enable O3 optimization for trees (#25277) 2023-01-03 22:41:43 +01:00
Omar Salman 1c6e182f92
MAINT Remove -Wcpp warnings when compiling sklearn.svm._libsvm (#25064) 2023-01-03 10:21:42 +01:00
Omar Salman 6367597810
MAINT Remove -Wcpp warnings when compiling sklearn.ensemble._gradient_boosting (#25033)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-12-15 09:01:45 +01:00
Vincent M 556454121e
MAINT Remove -Wcpp warnings when compiling `_kd_tree` and `_ball_tree` (#24965) 2022-12-07 19:55:24 +01:00
Thomas J. Fan 9527920c3d
BLD Reduces size of wheels by stripping symbols (#25123) 2022-12-07 18:19:26 +01:00
Rahil Parikh f2f3b3cef0
MAINT Remove `-Wcpp` warnings when compiling `sklearn.manifold._utils` (#24925)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2022-11-30 18:15:00 +01:00
Thomas J. Fan f7239bf1a1
BLD Reduce binary size of wheels (#25063) 2022-11-30 10:13:30 +01:00
Omar Salman 808c32df07
MAINT Remove -Wcpp warnings when compiling sklearn.linear_model._sag_fast (#24975) 2022-11-29 13:23:14 -05:00
Omar Salman f9453d5765
MAINT Remove -Wcpp warnings when compiling sklearn.cluster._hierarchical_fast (#24914)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-11-28 10:04:12 +01:00
Vincent M f9b16f244b
MAINT Remove -Wcpp warnings when compiling `sklearn.utils.murmurhash` (#24958)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-11-24 16:50:45 +01:00
Omar Salman 29242d1388
MAINT Remove -Wcpp warnings when compiling sklearn.cluster._dbscan_inner (#24881)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-11-22 16:45:18 -05:00
Omar Salman 81b7fd4bc8
MAINT Remove -Wcpp warnings when compiling sklearn.linear_model._sgd_fast (#24883) 2022-11-15 14:49:06 +01:00