Commit Graph

27 Commits

Author SHA1 Message Date
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Mabu Manaileng c3f647a6b2
MNT Fix divide by zero error thrown by _random_choice_csc during a test run (#19383) 2021-02-09 14:37:26 +01:00
Roman Yurchak 75d3f29e72
MAINT Remove outdated numpy and scipy backports (#16725)
* Remove unecessary numpy & scipy backports

* More fixes

* Remove unused imports
2020-03-20 13:57:18 +01:00
Alexandre Batisse 418e0d55d3
[MRG] CLN Remove the use of assert_raises in utils/ (#16337)
* CLN use pytest raises ctxt manager for class weights & estimators [skip ci]

* CLN use pytest raises ctxt manager for multiclass test

* CLN use pytest warns in estimator checks test

* CLN use pytest raises ctxt manager for random test

* CLN use pytest raises ctxt manager for sparsefuncs test

* CLN use pytest raises ctxt manager for testing utils tests

* CLN use pytest raises ctxt manager for utils tests

* CLN use pytest raises ctxt manager for validation tests

* revert test_estimator_check.py to upstream master
2020-02-02 14:44:19 +01:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Nicolas Hug c4f372c2de Deprecate utils.{optimize.newton_cg,random.random_choice_csc} (#15040) 2019-09-27 09:46:17 +02:00
Nicolas Hug f3eb9d2206 [MRG] MNT removing assert_equal, etc -- continued (#14232) 2019-07-02 14:53:51 +10:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Clément Doumouro 01bc8b18ac FIX non deterministic behavior in SGD (#13422) 2019-04-04 21:31:09 +11:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Hanmin Qin 43e3a02085
MNT Remove unused assert_true imports (#12560) 2018-11-11 11:08:37 +08:00
Yaroslav Halchenko 362cb3bcab TST autoreplace assert_true(...==...) with plain assert (#12547) 2018-11-11 09:05:34 +08:00
Nicholas Nadeau, P.Eng., AVS 3e26fc63be MAINT Fixing Typos (#11017) 2018-04-24 09:32:25 +10:00
Naoya Kanai 95aa2952e1 Add logsumexp and comb to utils.fixes (#9046) 2017-06-10 15:01:02 +02:00
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
Andreas Mueller a8626b36a6 TST/COSMIT remove nose call boilerplate 2015-05-28 14:54:01 -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 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 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 0ee10dc4cd move random_choice_csc to utils/random from utils/sparsefuncs 2014-08-04 17:41:31 -04:00
Lars Buitinck 541987802f P3K range vs. xrange 2013-02-14 02:05:35 +01:00
Andreas Mueller 966e10c252 COSMIT PEP8 2012-12-22 16:48:17 +01:00
Arnaud Joly 07881645a6 COSMIT make everything use the common interface 2012-12-21 14:48:01 +01:00
Arnaud Joly a6ed58dc4d ENH flatten random_projection module + add sklearn.utils.random 2012-12-21 14:48:00 +01:00