Commit Graph

209 Commits

Author SHA1 Message Date
Lars Buitinck 3697d755c4 MAINT/TST: public export of non_negative_factorization
Changed imports in test to separate testing of API and of internals.

See gh-5509.
2015-10-21 14:55:06 +02:00
giorgiop b18f2951e4 randomized_svd: power iter, normalization, benchmark 2015-10-21 11:21:40 +02:00
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
Olivier Grisel 16fcb15351 ENH use explicit decimal keyword & PEP8 2015-10-15 13:51:11 +02:00
Andreas Mueller 838570cc8a Fixes #4455. 2015-10-13 17:44:36 -04:00
Alexandre Gramfort 03eff3a545 Merge pull request #5336 from giorgiop/pca-warning
[MRG+1] remove numpy's RuntimeWarning from corner case of PCA.fit
2015-10-07 14:39:34 +02:00
Arthur Mensch a52053deef Fix sparse_encode input checks 2015-10-05 13:59:48 +02:00
giorgiop f5138ad16c remove numpy's RuntimeWarning from corner case of PCA.fit 2015-10-03 08:34:29 +02:00
Olivier Grisel d28a12efed Merge pull request #5303 from larsmans/faster-lda
[MRG + 1] optimize LDA, ~15% faster on one core
2015-09-28 13:31:49 +02:00
Lars Buitinck 08460ebe5f ENH: optimize LDA, ~15% faster on one core 2015-09-23 16:46:15 +02:00
TomDLT ceeef70037 ENH refactor NMF and add CD solver 2015-09-21 11:42:07 +02:00
TomDLT 628ed2c867 ENH remove some warnings in test suit 2015-09-16 18:27:58 +02:00
Olivier Grisel 3b30958fa1 MAINT PEP8 / slightly faster tests in decomp LDA 2015-09-11 16:38:43 +02:00
Vighnesh Birodkar 2f099334f9 MAINT deprecate 1d input arrays for all estimators
Passing 1D arrays to check_array, without setting `ensure_2d` to false now
raises a deprecation warning before reshaping it. This will later throw an
error.

All Scaler classes also throw warnings when 1D arrays are passed.

All unit tests/doctests are modified to ensure that no 1D arrays are passed,
except in explicit 1D array tests where the warnings have been silenced.

Additional tests are also included which check for different 1D array cases.

2D array tests with one samples and one features are also added and where
they failed, `check_array` call has been modified to give a more useful error
message
2015-09-09 15:49:58 +02:00
Olivier Grisel 1529a1e548 MAINT enable multiprocessing + kmeans test on Python 3.4 2015-09-04 11:47:34 +02:00
Lars Buitinck a94689060b ENH: faster LatentDirichletAllocation (~15% on 20news) 2015-08-14 20:15:04 +02:00
Lars Buitinck 5908bcccde TST: LatentDirichletAllocation behavior on empty documents
Preparing for potential optimization of this estimator.
2015-08-14 18:49:35 +02:00
Lars a6c6e732c5 Merge pull request #3659 from chyikwei/onlineldavb
ENH Latent Dirichlet Allocation (LDA) with online variational Bayes
2015-08-09 19:13:01 +02:00
Arthur Mensch fead69a4ac Bugfix : type in cd changed for read only memmap compatibility 2015-07-31 12:12:40 +02:00
Olivier Grisel 71feb53bf6 FIX seed the initialization of NMF 2015-07-23 08:46:14 +02:00
Chyi-Kwei Yau 567aa615d3 make dimension mismatch err msg more explicit 2015-06-25 16:24:37 -04:00
Chyi-Kwei Yau a1c3561ddf remove main in test 2015-06-25 15:34:15 -04:00
Andreas Mueller a8626b36a6 TST/COSMIT remove nose call boilerplate 2015-05-28 14:54:01 -04: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
Chyi-Kwei Yau 3618a02162 fix params and import test coverage 2015-05-16 20:53:01 -04:00
Chyi-Kwei Yau 3ddeb0e0e6 remove duplicate code in _approx_bound method 2015-05-15 22:42:45 -04:00
Chyi-Kwei Yau 2a830f6b08 clean up test and add error check in preplexity method 2015-05-15 22:12:59 -04:00
Chyi-Kwei Yau 360456b6dc native dense input support 2015-05-11 00:00:22 -04:00
Chyi-Kwei Yau a0ba403a39 move input validation and variable assignment to fit method 2015-05-10 00:00:28 -04:00
Chyi-Kwei Yau 794c6856e4 testing code improvement 2015-05-09 23:13:37 -04:00
Chyi-Kwei Yau efd5afdb95 fix typos and imporve documentation 2015-05-09 21:31:45 -04:00
Chyi-Kwei Yau efd5e3bf1c don't use sparse.block_diag since it is new in scipy 0.11.0
update params and minor change

