Thomas Moreau
d25da1be20
FIX make joblib utils private, and remove mentions of externals.joblib ( #12345 )
2018-11-20 10:53:52 +11: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
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
TakingItCasual
74b56dbc57
MNT Converting http to https ( #12277 )
2018-10-04 22:37:57 +08:00
jeremiedbb
0d8a04bd17
[MRG+1] SimpleImputer(strategy="constant") ( #11211 )
2018-06-20 17:20:33 +02:00
Joel Nothman
ef8d22af7c
ENH Add working_memory global config for chunked operations ( #10280 )
2018-05-25 12:04:05 +10:00
Loïc Estève
682e85fb1a
Fix safe_indexing with read-only indices ( #9507 )
2017-08-08 10:21:09 +02:00
Vlad Niculae
738053e657
[MRG+2] MAINT: no longer backport graph_laplacian, use scipy one ( #9077 )
2017-06-09 16:23:55 +02:00
Naoya Kanai
bd0fc236e0
[MRG+1] MAINT drop SciPy < 0.13 ( #8854 )
...
Remove sklearn.utils.fixes functions that are not needed for scipy >= 0.13 and keep deprecated wrappers in other modules.
2017-06-02 23:36:33 +02:00
James Fiedler
e4b837cc66
Removed unused imports
2016-07-29 19:30:23 -05:00
ningchi
6ce198c78f
[MRG] #6581 n_samples of utils.resample can be more when replace is True
...
* #6581 n_samples can be more when replace is True
* more compact code
2016-04-02 08:58:40 +02:00
Peter Fischer
8ff339eb5b
Update test_utils.py
...
Comment instead of docstring to follow sklearn convention.
Regression test made easier by adding small value to main diagonal of s.p.d. matrix
2015-10-23 08:57:31 +02:00
Peter Fischer
6cb51b2a28
Initialize ARPACK eigsh
...
`v0 = random_state.rand(M.shape[0])` leads to an initial residual vector in ARPACK which is all positive. However, this is not the absolute or squared residual, but a true difference. Thus, it is better to initialize with `v0=random_state.uniform(-1, 1, M.shape[0])` to have an equally distributed sign. This is the way that ARPACK initializes the residuals.
The effect of the previous initialization is that eigsh frequently does not converge to the correct eigenvalues, e.g. negative eigenvalues for s.p.d. matrix, which leads to an incorrect null-space.
- initialized all occurences of sklearn.utils.arpack.eigsh the same way it would be initialzed by ARPACK
- regression test to test behavior of new initialization
2015-10-23 08:57:30 +02:00
Andreas Mueller
990a6b402f
FIX n_jobs slicing bug in dict learning, add input validation to gen_even_slices
2015-05-20 15:29:25 -04:00
Andreas Mueller
f11f5c849e
TST don't check that warning was raised as whether a copy needs to be made or not depends on the pandas version. Version 0.12 and 0.13 apparently don't use cython here, and >0.17 will have a fix.
2015-05-13 09:52:54 -04:00
Andreas Mueller
cdfaabfa0b
FIX work-around for read only dataframes
2015-05-05 19:26:35 -04:00
Olivier Grisel
e12863f103
FIX make shuffle / resample pass-through indexing utilities
2015-04-10 16:11:22 -04:00
Raghav R V
cd2ee7e454
MAINT docstring --> comments to prevent nose from using doc in verbose mode
2015-03-21 11:16:49 +05:30
Lars Buitinck
2666b702d2
TST stronger test_shuffle_on_ndim_equals_three
2014-09-25 19:37:35 +02:00
Will Lamond
766fb56ec0
FIX allow ndim>2 in shuffle
...
Fixes #3694 .
2014-09-25 19:29:44 +02:00
Andreas Mueller
b080d93b5e
ENH don't convert dataframes in grid search and cross-validation
2014-07-18 10:02:14 +02:00
Andreas Mueller
5fe7c2ca2f
add test for safe_indexing, add another test for cross_val_score
2014-07-16 11:31:41 +02:00
Andreas Mueller
d8f90d137d
use column_or_1d, move it to utils
2013-07-26 17:16:27 +02:00
Vlad Niculae
f4a4016d14
Cloned @jakevdp's pinvh tests
2012-09-04 19:58:47 +01:00
Jake Vanderplas
776b060098
@jakevdp's version of pinvh
...
speed up symmetric_pinv
2012-09-04 19:58:46 +01:00
Vlad Niculae
4a5a1d6d84
Compute pseudoinverse using eigendecomposition
2012-09-04 19:58:46 +01:00
Alexandre Gramfort
ad8e4912cb
TST: use assert_true instead of assert + remove some relative imports
2012-02-11 15:43:03 +01:00
Mathieu Blondel
05c42cc4e4
Add safe_mask utility.
...
Got tired of always typing the same few lines again and again...
2012-01-13 15:31:45 +09:00
Jake Vanderplas
7f53024ae9
remove unused imports
2011-12-23 09:27:40 -08:00
Lars Buitinck
2998a7cc04
COSMIT reorganise utils tests
2011-12-20 19:44:42 +01:00
Lars Buitinck
4c8b15eb3e
don't use assert_in, not supported by nose on buildbot
2011-12-11 01:14:32 +01:00
Lars Buitinck
b88191b786
test @deprecated using warnings.catch_warnings
...
Yet another great Python 2.6 feature! :)
2011-12-11 00:55:29 +01:00
Lars Buitinck
98ead8a340
raise TypeError instead of ValueError in check_arrays
...
Appropriate "when an operation or function is applied to an object of
inappropriate type".
2011-12-10 13:12:50 +01:00
Fabian Pedregosa
ddf4b72109
Move project directory from scikits.learn to sklearn
2011-09-02 12:06:57 +02:00
Fabian Pedregosa
68f27e3790
Revert "Move project directory from scikits.learn to sklearn"
...
This reverts commit fd0d3b879d .
2011-09-02 12:03:18 +02:00
Fabian Pedregosa
fd0d3b879d
Move project directory from scikits.learn to sklearn
2011-09-02 11:38:24 +02:00