Thomas J. Fan
d400723a21
FEA Add DecisionBoundaryDisplay ( #16061 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-29 16:36:31 +02:00
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
Christian Lorentzen
75a94f518f
ENH migrate GLMs / TweedieRegressor to linear loss ( #22548 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-28 19:20:01 -04:00
Jihane
d14fd82cf4
ENH Preserving dtypes for ICA ( #22806 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-03-28 18:07:53 +02:00
Guillaume Lemaitre
8cdeb8010c
FIX make coef_ in PLS estimator consistent with linear models ( #22016 )
...
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-28 17:27:21 +02:00
Joseph Schwartz-Messing
511b5f5d9e
DOC fix typo ( #22958 )
2022-03-26 13:50:32 +01:00
Thomas J. Fan
cb547ae5d1
DOC Makes Sphinx reference to Bunch a class ( #22948 )
2022-03-25 22:27:51 +01:00
Gael Varoquaux
48f363f35a
DOC Update comms team ( #22942 )
...
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-03-25 14:36:30 +01:00
Varun Agrawal
ea0571f737
FIX Fix recall in multilabel classification when true labels are all negative ( #19085 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-03-25 13:07:54 +01:00
Christian Lorentzen
bf0ece817d
ENH add sample_weight to sparse coordinade descent ( #22808 )
2022-03-25 11:09:28 +01:00
Thomas J. Fan
4408dfb86b
FIX Removes warning in HGBT when fitting on dataframes ( #22908 )
2022-03-25 10:56:49 +01:00
Thomas J. Fan
c3f81c1d48
FIX PowerTransformer Yeo-Johnson auto-tuning on significantly non-Gaussian data ( #20653 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2022-03-24 17:42:02 +01:00
Maxwell
e5736afb31
API Deprecate max_feature=`auto` for tree classes ( #22476 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-23 17:59:23 +01:00
Thomas J. Fan
51fddb7fdc
ENH Adds encoded_missing_value to OrdinalEncoder ( #21988 )
2022-03-23 13:26:34 +01:00
Jérémie du Boisberranger
d76f87c8eb
Fix Ridge sparse + sample_weight + intercept ( #22899 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-22 20:15:54 +01:00
Gabriel Stefanini Vicente
ffa0898d5a
API Add data_transposed argument and warning to make_sparse_coded_signal ( #21425 )
...
Co-authored-by: Andreas Mueller <t3kcit@gmail.com>
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 16:01:42 +01:00
Meekail Zain
db24a30bd3
ENH Allow `SelectFromModel`'s `max_features` to accept callables ( #22356 )
...
* Initial implementation
* Improved error handling and stability
* Added unit tests
* Updated test to use `max_features_` instead of `max_features`
* Added documentation for new private attribute `max_features_`
* Improved error handling for callables
* Updated whats_new
* Removed incorrect term reference to `max_features`
* Removed float case and improved testing
* Updated test names to more clearly reflect intention
* Added a sample callable in `max_features` description
* Improved documentation and streamlined error handling
* Updated example to include demonstrate using a callable for max_features
* Separated out callable demo into separate example
* Removed demo from `max_features` docs (now in example)
* Updated changelog
* Apply suggestions from code review
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Trimmed unneeded comments
* Updated tests to reflect new error handling
* Removed new line at end of docstring
* Updated docstring
* Fixed example syntax error
* Fixed example syntax
* Apply suggestions from code review
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Reverted irrelevant changes
* Update sklearn/feature_selection/_from_model.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Fixed error message
* Improved test coverage
* Minor doc improvement -- added a list for `max_features` type
* Update sklearn/feature_selection/_from_model.py
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
* Improved input validation and added test for array-like
* Updated doc to use no longer use lambda function
* Fixed docstring list
* Added missing whitespace for list format in docstring
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2022-03-22 11:18:12 +01:00
Thomas J. Fan
4cf932d98e
ENH Use simultaenous sort in tree splitter ( #22868 )
2022-03-21 16:53:45 +01:00
Jérémie du Boisberranger
bb5ab53f94
API Config: change default display to "diagram" ( #22856 )
2022-03-21 15:43:07 +01:00
Dimitri Papadopoulos Orfanos
ee5a1b69d1
DOC, MNT Typos found by codespell ( #22906 )
2022-03-20 19:16:39 +01:00
Adrin Jalali
7dc97a378e
API get_scorer returns a copy and introduce get_scorer_names ( #22866 )
2022-03-20 07:30:21 +11:00
Jérémie du Boisberranger
7414a7c4c5
FIX LinearRegression sparse + intercept + sample_weight ( #22891 )
2022-03-18 17:47:26 +01:00
Thomas J. Fan
fb835771d1
FIX Fixes OneVsOneClassifier.predict for Estimators with only predict_proba ( #22604 )
...
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-18 17:23:50 +01:00
Thomas J. Fan
ad537bca62
DOC Use proper tags for get_feature_names_out in whats_new ( #22883 )
2022-03-17 22:22:11 +01:00
Jérémie du Boisberranger
b9bd2d524d
API Deprecate if_delegate_has_method ( #22830 )
2022-03-17 13:16:53 -04:00
Julien Jerphanion
613773db11
TST Add minimal setup to be able to run test suite on float32 ( #22690 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
2022-03-17 14:25:17 +01:00
Thomas J. Fan
c176beadf8
MAINT Import from public SciPy in pubilc namespace ( #22875 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-17 11:59:23 +01:00
Thomas J. Fan
5905367f42
MAINT Fix plot_gallery warning when building docs ( #22869 )
2022-03-17 11:19:43 +01:00
Alexandre Gramfort
1a1c73da4a
DOC: Fix latex \max and not max in model selection ( #22858 )
2022-03-16 10:28:10 +01:00
randomgeek78
fbfe98fd92
FIX Fix ColumnTransformer.get_feature_names_out with slices ( #22775 )
2022-03-15 15:06:03 -04:00
Olivier Grisel
dd1b8c3d39
DOC Fix the formatting for environment variables in docs ( #22833 )
2022-03-14 22:54:29 -04:00
Joseph Chazalon
fb4dbfd837
DOC Fix wrong link title for PCA in "Dim. red." ( #22835 )
2022-03-14 20:17:34 +01:00
Thomas J. Fan
6511ef046f
FIX Fixes visualization for nested meta-estimators ( #21310 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-14 18:22:59 +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
7f0006c8aa
ENH Adds infrequent categories to OneHotEncoder ( #16018 )
...
* ENH Completely adds infrequent categories
* STY Linting
* STY Linting
* DOC Improves wording
* DOC Lint
* BUG Fixes
* CLN Address comments
* CLN Address comments
* DOC Uses math to description float min_frequency
* DOC Adds comment regarding drop
* BUG Fixes method name
* DOC Clearer docstring
* TST Adds more tests
* FIX Fixes mege
* CLN More pythonic
* CLN Address comments
* STY Flake8
* CLN Address comments
* DOC Fix
* MRG
* WIP
* ENH Address comments
* STY Fix
* ENH Use functiion call instead of property
* ENH Adds counts feature
* CLN Rename variables
* DOC More details
* CLN Remove unneeded line
* CLN Less lines is less complicated
* CLN Less diffs
* CLN Improves readiabilty
* BUG Fix
* CLN Address comments
* TST Fix
* CLN Address comments
* CLN Address comments
* CLN Move docstring to userguide
* DOC Better wrapping
* TST Adds test to handle_unknown='error'
* ENH Spelling error in docstring
* BUG Fixes counter with nan values
* BUG Removes unneeded test
* BUG Fixes issue
* ENH Sync with main
* DOC Correct settings
* DOC Adds docstring
* DOC Immprove user guide
* DOC Move to 1.0
* DOC Update docs
* TST Remove test
* DOC Update docstring
* STY Linting
* DOC Address comments
* ENH Neater code
* DOC Update explaination for auto
* Update sklearn/preprocessing/_encoders.py
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
* TST Uses docstring instead of comments
* TST Remove call to fit
* TST Spelling error
* ENH Adds support for drop + infrequent categories
* ENH Adds infrequent_if_exist option
* DOC Address comments for user guide
* DOC Address comments for whats_new
* DOC Update docstring based on comments
* CLN Update test with suggestions
* ENH Adds computed property infrequent_categories_
* DOC Adds where the infrequent column is located
* TST Adds more test for infrequent_categories_
* DOC Adds docstring for _compute_drop_idx
* CLN Moves _convert_to_infrequent_idx into its own method
* TST Increases test coverage
* TST Adds failing test
* CLN Careful consideration of dropped and inverse_transform
* STY Linting
* DOC Adds docstrinb about dropping infrequent
* DOC Uses only
* DOC Numpydoc
* TST Includes test for get_feature_names_out
* DOC Move whats new
* DOC Address docstring comments
* DOC Docstring changes
* TST Better comments
* TST Adds check for handle_unknown='ignore' for infrequent
* CLN Make _infrequent_indices private
* CLN Change min_frequency default to None
* DOC Adds comments
* ENH adds support for max_categories=1
* ENH Describe lexicon ordering for ties
* DOC Better docstring
* STY Fix
* CLN Error when explicity dropping an infrequent category
* STY Grammar
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-14 15:48:18 +01:00
Aurélien Geron
7723d9374e
ENH Add inverse_transform to random projection transformers ( #21701 )
...
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-14 15:07:25 +01:00
Olivier Grisel
d3429ca328
TST introducing the random_seed fixture ( #22749 )
...
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-14 10:41:06 +01:00
ahmadjubair33
3f66d6e968
DOC fix typo in contributing guide ( #22815 )
2022-03-13 19:23:09 +01:00
MarieS-WiMLDS
92bd904f8c
DOC adding numpydoc to the development dependencies ( #22792 )
...
Co-authored-by: Marie <marie.sacksick@cybelangel.com>
2022-03-12 17:00:48 +01:00
Chiara Marmo
cd5385e711
Simplify conda installation. ( #22771 )
2022-03-12 00:34:38 +01:00
Meekail Zain
3110ccf9f0
FIX Correct fac multiplier in LDA ( #22696 )
...
Co-authored-by: Okon Samuel <39421418+OkonSamuel@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-10 17:58:26 +01:00
francoisgoupil
d6984db4f2
Add Blog to top menu bar ( #22737 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-09 12:57:57 -08:00
Thomas J. Fan
36c6c74e5f
FIX Fixes KBinsDiscretizer for encode=ordinal ( #22735 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-09 11:10:50 -08:00
iofall
ff1c6f3a92
FIX Remove validation from __init__ and set_params for ColumnTransformer ( #22537 )
...
Co-authored-by: iofall <50991099+iofall@users.noreply.github.com>
Co-authored-by: arisayosh <15692997+arisayosh@users.noreply.github.com>
2022-03-09 11:56:06 +01:00
Thomas J. Fan
692225dd2c
ENH Add feature_names_out to voting estimators ( #22697 )
2022-03-08 20:49:59 +01:00
Maxwell
26f5b26273
ENH Add get_feature_names_out for RandomTreesEmbedding module ( #21762 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-08 19:29:22 +01:00
Thomas J. Fan
c2d0dcbce1
ENH Adds feature_names_out to stacking estimators ( #22695 )
2022-03-08 18:59:18 +01:00
Thomas J. Fan
35a679d181
ENH Improve error message for top_k_accuracy_score ( #22284 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-08 15:48:48 +01:00
Thomas J. Fan
67a3feed2f
ENH Adds get_feature_names_out for AdditiveChi2Sampler ( #22137 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-08 15:02:18 +01:00
Thomas J. Fan
d616e43947
ENH Adds feature_names_out for most of kernel_approximation ( #22694 )
2022-03-08 14:01:03 +01:00