add onlineLDA example

rename onlineLDA to LatentDirichletAllocation

raise NotFittedError in trnasform

change model name in LDA example

cython optimization for online LDA model

fix import error

add evaluate_every parameter in online LDA model

add score in LDA model

fix doc format

update variable name and improve docs

fix broken example and change parameter name to n_samples & n_features

add check_non_negative function in LDA

add parameter to specify online/batch VB in fit method

improve documentation

set default hyper parameter to 1 / n_topics

use gen_batches in example

remove old func from example
2015-05-09 19:30:39 -04:00
Chyi-Kwei Yau 64e730e382 add OnlineLDA model and test 2015-05-09 19:30:39 -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
Andreas Mueller f1b8283c95 catch some warnings, be less verbose in testing. 2015-03-02 14:40:35 -05:00
Andreas Mueller 4e270a5157 remove deprecation tests. 2014-12-29 14:00:06 -05:00
Kyle Kastner b2d6a30aeb IncrementalPCA implementation 2014-09-22 13:12:29 -04:00
Michael Eickenberg dc2bc8a5ec TST test whitened inverse 2014-08-06 14:42:03 +02:00
Lars Buitinck c9789c7edf COSMIT clean up tests with pyflakes
test_ridge.py contained two duplicate functions.
2014-07-22 16:10:16 +02:00
Lars Buitinck 88b05ff908 MAINT remove deprecated PCA code 2014-07-22 15:45:35 +02:00
MechCoder c838c382b9 FIX: Preserve public API by introducing return_n_iter param 2014-07-22 15:09:39 +02:00
MechCoder bbb140aaf0 ENH: Added n_iter_ parameters across all iterative solvers 2014-07-22 15:09:39 +02:00
Lars Buitinck f309126b53 FIX PCA error handling for invalid n_components
n_components < 0 was silently handled like None; > n_features gave a
cryptic error message from the bowels of np.linalg.

XXX n_components == 0 is still allowed as changing it makes tests fail,
not sure what it means.
2014-06-05 20:16:43 +02:00
Alexandre Gramfort a611867b7d Merge pull request #3176 from agramfort/omp_default
MRG : omp default param could fail
2014-06-01 23:25:05 +02:00
Alexandre Gramfort 4550aaea19 ENH : use local seed + avoid warning 2014-05-22 09:14:33 +02:00
Alexandre Gramfort 50d40fb70b FIX : omp default param could fail 2014-05-22 07:46:14 +02:00
mjbommar 724b63a16c Replacing the test .todense() methods with .toarray() 2014-05-20 21:44:34 -04:00
Michael Becker 00bb7a42f9 TruncatedSVD: Calculate explained variance.
Fixes #3047
2014-04-17 15:10:34 -04:00
Mikhail Korobov e87653dc3d TST skip SparsePCA n_jobs!=1 test on Mac OS X because it hangs 2014-03-21 04:22:05 +06:00
Olivier Grisel 751049ec18 FIX: np.abs might not work on scipy.sparse matrices
On current scipy master np.abs(X) triggers:

    TypeError: __numpy_ufunc__ not implemented for this type.

I don't know if this is really a bug in scipy or not but in the mean
we can workaround this limitation as this is only for a test anyway.
2014-03-19 15:56:58 +01:00