Commit Graph

67 Commits

Author SHA1 Message Date
Camilo Lamus bf81451dc6 Fix consistency in docs and docstring 2016-03-11 17:04:36 -05:00
Camilo Lamus 2e7d9ad3a4 FIX: improve docs of randomized lasso 2016-03-11 17:04:36 -05:00
giorgiop 140a5acda8 MAINT depr of center_data, normalize in linear_model 2016-02-17 14:26:50 -05:00
saurabh.bansod 4022c68031 minor fix in RandomizedLasso API docs 2016-01-23 16:37:36 +05:30
Nick James 998848a22e fix for #5725 (makes sure numpy array is not compared to string, which will fail in future versions of numpy) 2015-11-16 13:23:36 -08: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
Raghav R V a87011262a FIX precision to float64 across the codebase 2015-10-16 11:20:29 +02:00
Olivier Grisel f1c5924b36 ENH better error message for estimators with ensure_min_* checks 2015-10-01 14:44:05 +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
Andreas Mueller 434ee958aa test for accepted sparse matrices 2015-08-26 22:00:55 -04:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Andreas Mueller cd5166e82f make check_array convert object to float.
fix dtype check, add test. unfriend all multi-output estimators on facebook.

try to fix what is happening to y (by doing nothing to y)

make test work...

Make everything accept object y or say "invalid label"

fix multioutput linear models

add test for sensible error message.
2015-02-15 12:13:41 -05:00
Raghav R V abd31d2cad MAINT Make uniform the error raised for not fitted condition 2015-01-12 00:33:40 +05:30
trevorstephens 7c50e6c8eb various docstring fixes for web docs 2014-11-30 17:59:42 -08:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10:00
Andreas Mueller 6e2a83b4e1 remove check_arrays stuff and old input validation 2014-07-20 13:31:45 +02:00
Gael Varoquaux e42ecd1466 ENH: transformers work on non ndarray subclasses 2014-07-17 11:44:08 +02:00
Andreas Mueller d146d23d93 Catch ConvergenceWarning in RandomizedL1 2014-07-16 15:55:09 +02:00
Lars Buitinck cdd2279c09 ENH fix astype usage to prevent copying
Removed where possible; using copy=False (from utils.fixes) where needed.

Also some C integer type fixes to gradient boosting.
2014-06-18 11:01:28 +02:00
Andrew Ash 57f906f63c Typo: thepath -> the path 2014-04-21 11:26:00 +01: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
jnothman a36c72a8be DOC fix documentation to match default value 2014-01-20 10:43:30 +11:00
Denton Cockburn fc7aeee8d6 DOC missing stuff in randomized_l1 module
Fixes #2092.
2013-06-30 14:17:46 +02:00
Jaques Grobler 89f29ba8da DOC Fix references to missing examples 2013-05-22 11:13:59 +02:00
Jaques Grobler 2ffb484adb COSMIT pep8 2013-05-04 10:43:39 +02:00
Robert Layton dacfd8bd5d DOC: Replaced all BSD style licenses with "BSD 3 clause"
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!

Removed duplicate "3 clause, 3 clause"

Removed trailing period if exists

Fixed some missed licences, still about 50 to do, but those can be automated

Think I got the last of them.

Apparently me and sed have different ideas of regex.

Found a few more
2013-04-30 08:34:46 +02:00
Stefano Lattarini 67ece78da4 COSMIT various typofixes
As suggested by codespell <https://github.com/lucasdemarchi/codespell>

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
2013-04-11 21:22:14 +02:00
Mikhail Korobov eae18a3784 PY3 fix metaclasses. See #1829. 2013-04-04 01:07:20 +06:00
Andreas Mueller a1d4d184fe COSMIT pep8 2013-04-02 13:30:55 +02:00
Lars Buitinck cdb9ef2d58 COSMIT prevent a copy in randomized LR
Also remove some superseded Py3 compat code.
2013-03-17 12:30:17 +01:00
Olivier Grisel 1967a0b323 P3K use six to have a python 2 & 3 compatible code base 2013-02-09 18:08:44 +01:00
Lars Buitinck 57b86fc434 P3K use six.string_types and six.PY3 2013-02-03 20:12:42 +01:00
unknown c44d63cc31 changed wording in linear model docs about Normalized. It was frustrating me haha 2013-01-29 11:32:48 -05:00
Andreas Mueller 754c2d9533 COSMIT pep8 2012-12-22 16:48:17 +01:00
Andreas Mueller a06c367ba2 ENH sparse matrix support in randomized logistic regression 2012-10-16 14:34:48 +02:00
Andreas Mueller 2ec38b31e1 ENH rudimentary testing of tranformer objects 2012-09-01 18:25:05 +02:00
Andreas Mueller 1aaa7ac140 TST check that transformers fail gracefully on sparse input 2012-08-26 16:01:33 +02:00
Andreas Mueller 66d00f4748 MISC trying to remove scale_C 2012-05-05 21:57:04 +02:00
Andreas Mueller 667ef37714 DOC move references from Notes to References section in docstrings 2012-03-04 15:16:51 +01:00
GaelVaroquaux b81b25eb16 Faster hierarchical cluster for very dense trees
On the specific example on which I am working this change went from
26.11s to 0.86.
2012-02-25 21:02:45 +01:00
GaelVaroquaux 2722feab0e ENH: parallel in lasso_stability_path 2012-02-06 16:32:19 +01:00
GaelVaroquaux 71fb671c10 MISC: fix broken link to example 2012-02-06 12:18:21 +01:00
Andreas Mueller 2588a3cd06 DOC more fixes in Docs 2012-01-31 21:55:31 +01:00
Andreas Mueller a77f9edfee DOC fix sphinx errors 2012-01-31 21:40:17 +01:00
GaelVaroquaux a882bedcc3 MISC: address @ogrisel and @mblondel's comments 2012-01-31 18:11:05 +01:00
Alexandre Gramfort 023d8e3366 pep8 2012-01-31 18:10:43 +01:00
Alexandre Gramfort 41a48638ec ENH : early stopping in lasso_stability_path (faster) 2012-01-31 18:10:43 +01:00
GaelVaroquaux 2b1df1fb19 ENH: grid in terms of alpha/alpha_max
And rework example
2012-01-31 18:10:43 +01:00
GaelVaroquaux e1dacc6f1d BUG: parameter was not set right 2012-01-31 18:10:42 +01:00
GaelVaroquaux d99e27af97 MISC: inherit from BaseClassifier 2012-01-31 18:10:42 +01:00