Guillaume Lemaitre
286f0c9d17
DOC fixes references issues given by sphinx ( #27432 )
2023-10-03 20:25:29 +02:00
Adrin Jalali
42173fdb34
MNT add isort to ruff's rules ( #26649 )
2023-06-21 17:50:07 +02:00
Guillaume Lemaitre
9eea5b7092
MAINT unpack 0-dim NumPy array instead of implicit conversion ( #26345 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-06-09 15:07:59 +02:00
Meekail Zain
9f96d42e39
ENH Replaced RandomState.rand with equivalent uniform ( #22327 )
2022-02-01 17:09:38 -05: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
82df48934e
MNT Applies black formatting to most of the code base ( #18948 )
2021-06-17 14:21:09 -04: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
Gesa Stupperich
ecddddbfdc
DOC Change formatting of default values in docstring in random.py ( #17495 )
...
* Change formatting of default values in docstring
* Update sklearn/utils/random.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Update sklearn/utils/random.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Update sklearn/utils/random.py
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
* Update sklearn/utils/random.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Update sklearn/utils/random.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2020-06-15 17:25:15 +02:00
Nicolas Hug
1931e142ed
Remove deprecated utils ( #17133 )
2020-05-20 22:03:54 +02:00
Mandy Gu
eb1244963d
DOC improve random_state docstring random modue ( #15576 )
2020-01-09 10:54:45 +01:00
Nicolas Hug
c4f372c2de
Deprecate utils.{optimize.newton_cg,random.random_choice_csc} ( #15040 )
2019-09-27 09:46:17 +02:00
Aditya Vyas
301076e77b
MAINT Replace absolute imports with relative imports ( #13653 )
2019-04-17 12:45:14 -04:00
surgan12
62d2059804
MNT remove __future__ imports ( #12791 )
2019-02-02 22:05:06 +08: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
jeremiedbb
bf11d44558
[MRG+1] Fix bad fp-comparisons ( #11591 )
...
* all close comparison
* base + random + wikipedia
* revert flake8
* comments
2018-07-18 21:09:04 +02:00
Taehoon Lee
4ff7e8e658
Fix typos ( #9476 )
2017-08-02 14:02:59 +10:00
Loïc Estève
ab0342a5ef
COSMIT add missing spaces in deprecated messages
2017-06-09 16:00:01 +02:00
Naoya Kanai
6579220588
[MRG+1] Drop NumPy < 1.8 ( #8874 )
2017-06-07 17:06:06 +02:00
Andreas Mueller
31a4691d76
[MRG+1] fix sampling in stratified shuffle split ( #6472 )
...
Fix sampling in stratified shuffle split, break tests that test sampling.
2016-09-09 19:00:49 +02:00
seales
0485ada58b
General spelling fixes
2015-12-16 09:46:42 -08:00
TomDLT
89c1018c64
ENH improve check_array
...
ENH improve check_array to warn on dtype conversions
ENH make check_array accept several dtypes
ENH change validation with improved check_array
ENH change astype to avoid copy if possible
ENH remove warn_if_not_float
2015-05-19 16:13:42 +02:00
Andreas Mueller
5a2eb018af
FIX make random_choice_csc and therefor DummyClassifier deterministic.
2015-05-15 17:53:42 -04: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
Hamzeh Alsalhi
2198a84388
Manage explicit zeros manualy in class_distribution, test with explicit zeros
2014-08-09 10:33:35 -04:00
Hamzeh Alsalhi
9783de3b20
Test additional corner cases with random_choice_csc, error on proabilites not summing to 1
2014-08-08 21:17:47 -04:00
Hamzeh Alsalhi
2a3f504f1c
Make cosmetic adjustments, Fix random.py header, use message with assert_warns
2014-08-08 18:48:23 -04:00
Hamzeh Alsalhi
7cfea35902
Change dtype check conditional to look for everything other than int
2014-08-08 18:16:48 -04:00
Hamzeh Alsalhi
a5acf9d8a6
Test insertion of 0 class in random_choice_csc
2014-08-07 17:45:28 -04:00
Hamzeh Alsalhi
94b7845c4b
Test that class dtypes string and float fail in random_choice_csc
2014-08-07 17:00:00 -04:00
Hamzeh Alsalhi
7b7784e0aa
Make cosmetic changes
...
Break list comprehenesions differently in dummy precit
Drop uncesseray float() in multiclass class_distrribtuion
Combine two lines in random_choice_csc
2014-08-06 23:01:42 -04:00
Hamzeh Alsalhi
0e314728dc
Remove transposes from testing of random_choice_csc
2014-08-05 14:04:45 -04:00
Hamzeh Alsalhi
f59e4da4ab
Test random_choice_csc implicit, readability adjustments
...
Readability: remove unecessary transpose
2014-08-05 11:32:37 -04:00
Hamzeh Alsalhi
40d8fb3f1a
Replace numpy.random.choice with a search sorted strategy for faster runtime
2014-08-05 10:45:19 -04:00
Hamzeh Alsalhi
0ee10dc4cd
move random_choice_csc to utils/random from utils/sparsefuncs
2014-08-04 17:41:31 -04:00
Andreas Mueller
7f5a78464c
DOC more / better documentation
2014-07-14 20:47:18 +02:00
Andreas Mueller
7a04b8d606
skip doctests
2014-07-14 20:47:17 +02:00
Andreas Mueller
1ea8fcaa6c
ENH backport np.random.choice.
2014-07-14 20:47:17 +02:00
Andreas Mueller
f7d14b365d
MISC rename random.pyx to _random.pyx
2014-07-14 20:47:17 +02:00