Commit Graph

247 Commits

Author SHA1 Message Date
Thomas J. Fan d4aad64b1e
MNT Update to black 22.3.0 to resolve click error (#22983)
* MNT Update to black 22.3.0 to resolve click error

* STY Update for new black version
2022-03-29 12:04:41 +02:00
yiyangq 2c5058e0d6
TST Replace pytest.warns(None) in feature_extraction/tests/test_text.py (#22962) 2022-03-27 14:37:40 -04:00
Dimitri Papadopoulos Orfanos 3d4ee9e9dc
MNT Remove utf-8 encoding declarations (#21260)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-14 17:59:36 +01:00
Jérémie du Boisberranger d135a0f8db
MNT additional cleaning in test for 1.1 (#22661) 2022-03-03 10:31:02 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Thomas J. Fan 4ff0767087
ENH Better error message for check_scalar (#22218)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-11 16:15:30 +01:00
Thomas J. Fan 9f85c9d449
TST Better info when checking for no warnings in tests (#22362) 2022-02-03 11:42:48 +01:00
Hannah Bohle 4b5ea125ed
FIX Remove validation in FeatureHasher's __init__ (#21573)
Co-authored-by: Maren Westermann <maren.westermann@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-12-14 18:51:22 +01:00
Guillaume Lemaitre 63a1a31a17
FIX TfidfVectorizer should not assign in __init__ (#21832) 2021-12-09 15:37:15 -05:00
Guillaume Lemaitre 1ce5589c1b
TST do not skip test if not PyPy (#21834) 2021-11-30 15:02:27 +01:00
Olivier Grisel dd3d034c3e
MAINT lower memory usage of test_pickling_vectorizer (#21550) 2021-11-04 11:47:38 +01:00
Jérémie du Boisberranger 7aabe53e73
FIX CountVectorizer: check upper case in vocab only in fit (#21251) 2021-10-20 17:16:32 +02:00
Alek Lefebvre c9525d1600
FIX raise error for max_df and min_df greater than 1 in Vectorizer (#20752)
Co-authored-by: Alek Lefebvre <info@aleklefebvre.ca>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-12 22:56:05 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Thomas J. Fan 4abd9f2d9e
API Implements get_feature_names_out for transformers that support get_feature_names (#18444)
Co-authored-by: Andreas Mueller <andreas.mueller@columbia.edu>
Co-authored-by: Andreas Mueller <andreasmuellerml@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-09-07 10:56:57 +02:00
bthirion 0cd6664b11
FIX take into account mask in the ordering in grid_to_graph (#18964) 2021-08-30 10:04:44 +02:00
Jeff Zhao 64d54483ed
FIX raise a TypeError when the values type is not supported in DictVectorizer (#19520)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-07-30 17:46:18 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Jérémie du Boisberranger 777ac15e67
MNT add n_features_in_ through the feature_extraction module (#20180) 2021-06-01 19:14:04 +02:00
Alihan Zihna aa898de885
TST Changes assert to pytest style in svm, manifold, linear_model, feature_extraction, decomposition (#19999)
Changed the assert_raises, assert_raise_message, assert_warns in the following files:

* test_factor_analysis.py
* test_text.py
* test_bayes.py
* test_ransac.py
* test_sag.py
* test_locally_linear.py
* test_bounds.py
* test_sparse.py
* test_svm.py
2021-05-22 20:55:22 +02:00
Guillaume Lemaitre eecde00c7a
FIX support multiple str/single category with dense DictVectorizer (#19982) 2021-04-27 11:38:53 +02:00
Zito Relova cc13313b26
TST remove assert_warns in feature_extraction/tests/ module (#19439) 2021-02-18 16:43:54 +01:00
Zito Relova 769da3d51f
FIX CountVectorizer does not check for lowercase in vocabulary (#19401) 2021-02-12 10:03:39 +01:00
Thomas J. Fan 863c552c44
CLN Fixes PendingDeprecationWarning in CountVectorizer (#19299)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-01-30 13:33:27 +01:00
Olivier Grisel d626d77850
Add @fails_if_pypy to test_nonnegative_hashing_vectorizer_result_indices (#19173) 2021-01-14 16:35:59 +01:00
ly648499246 1bb0306a13
FIX An overflow issue in HashingVectorizer (#19035)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: amzliun <amzliun@amazon.com>
2021-01-11 22:29:05 -05:00
Erin R Hoffman 05ce8141bc
FIX raise an error in CountVectorizer with a custom token pattern that captures several group (#15427)
Co-authored-by: Gangesh Gudmalwar <gangesh.gudmalwar@team.telstra.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-10-21 12:43:45 +02:00
Chiara Marmo 320b4c61f9
FEA Add iterable values support for dictvectorizer (#17367)
Co-authored-by: Peng Yu <peng.yu@shopify.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
2020-08-01 22:10:36 +10:00
Thomas J. Fan 06bb4864e6
FIX Fixes CountVectorizer sample invariance with max_features (#18016) 2020-07-28 13:49:32 +02:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Nicolas Hug ac8cbb3799
[MRG] More deprecation for 0.24 (#17142)
* normalize_components in sparsePCA

* changed default strategy of Dummy to prior and removed outputs_2d ttribute

* removed usage of None to drop estimator in ensemble and behaviour param of IsolationForest

* remove support for drop=None in Voting

* removed some warning decorators

* remove feature_extraction.extract_patches

* removed VectorizerMixin and copy parameter from TFIDFVectorizer

* kernel.set_params now raises attributeerror

* removed fig from plot_partial_dependence

* removed iid parameter of search estimators

* removed brier_scorer

* raise error in split when shuffle is False and random_state is not None

* removed MultiOutputEstimator

* removed base classes of NaiveBayes

* removed drop from pipeline

* removed utils in random_projection

* removed presort and classes_ in trees

* flake8

* fixed some tests

* flake

* fixed docstring

* fixed other one

* some left

* mmmm
2020-05-20 16:04:14 -04:00
Thomas J Fan e770715c43
MNT Completes position arg deprecation (#17272)
* ENH Adds public functions with position args warning

* BUG Circlar import

* STY

* BUG Add keywords

* BUG Fixes warnings

* ENH Adds other public functions

* CLN Suggestion

* CLN Suggestion

* REV Revert pairwise

* ENH Positoinal args for compute_class_weight
2020-05-19 09:07:25 +02:00
Adrin Jalali 6cd77c2c50
API make feature_extraction's constructors' params kwonly (#16866) 2020-04-15 12:11:26 -04:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Roman Feldbauer 9b39c4c4d2
TST Fix unreachable code in tests (#16110) 2020-02-16 14:41:26 +01:00
Adrin Jalali 42706ebf2d
MNT CI dropping python-3.5 (#15106)
* dropping python-3.5

* fix install guide

* fix setup.py

* fix circleci

* advanced_installation

* index.html

* readme

* pyparsing.py

* remove clean_warning_registry

* 1.13.1 and 1.19.1

* don't use 16.04

* 18.04 libatlas-dev -> libatlas-base-dev

* min pillow version for 3.6 is 4.2.1

* echo commands

* fix conflict, and 32 bit

* fix conflict for circle

* fix scikit-image version dep

* mark tests as xfail on 32bit py3.6

* move to 1.13.3 min numpy version, and simplify old code

* remove the rest of _object_dtype_isnan usages

* Revert "remove the rest of _object_dtype_isnan usages"

This reverts commit c6e867ea1f.

* fix issues raised by jeremy

* minor fix

* minor fixes mentioned by Olivier
2020-02-10 12:28:42 +01:00
Adrin Jalali 5c36df6098 MNT remove check for deprecated behavior in test.py (#16109) 2020-01-24 14:45:47 +01:00
Thomas J Fan 9accce5519 BUG Adds attributes back to check_is_fitted (#15947)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2019-12-27 11:46:27 +01:00
Nicolas Hug 19ad136223 MNT Replace DeprecationWarning with FutureWarning (#15080)
* bruteforce renaming

* WIP

* WIP

* some more

* removed weird line

* update -Werror

* testiforest

* again

* Fixed some tests

* fixed some tests

* removed -Werror

* fixed test_docstring_param issue

* fixed some tests

* some more

* renamed to SklearnDeprecationWarning

* pep8

* updated docs

* pep8

* merge

* changed to FutureWarning

* fixes

* Update doc/developers/tips.rst

Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>

* avoid duplicates

* fixed warning for deprecations

* Still make CI break if DeprecationWarning isn't caught

* updated one warning

* fixed test

* fixed some renamings

* updated new dep warnings

* fixed bad import

* ignore warnings

* update again

* ignore futurewarning when walking packages

* Fixed test

* pep8

* Added whatsnew
2019-10-29 15:39:26 +01:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Thomas J Fan bb3b3f9261 MNT Make modules private in feature_extraction (#15321) 2019-10-25 16:41:13 -04:00
Thomas J Fan fbfb4da6b3 TST/CI Fixes import for hashing test for PyPy (#15170) 2019-10-13 14:43:40 +02:00
Roman Yurchak 4ef679b082 TST Fix PyPy CI due to _hashing import in #14605 2019-10-10 12:16:30 +02:00
Thomas Schmitt 9b045d4bde MNT Add seed parameter to private FeatureHasher transform helper (#14605) 2019-10-07 09:10:42 -04:00
Daniel Grady aada3ead7e FIX a bug in feature_extraction.text.strip_accents_unicode (#15100) 2019-10-03 16:38:54 +02:00
getgaurav2 96ef6b80ba ENH text vectorizers should raise warnings when user params will be unused (#14602) 2019-09-06 11:08:38 +10:00
Samesh Lakhotia a05c8d89d9 MNT Fix assert raises in sklearn/feature_extraction/tests/ (#14694) 2019-08-21 15:36:35 +08:00
Andreas Mueller 92af3dabbb MAINT simplify check_is_fitted to use any fitted attributes (#14545) 2019-08-13 22:09:07 +02:00
Guillem García Subies deec2baf00 [MRG] Deprecated 'copy' in TfidfVectorizer.transform (#14520)
* Deprecated 'copy' in TfidfVectorizer.transform

* Update text.py

* Update text.py

* Update text.py

* Added test

* Update sklearn/feature_extraction/tests/test_text.py

Co-Authored-By: Andreas Mueller <t3kcit@gmail.com>

* Update test_text.py

* Update test_text.py

* Update text.py

* Update text.py

* Update text.py

* Update v0.22.rst

* Update doc/whats_new/v0.22.rst

Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>

* Update test_text.py

* Update text.py

* Update text.py

* Update text.py

* Update test_text.py

* Update doc/whats_new/v0.22.rst

Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>

* Update v0.22.rst
2019-08-07 12:20:41 -04:00