Commit Graph

40 Commits

Author SHA1 Message Date
Jiali Mei 85223b9bcc a common test to check if classifiers fail when fed regression targets 2015-10-14 14:46:13 -04: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
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -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
Raghav R V abd31d2cad MAINT Make uniform the error raised for not fitted condition 2015-01-12 00:33:40 +05:30
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10: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
Andreas Mueller 6e2a83b4e1 remove check_arrays stuff and old input validation 2014-07-20 13:31:45 +02:00
Gael Varoquaux 7768a3059b ENH: enable y to only implement the array interface
For instance y could be a pandas' dataframe
2014-07-17 11:44:07 +02:00
Lars Buitinck fed4692e40 TST skip flaky label propagation test
The optimization in 46aebf132b broke
a test that relied on the exact ordering of k-NN in a test on a minute
dataset.
2014-06-01 16:34:48 +02: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
Charles Earl 1666c4f9ff Added docstrings for model attributes in LabelPropagation and LabelSpreading 2014-01-29 09:30:57 -05:00
Lars Buitinck e8bad3d24a DOC ASCII only in docstrings
As discussed on the mailing list.
2013-08-28 18:22:57 +02:00
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03:00
Jaques Grobler 2ffb484adb COSMIT pep8 2013-05-04 10:43:39 +02:00
Mikhail Korobov eae18a3784 PY3 fix metaclasses. See #1829. 2013-04-04 01:07:20 +06:00
Andreas Mueller e369c4339d COSMIT remove unused imports, pep8 2013-01-26 18:26:20 +01:00
Lars Buitinck 07c56d7cd2 COSMIT rm deprecated stuff
One more deprecated feature to go in FastICA; not sure how to handle
that one.
2013-01-22 19:45:27 +01:00
Andreas Mueller 9e3ef3985e DOC some sphinx fixes 2013-01-16 22:51:24 +01:00
Andreas Mueller 754c2d9533 COSMIT pep8 2012-12-22 16:48:17 +01:00
Andreas Mueller 92138a4258 COSMIT pep8 2012-11-10 14:02:29 +00:00
Immanuel Bayer b32fc9c791 ENH renaming 'max_iters' to 'max_iter' for consistency 2012-11-04 10:01:12 +00:00
Vlad Niculae 7f76aa1def Add __all__ for half of the scikit 2012-09-04 18:00:49 +01:00
Andreas Mueller 21c0d1a786 ENH make BaseLabelPropagation abstract base class, make OutlierDetectionMixin not inherit from ClassifierMixin 2012-06-26 14:16:04 +02:00
Andreas Mueller 58148a2470 FIX get rid of some doctest errors (with the stricter nosetester) 2012-03-17 23:54:36 +01:00
Andreas Mueller 8bdf267bfa COSMIT pep8 2012-02-02 17:29:08 +01:00
Olivier Grisel 23f61ae5d4 docstring cosmits and typos in label_propagation.py 2012-02-02 15:02:33 +01:00
GaelVaroquaux b1e82a0d42 BUG: fix tests under numpy 1.5 2012-02-02 13:38:21 +01:00
GaelVaroquaux 649bbcee04 BUG: fix typo in tests 2012-02-02 12:59:25 +01:00
GaelVaroquaux b774b27b60 TEST: assert -> nose.tools.assert_equal 2012-02-02 11:10:51 +01:00
GaelVaroquaux 010b5d1ff2 Cosmits 2012-02-02 11:05:03 +01:00
GaelVaroquaux adc5201a16 COSMIT: authorship and licensing info 2012-02-02 10:55:32 +01:00
Clay Woolam 86a3de73cc corrected the documentation and add semi-supervised section to the user
guide
2012-02-01 17:27:13 -08:00
Clay Woolam ee4dd2e2af fixed bug causing error on sparse input data 2012-01-30 22:25:09 -08:00
Clay Woolam c07a0413e2 added AISTAT ref to docs 2012-01-29 15:49:36 -08:00
Clay Woolam 729a4c2fc2 fixed typo in test code 2012-01-29 11:54:36 -08:00
Clay Woolam 900c97fe51 doc updates & tweaks 2012-01-29 11:49:33 -08:00
Clay Woolam c5aed1d4d1 added __init__.py file to semi_supervised folder 2012-01-28 12:08:19 -08:00
Clay Woolam 268aed6b42 TL directory change to push label propagation code into semi_supervised 2012-01-22 21:13:56 -08:00