Commit Graph

312 Commits

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos ee5a1b69d1
DOC, MNT Typos found by codespell (#22906) 2022-03-20 19:16:39 +01: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
Thomas J. Fan f1d3417b08
MNT Drops Python 3.7 in CI, wheel building, and docs (#22617)
* MNT Drops Python 3.7

* MNT Bump NumPy and SciPy

* FIX Fix build

* FIX Bump versions improved

* DOC Fixes numpy version [pypy]

* BLD [pypy] [icc-build]

* Update docs

* MAINT use scipy.optimize.LinearConstraint in test

* MAINT scipy 1.1.0 related code clean-up

* scipy>=1.3.2 in pyproject.toml's build deps

* [cd build]

* DOC Adds comment about pypy

* MAINT remove _astype_copy_false

* FIX Update check for python version in setup.py

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-02-28 18:23:02 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Guillaume Lemaitre 63a1a31a17
FIX TfidfVectorizer should not assign in __init__ (#21832) 2021-12-09 15:37:15 -05:00
Angus L'Herrou 80ebe21ec2
DOC Fix docstring for ngram_range parameter in Vectorizers (#21844) 2021-11-30 17:19:29 -05: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 10a5468e90
DOC Remove some str/unicode leftovers from Python 2 (#21270)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-08 13:55:15 +02:00
Shao Yang Hong 8ad7c3f02d
DOC Clarify use_idf in TfidfTransformer/TfidfVectorizer docstrings (#21213) 2021-10-07 17:42:58 +02:00
Helder Geovane Gomes de Lima 31c66a9c09
DOC Remove unused import from example (#21253) 2021-10-06 10:21:15 -04:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
EricEllwanger 32c5d05cbd
DOC - Ensure HashingVectorizer passes numpydoc validation (#21047)
Co-authored-by: frellwan <frellwan@hotmail.com>
2021-09-15 13:34:40 +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
Thomas J. Fan cfc1695dec
BUG Corrects tag in TfidfTransformer (#20919) 2021-09-03 11:08:21 +02:00
Olivier Grisel 1398738f1b
Missing feature_names_in_ in tf-idf transformer's docstring (#20846) 2021-08-26 12:36:17 -04:00
JVM 1db03ce68b
DOC Ensures numpydoc validation for CountVectorizer and TfidfVectorizer/Transformer (#20403)
Co-authored-by: Joao Vitor Mascarenhas <joaovitormascarenhas@MacBook-Pro-de-Joao.local>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-20 19:00:10 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Tomás Moreyra 9682692560
DOC Ensures that TfidfTransformer passes numpydoc validation (#20379)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-06-26 21:37:33 +02:00
Juan Martin Loyola 0ad2b5b0a9
Remove unused variables in TfidfTransformer's transform method (#20302) 2021-06-18 20:17:32 +02:00
Thomas J. Fan 351ace7935
STY Uses black's with target_version >= 3.7 (#20294) 2021-06-17 15:50:27 -04:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Guillaume Lemaitre 95afec8742
TST create instances from exotic estimators for docstring params check (#20243)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-11 18:38:22 +02: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
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04: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
Thomas J. Fan 6a9c2869d2
DOC Fixes formating in feature_extraction module (#19274) 2021-01-27 10:48:00 +01: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
N. Haiat 896d4fad10
DOC Fix documentation of default values in sklearn.feature_extraction.text.py (#18360)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-24 11:21:56 -04:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Thomas J. Fan 06bb4864e6
FIX Fixes CountVectorizer sample invariance with max_features (#18016) 2020-07-28 13:49:32 +02:00
Probinette4 e51a8ddb42
DOC update to text/CountVectorizer token_pattern parameter default value (#17898)
* Updated documenation in CountVectorizer function for the token_parameter default value

* Removed the r before the string, error in flake8

* Additional change to see if flake8 error solved

Co-authored-by: Preston <pkrobinet@presby.edu>
2020-07-12 12:03:26 -04:00
yagi-3 58168178e7
DOC Update preprocessor in CountVectorizer (#17413) 2020-06-01 16:03:23 -04: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
Ekaterina Borovikova 4755ae76d2
DOC Add versionchanged and versionadded for v0.20 (#16199)
Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>
Co-Authored-By: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>
2020-04-26 09:29:36 -04:00
Adrin Jalali 6cd77c2c50
API make feature_extraction's constructors' params kwonly (#16866) 2020-04-15 12:11:26 -04:00
Baptiste Maingret 1735d3df7f
DOC Improve CountVectorizer and TfidfVectorizer return type (#16790) 2020-04-05 11:38:02 +02:00
Lukas Kemkes 2a5d40f5d1
DOC Correct formula in TfidfTransformer docstring (#16699) 2020-03-16 10:57:17 +01:00
Adrin Jalali 5c36df6098 MNT remove check for deprecated behavior in test.py (#16109) 2020-01-24 14:45:47 +01:00
@nkish 07ceb6e255 DOC follow doc guideline in ensemble an feature_extraction modules (#15975) 2020-01-03 15:32:54 +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
Guillaume Lemaitre 9408203ac4 COSMIT use np.iinfo to define the max int32 (#15960) 2019-12-24 09:41:21 +01:00
Thomas J Fan 13134a884b Fix imports in pip3 ubuntu by suffixing affected files (#15891) 2019-12-18 10:09:48 +08:00
Santiago M. Mola 7ee0ae861b ENH CountVectorizer: sort features after pruning by frequency (#15834) 2019-12-10 14:01:30 +01:00
Hailey Nguyen 25a88b4a2b DOC docstrings validation in TfidfVectorizer (#15509) 2019-11-15 21:32:17 +01:00
Mina Naghshhnejad 859953023f DOC CountVectorizer documentation update (#15498) 2019-11-13 21:10:38 +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
Thomas J Fan bb3b3f9261 MNT Make modules private in feature_extraction (#15321) 2019-10-25 16:41:13 -04:00
federicopisanu 1edecd695b DOC example for feature_extraction.text.TfidfTransformer (#15199) 2019-10-13 14:07:51 +02:00