Commit Graph

39 Commits

Author SHA1 Message Date
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
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 270d47a87b Fix gibbs sampling behavior in RBM with integral random_state. 2015-02-10 15:07:17 -05:00
Raghav R V 24c0efd12f PEP8 Fix E112 and E113 errors 2015-01-08 04:00:28 +05:30
Andreas Mueller c7db70ac9f removed unused variables and imports, add used imports where missing. 2014-06-08 21:44:01 +02:00
Lars Buitinck 91a45af295 ENH micro-optimize a few tests 2014-04-04 11:27:07 +02:00
Brooke Osborn 7ed792f0a8 adding test for csc and csr sparse matrix 2014-03-24 20:14:51 -04:00
Brooke Osborn 696cf55792 removing tests for multiple sparse matrix formats 2014-03-22 09:01:13 -04:00
Brooke Osborn 874235c5b9 removing copy() and adding tests for multiple forms of sparse matrices 2014-03-21 21:29:01 -04:00
Brooke Osborn eb037dde8a pep8-ing 2014-03-20 19:22:17 -04:00
Brooke Osborn 5c120f585c adding test for csr data for partial fit 2014-03-20 19:16:37 -04:00
Brooke Osborn d576ec8e79 pep8 corrections 2014-03-10 09:25:58 -04:00
Brooke Osborn 0afa59673d changing computation of batch slices to np.array_split 2014-03-09 22:17:12 -04:00
Brooke Osborn a83fddf01a Merge remote-tracking branch 'upstream/master' into rbmbranch 2014-03-01 14:42:37 -05:00
Lars Buitinck 0c22cbb272 FIX numerical stability issue in BernoulliRBM
Fixes #2785 by replacing log1p(exp(x)) with logaddexp(0, x).
2014-02-18 19:41:43 +01:00
Brooke Osborn 016469b30e changing xrange to range 2014-02-05 20:12:01 -05:00
Lars Buitinck c997cdee9f COSMIT pep8 + full stop police
metrics/tests/test_score_objects.py made stricter by replacing . with \.
in regular expressions.
2014-02-01 15:28:53 +01:00
Lars Buitinck 470643502b ENH speed up progress reporting in RBM
Previously took up to 45% (!) of the time in training, not the 10% promised
in the docstring, for the digits example. Now down to at most 3%.

Pseudo-likelihood is now reported for the entire X, rather than batch-by-batch,
which will take more memory.
2013-12-07 00:02:32 +01:00
Lars Buitinck b0485c47e2 BUG don't densify sparse matrix in BernoulliRBM.score_samples
Also documented the non-determinism of this method.
2013-12-06 23:38:21 +01:00
Brooke Osborn bced6739f0 changing test 2013-11-13 20:59:30 -05:00
Brooke Osborn 3a2ef7902b changing partial fit to be seperate from _fit 2013-11-03 16:47:16 -05:00
Brooke Osborn 8fc06223d1 adding test to rbm 2013-11-03 14:35:47 -05:00
Lars Buitinck 13a83155eb FIX sparse matrix indexing in BernoulliRBM
Fixes #2545, reported by @jfelectron.
2013-10-27 17:51:33 +01:00
untom 605d34f5bb Check that verbose output is sound. 2013-09-24 13:27:09 +02:00
untom 4a2acd3f17 Cosmetic changes. 2013-09-19 08:42:02 +02:00
Untom 24216b54be Issue #2455: Make RBM work with sparse input when verbose=True. 2013-09-18 16:38:23 +02:00
Andreas Mueller 32eb8b57f8 ENH rename eval / pseudolikelihood to score_samples 2013-07-26 23:32:23 +02:00
Lars Buitinck 24cb1f0102 PY3 fix RBM test 2013-07-24 18:07:57 +02:00
Vlad Niculae 3b1bd5931c TST RBM smoke-test verbosity 2013-07-24 17:27:24 +02:00
Vlad Niculae 5a1097e8d1 Remove redundant test 2013-07-24 17:27:24 +02:00
syhw 31cac019ce adding a test for sparse matrices in RBM 2013-07-24 17:27:23 +02:00
syhw d3c34fd9fb check for pseudo_likelihood clipping 2013-07-24 17:27:22 +02:00
syhw 59631d6cb9 replaced test_gibbs by a smoke test for NaNs 2013-07-24 17:27:22 +02:00
syhw 110297dc01 TST added a 'fit [[0],[1]] + gibbs sample it' test for RBMs 2013-07-24 17:27:22 +02:00
Vlad Niculae 38fca5aca4 Use gen_even_slices instead of homebaked code 2013-07-24 17:27:22 +02:00
Vlad Niculae 8e7fd22609 FIX handling of random state, hide some of API 2013-07-24 17:27:21 +02:00
Yann N. Dauphin 44b7be193c TST added more RBM tests 2013-07-24 17:27:20 +02:00
Yann N. Dauphin 712f3cc86c ENH rename n_particles to batch_size in RBM 2013-07-24 17:27:20 +02:00
Yann N. Dauphin 3cafa9f6d6 neural_networks -> neural_network 2013-07-24 17:27:20 +02:00