Commit Graph

25 Commits

Author SHA1 Message Date
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