Commit Graph

323 Commits

Author SHA1 Message Date
Andreas Mueller 1c41368bac [MRG+1] Uncontroversial fixes from estimator tags branch (#8086)
* some bug fixes.

* minor fixes to whatsnew

* typo in whatsnew

* add test for n_components = 1 transform in dict learning

* feature extraction doc fix

* fix broken test

* revert aggressive input validation changes

* in SelectFromModel, don't store threshold_ in transform. If we called "fit", use estimates from last "fit".

* move score from EllipticEnvelope to OutlierDetectionMixin

* revert changes to Tfidf documentation

* remove dummy input validation from whatsnew

* fix text feature tests

* rewrite from_model threshold again...

* remove stray condition

* fix self.estimator -> estimator, slightly more interesting test

* typo in comment

* Fix issues in SparseEncoder, add tests.
more explicit explanation of SparseEncoder change, add issue numbers to whatsnew

* minor fixes in whats_new.rst

* slightly more consistency with tuples for shapes

* not longer typo
2017-06-06 16:34:47 +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
Guillaume Lemaitre e3c9ae204f [MRG+1] DOC improve description and consistency of random_state (#8689)
* DOC improve description of random_state in train_test_split

* DOC Make random_state consistent through documentation

* FIX reverse doc mistake

* FIX address comment of Tom

* DOC address comments

* DOC remove empty line

* DOC remove unecessary white spaces
2017-04-05 17:43:21 -07:00
Charlie Brummitt c5ccb72d77 Fix typo: "continious" (#8685)
Change "continious" to "continuous" in the "See also" section of the docstring of `SelectKBest`
2017-04-01 20:29:45 +02:00
Sarah Brown 5210f810f7 [MRG+2] addresses #8509 improvements to f_regression documentation (#8548)
* clarify role of the function and streamline introduction

* added feature selection methods to see also

* completed see also

* fixed pep related formatting for flake8checks.

* fixed extra whitespace flake8 problems, remaining failure is a copied see all line from another function, the line is over by a period, does not make sense to newline that.

* one more whitespace

* FIX small pep8 error.
2017-03-07 17:39:45 +11:00
Tahar 6f771d5186 [MRG] Remove unnecessary backticks around parameter name in docstrings (#8432) 2017-02-22 16:17:04 +01:00
Guillaume Lemaitre aaebee1f6b FIX Issue #8173 - pass n_neighbors in MI computation (#8181) 2017-01-19 17:37:05 +01:00
Daniel LeJeune 456fb5697f [MRG + 2] Allow f_regression to accept a sparse matrix with centering (#8065)
* Updated centering for f_regression

Allows f_regression to accept a sparse matrix when centering=True.

* Fixed E226 spacing issue.

* Added f_regression sparse update to whats_new.rst
2016-12-20 14:23:32 +01:00
Andreas Mueller 5c4b1bb231 [MRG+1] Housekeeping Deprecations for v0.19 (#7927)
* remove stuff to be removed 0.19

* more changes

* remove classes from 0.19 whatsnew

* remove _LearntSelectorMixin

* remove ProjectedGradientNMF, load_lwf_*

* minor fixes

* remove more copy from logistic regression path

* remove lda, qda from __init__.__all__

* remove pg solver in nmf from tests etc

* remove class_weight="auto" from tests

* doctest change for decision_function_shape="ovr"

* remove transfrom from tree test, minor fixes to tree tests

* some fixes in the tests

* undo changes in functions which still allow 1d input...

* also allow 1d in scale

* more test fixes...

* last test fixes in forest and tree

* svm default value change doctest failures

* pep8

* remove more class_weight="auto" stuff

* minor cosmetics in docstrings deprecated / removed behavior.

* say that store_covariance has been moved to __init__ in discriminant_analysis
2016-12-09 12:43:38 -05:00
Andreas Mueller 9dfe0189fa TST do the warning test as we do it in other places. (#7858) 2016-11-16 20:17:14 +11:00
Andreas Mueller 9667ff292f [MRG + 2] Fixed parameter setting in SelectFromModel (#7764)
* Fixed cloning ``estimator`` again when calling fit a second time in SelectFromModel

* fix link in whatsnew
2016-11-09 20:34:04 +01:00
Arthur Douillard 2ddf0ce633 [MRG + 1] rfecv: verbosity: Set verbose threshold low bound from 2 to 1 (#7644)
* rfecv: verbosity: Set verbose threshold low bound from 2 to 1

* rfecv: verbosity: Add test checking verbose=1 produce output

* rfecv: verbosity: Change docstring to comment

* rfecv: verbosity: Fix test, missing seek
2016-10-31 08:50:35 -07:00
Antoine Wendlinger 74a9756fa7 [MRG+2] Norm inconsistency between RFE and SelectFromModel (was _LearntSelectorMixin) #2121 (#6181)
* Norm inconsistency between RFE and SelectFromModel (was _LearntSelectorMixin) #2121

* safe_pwr utility

* Norm fix

* Removed safe_pwr

* 1D arrays support for norm fix

* Test case for 2d coef in SelectFromModel

* Fix numpy version requirement for norm fix

* Implement fixes suggested by @jnothman

* Add numpy version requiring the fix.
2016-10-24 14:01:49 -04:00
affanv14 ee3e61754b [MRG+2] adding multilabel support for score_func (#7676)
* added multilabel support for score function

* added test for multilabel score function

* updated whats_new.rst

* updated whats_new.rst with working link
2016-10-20 13:08:23 -04:00
Meng, Peng 2caa1445fb [MGR + 2] fix selectFdr bug (#7490) 2016-10-20 13:06:32 +11:00
Konstantin Podshumok 9b2aac9e5c [MRG + 1] [TST] (half-cosmetic) use less nose.tools import to simplify future transition to py.test (#7384)
* use less nose.tools import to simplify future transition to activly developing test suites/runners

* assert_equal -> assert_array_equal in test_feature_hasher_pairs_with_string_values

and one missed ImportError that should be replaced with AttributeError

* test for py2.6 compat with except AttributeError

* fix importing of SkipTest

* force using nose in python2.6 for now

* there was no assert_dict_equal in py2.6. but we can use assert_equal

although failed test will look a little bit ugly

* remove nose imports from doc/datasets
2016-10-07 12:46:52 -04:00
Charlton Austin ec32689ae9 [MRG+1] Fixing error with step parameter #7467 (#7469)
* Fixing error with step parameter #7467. Basically converting the step parameter the same way RFE does.

* Adding in an explanation to the test case.

* Moving the location of where we set the data.

* Adding in an assertion against the data.
2016-09-29 20:41:43 -07:00
fukatani 3a106fc792 Fix _get_importances. (#7487)
Not to use hasattr.
2016-09-25 11:48:04 -07:00
Joel Nothman 62ad5fed90 FIX Revert unintentionally committed code 2016-09-08 18:47:02 +10:00
Joel Nothman 22e43054fc TST fix test to match altered deprecation msg 2016-09-08 10:29:06 +10:00
Gael Varoquaux 91129f35e5 Merge pull request #7119 from jrfiedler/remove-unused-imports
[MRG] Removed unused imports
2016-08-01 16:17:18 -07:00
Joel Nothman 9539c0c00e [MRG + 1] ENH show no warning with chi2 of empty feature (#6978)
* ENH show no warning with chi2 of empty feature

* TST better error message when warnings raised

* TST fix test in old Numpy where another warning is issued
2016-07-31 09:35:19 +02:00
James Fiedler e4b837cc66 Removed unused imports 2016-07-29 19:30:23 -05:00
Nate George 9b25f5d37a Fix docs links (#7005)
* docs: fix broken and redirect links

see #7000

* docs: fix links

see #7000

* docs: merge with master

* docs: fix fnrs and tinyclues logo links

* docs: fix link reference in text

* docs: fix typo

* docs: added back in metaoptimize-qa paragraph

* docs: update language for defunct site

* docs: update stackexchange section

* docs: remove defunct site, move quora to top

* docs: remove defunct link and rearrange links
2016-07-27 16:58:25 -04:00
Francis T. O'Donovan fe03879cd3 Fix doc refs to StratifiedKFold and KFold (#6936)
Fix links to `StratifiedKFold` and `KFold` in docstrings.
2016-06-28 09:22:05 +02:00
Ping-Yao, Chang 1f76574b96 Add description about default score_func 2016-05-31 23:26:25 -07:00
Mark Szepieniec 0a094b90e8 Fix grammar bug in docstring of SelectFromModel 2016-04-06 17:37:40 +01:00
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
MechCoder 528533dab7 MAINT: Simplify n_features_to_select in RFECV 2016-03-21 01:16:04 -04:00
Lars Buitinck 2e4aafd19c MAINT remove my email address
I'm getting too many individual support requests. People should
use the mailing list.
2016-03-04 10:43:41 +01:00
Andreas Mueller e6cc86172b fix floating point indexing in generic univariate 2016-02-15 14:09:18 +01:00
dsquareindia 71ec574a3f DOC: Fix redundant doc for f_regression. 2016-02-10 13:25:58 -05:00
Nikolay Mayorov daa73c7429 BUG: Remove non-ASCII symbols from mutual_info_.py 2016-01-22 00:27:17 +05:00
Nikolay Mayorov a36edf2a3d DOC: Modify SelectKBest and SelectPercentile docstrings slightly 2016-01-22 00:27:17 +05:00
Nikolay Mayorov e1bc05628a MAINT: Add a clarification comment in mutual_info_.py 2016-01-22 00:27:16 +05:00
Nikolay Mayorov b48a10870a DOC: Add one more reference for mutual info methods 2016-01-22 00:27:16 +05:00
Nikolay Mayorov 5b3f51515b MAINT: Get rid of classes in test_mutual_info.py 2016-01-22 00:27:16 +05:00
Nikolay Mayorov 094a077af5 MAINT: Small refactoring in mutual_info_.py 2016-01-22 00:27:16 +05:00
Nikolay Mayorov d60636a4a8 DOC: Small fixes in mutual_info_.py documentation 2016-01-22 00:27:16 +05:00
Nikolay Mayorov 375b070263 TST: Speed up 2 tests related to mutual info 2016-01-22 00:27:16 +05:00
Nikolay Mayorov d3a497aec4 BUG: Fix copy logic for mutual info functions 2016-01-22 00:27:16 +05:00
Nikolay Mayorov ec172895f8 DOC: Add short descriptions of methods for mutual info estimation 2016-01-22 00:27:16 +05:00
Nikolay Mayorov 786999258d MAINT: Slightly improve copy logic in _estimate_mi 2016-01-22 00:27:16 +05:00
Nikolay Mayorov 051d3a285d MAINT: Slightly improve logic of discrete-continuous MI estimation 2016-01-22 00:27:16 +05:00
Nikolay Mayorov ffc4fe91da TST: Change tolerance checks in test_mutual_info.py 2016-01-22 00:27:16 +05:00
Nikolay Mayorov ad2f5f5275 MAINT: Add check_classification_targets to mutual_info_classif 2016-01-22 00:27:15 +05:00
Nikolay Mayorov 8394c1bfcc MAINT: Add blank lines between parameters in mutual_info_.py 2016-01-22 00:27:15 +05:00
Nikolay Mayorov 835102ab6a API: Split mutual_info into _regression and _classif 2016-01-22 00:27:15 +05:00
Nikolay Mayorov c1aea3f868 MAINT: Renamed module mutual_info to mutual_info_ 2016-01-22 00:27:15 +05:00
Nikolay Mayorov 0245fc8aec MAINT: Use six.moves.zip in mutual_info 2016-01-22 00:27:15 +05:00