Commit Graph

23 Commits

Author SHA1 Message Date
Sebastian Berg 0ab36990c0
MAINT: Adapt sklearn for NumPy default integer change (#27041)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-11-16 09:35:16 -05:00
Jérémie du Boisberranger 9cb1111028
MAINT Cython linting (#25861) 2023-04-19 14:32:53 +00:00
2357juan cd0d771b74
MAINT Use contiguous memoryviews in _random.pyx (#25871) 2023-03-16 10:39:42 +01:00
2357juan 5ffec32330
MAINT Use memoryviews in _random.pyx (#25780)
Co-authored-by: Juan Gomez <{789543}+{2357juan}@users.noreply.github.com>
2023-03-13 16:53:17 +01:00
Marco Edward Gorelli 2f65ac764b
MAINT clean-up unused variables and imports in cython files (#24347) 2022-09-05 10:39:20 +02:00
Maxwell fff9e180f0
cimport numpy as cnp for utils/random (#23302) 2022-05-09 15:42:36 +02:00
Jérémie du Boisberranger 1f8825c8dd
MNT Centralize common cython compiler directives (#21512) 2021-11-03 13:26:23 +01:00
Frans Larsson 8b6555f9c1
DOC Add None as valid option to random_state for utils module (#18253) 2020-08-25 08:44:46 +02:00
Frans Larsson d4d5ed5f39
DOC fix docstring in utils._random.pyx following doc guideline (#18208) 2020-08-20 13:45:30 +02:00
Thomas J. Fan 41488fcabe
MNT Remaining numpy alias (#17712) 2020-06-25 11:57:11 +02:00
Aditya Vyas 301076e77b MAINT Replace absolute imports with relative imports (#13653) 2019-04-17 12:45:14 -04:00
jeremiedbb cad0fb434f MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
Clément Doumouro 01bc8b18ac FIX non deterministic behavior in SGD (#13422) 2019-04-04 21:31:09 +11:00
Roman Yurchak 49570484db MAINT Use cython language_level=3 directive (#12873) 2019-02-28 18:45:15 +01:00
Hanmin Qin abd91d4b8b
MNT redundant from __future__ import (#13079) 2019-02-03 17:30:58 +08:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
ksemb 77418a0275 MAINT Fix escape sequences that are deprecated in Python 3.6 (#10578)
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2018-02-07 10:41:21 +11:00
Josh Karnofsky edc9e7f151 [MRG] ENH faster sample_without_replacement for recent numpy (#7703) 2016-10-29 22:08:53 +11:00
David Staub 12d5f07831 [MR] Speed issues in sample_without_replacement - bugfix (#7104)
* Remove cdivision=True Cython compiler directive causing incorrect int division.

* Decrease tol for LogisticRegression fit test, perhaps needed due to test not controlling `random_state`.
2016-08-06 21:23:19 +10:00
Nelson Liu d2aaf0f4bb doc: fix spellings of 'license' 2016-03-31 17:25:31 -07:00
Andreas Mueller 69e344fdf8 DOC fix sample_without_replacement docstring. Closes #4699. 2015-05-13 11:20:55 -04:00
Andreas Mueller f7d14b365d MISC rename random.pyx to _random.pyx 2014-07-14 20:47:17 +02:00