Commit Graph

176 Commits

Author SHA1 Message Date
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
Vincent M 239e163191
MAINT Introduce `MiddleTermComputer`, an abstraction generalizing `GEMMTermComputer` (#24807)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-11-03 19:42:42 +01:00
Thomas J. Fan 266d2a2b8d
BLD Migrate away from distutils and only use setuptools (#24563)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-11-03 18:30:14 +01:00
Guillaume Lemaitre 64876cafa6
DOC add entries for the 1.1.3 release (#24744) 2022-10-26 11:35:59 +02:00
Julien Jerphanion 5b45d1fa7f
MAINT `PairwiseDistancesReduction`: Rename some symbols and files (#24623)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-10-13 13:16:49 -04:00
Thomas J. Fan bef6a493cd
BLD Upgrade to 3.9 for pypy testing (#24520) 2022-09-27 14:55:25 +02:00
Julien Jerphanion 43bdb023d8
MAINT Use the newest NumPy C API where possible (#24049) 2022-09-05 10:25:06 +02:00
johnthagen 996c7e2895
Add BSD license trove classifier (#23451)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-05-24 17:49:25 +02:00
Thomas J. Fan 915160ef44
MNT Fix setup.py clean with setuptools >= 61 (#23426) 2022-05-20 16:28:59 +02:00
Thomas J. Fan 8a6cf1a33e
BLD Monkeypatch windows build to stablize build (#22693) 2022-03-24 16:36:27 +01:00
Thomas J. Fan f1d3417b08
MNT Drops Python 3.7 in CI, wheel building, and docs (#22617)
* MNT Drops Python 3.7

* MNT Bump NumPy and SciPy

* FIX Fix build

* FIX Bump versions improved

* DOC Fixes numpy version [pypy]

* BLD [pypy] [icc-build]

* Update docs

* MAINT use scipy.optimize.LinearConstraint in test

* MAINT scipy 1.1.0 related code clean-up

* scipy>=1.3.2 in pyproject.toml's build deps

* [cd build]

* DOC Adds comment about pypy

* MAINT remove _astype_copy_false

* FIX Update check for python version in setup.py

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-02-28 18:23:02 +01:00
Thomas J. Fan 6f39cab2ba
DOC Use wheelhouse_uploader directly to publish to pypi (#22234) 2022-01-27 14:52:40 +01:00
David Poznik 0ea1fd04ea
MAINT Indicate Python 3.10 compatibility in `README.rst` and `setup.py` (#22251)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-01-24 17:00:47 +01:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +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
Thomas J. Fan 9a13bdfaf1
MNT Adds black config and fixes formatting before black (#19031)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 17:14:09 +02:00
Thomas J. Fan 07a0cf37c9
MNT Finish removing python 3.6 (#20185) 2021-06-01 22:06:28 +02:00
Thomas J. Fan 5efcb10c3e
MAINT Vendors packaging/version.py for pep440 versioning (#19826)
* MAINT Vendors packaging/version for pep440 versioning

* ENH Uses folder structure of packaging

* ENH Uses fixes parse_version

* ENH Uses packaging name

* MAINT Adds packaging

* BLD Use vendored version [cd build]
2021-04-19 17:06:38 +02:00
Geoffrey Thomas 4beb0c27fc
MNT Make setup.py command parsing more robust (#19650)
Separate arguments into options and commands, and use setuptools.setup
if all the requested commands can / should run without NumPy installed,
even if there are options present.

This fixes a bug where `setup.py --no-user-site egg_info` wants NumPy to
be installed, even though `setup.py egg_info` works fine.
2021-03-10 14:26:22 +01:00
Juan Carlos Alfaro Jiménez d953f74902
BLD Add clean command to skip list (#18999) 2020-12-14 16:39:43 +01:00
Olivier Grisel 7149558f67
CI Enable parallel build on CI via an env variable (#18826)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-11-13 10:30:10 -05:00
Terence Honles 8af5f611bd
MNT Support and test Python 3.9 (#18761)
* MNT Support and test Python 3.9

The following were used as references when updating pyproject.toml:

- https://github.com/scipy/scipy/issues/12940
- https://github.com/scikit-image/scikit-image/pull/4920
- https://github.com/scikit-image/scikit-image/pull/4920#discussion_r471467159

* Trigger wheel builder [cd build]

* Fix typo when optionally installing scikit-image

Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>

* Update build_tools/azure/install.sh [ci skip]

Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-11-10 17:22:01 +01:00
Thomas J. Fan 1ea9ae2245
MNT Move min_dependencies up a level (#18610) 2020-10-14 16:11:05 +02:00
Guillaume Lemaitre 13bccedeb0
MNT add development status in setup.py (#18475) 2020-09-28 16:59:29 -04:00
Jérémie du Boisberranger d8ab62a389
MNT import setuptools before distutils + add some comments (#17956) 2020-07-21 11:33:31 +02:00
Thomas J. Fan 0f114b610d
MNT Places all minimum dependencies in one central location (#17573)
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
2020-06-27 16:55:25 +02:00
Jérémie du Boisberranger d3e4f24015
BUILD Make sure PKG-INFO contains Requires-Python (#17683) 2020-06-26 18:52:02 -04:00
Julien Jerphanion 2c377eba97
MNT Add extra requirements in setup.py (#17328)
* Add extra requirements

This list is based on requirements given in:

 - contributing.rst
 - build_doc.sh
 - README.rst

* Move extras_require in extra_setuptools_args

* Add versions for extra requirements

* Add variables for extra requirements min version

* (lint) Add extra space

* Change syntax to use f-strings

* Add joblib and threadpoolctl to extras_require

Numpy as Scipy were listed in the extras_require even though
they are necessary requirements.

This just add the other necessary requirements in extras_require
to keep follow the logic.

* Propose dict keys for extras_require

* Remove packing from extras_require

* Remove Cython from extras_require

* Remove install dependencies

* Move packages to appropriate sections

* Remove variables for packages versions

* Revert back to format syntax

This way python <=3.5 users will get appropriate error messages.
2020-06-09 14:02:56 -04:00
Jérémie du Boisberranger 769794249c
[MRG] new K-means implementation for improved performances (#11950) 2020-02-20 13:39:16 +01:00
Adrin Jalali 42706ebf2d
MNT CI dropping python-3.5 (#15106)
* dropping python-3.5

* fix install guide

* fix setup.py

* fix circleci

* advanced_installation

* index.html

* readme

* pyparsing.py

* remove clean_warning_registry

* 1.13.1 and 1.19.1

* don't use 16.04

* 18.04 libatlas-dev -> libatlas-base-dev

* min pillow version for 3.6 is 4.2.1

* echo commands

* fix conflict, and 32 bit

* fix conflict for circle

* fix scikit-image version dep

* mark tests as xfail on 32bit py3.6

* move to 1.13.3 min numpy version, and simplify old code

* remove the rest of _object_dtype_isnan usages

* Revert "remove the rest of _object_dtype_isnan usages"

This reverts commit c6e867ea1f.

* fix issues raised by jeremy

* minor fix

* minor fixes mentioned by Olivier
2020-02-10 12:28:42 +01:00
Adrin Jalali a91304ecd7
DOC Pre 0.22 release (#15735)
* add python 3.8 to setup.py

* add authors to whats_new

* update release date

* move whats new entry to 0.23

* add news section to index.html

* pep8

Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>
2019-12-02 12:03:25 +01:00
Jérémie du Boisberranger 9e5819aa41 MNT Include all pxd files in the package (#15626)
* include all pxd files in package

* _libsvm _liblinear to pxi + add a test

* simplify stuff + use pathlib

* cln

* more cln
2019-11-26 17:37:26 +01:00
Adrin Jalali db6c12fc11
MNT require scipy in setup.py (#15597)
* require scipy in setup

* refactor code
2019-11-13 10:34:28 +01:00
Jérémie du Boisberranger 9876f748b0 [MRG] BUILD: warn instead of raise when openmp unsupported (#15174) 2019-11-13 10:03:12 +01:00
Olivier Grisel 82e2f54565 BLD: Do not pre-cythonize when calling sdist (#15567) 2019-11-08 13:04:30 +01:00