Commit Graph

278 Commits

Author SHA1 Message Date
Rob Romijnders 76f2479e2f
Fix typo in docstring for GaussianMixture. (#17998) 2020-07-26 15:27:09 +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
Violeta d8be25f65c
DOC fixes default values documentation in sklearn/mixture module (#17476)
* fixes default values documentation in sklearn/mixture

* sklearn/mixtures extra changes to doc

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-06 19:14:15 -04:00
amy12xx 4eca61b629
DOC Standardize formatting for default values (#17509)
Co-authored-by: Amanda Dsouza <adsouza41@gatech.edu>
2020-06-06 17:00:59 -04:00
darioka a0a23d2e3a
DOC Adds GaussianMixture and BayesianGaussianMixture examples (#15193) 2020-05-22 14:28:24 -04:00
Adrin Jalali 02309ffbda
API kwonly args in manifold, metrics, mixture, model_selection, multclass, multioutput (#16982) 2020-04-24 17:24:24 -04:00
Roman Yurchak 75d3f29e72
MAINT Remove outdated numpy and scipy backports (#16725)
* Remove unecessary numpy & scipy backports

* More fixes

* Remove unused imports
2020-03-20 13:57:18 +01:00
Alex Henrie 438bb3a438
MNT Remove unused imports (#16665) 2020-03-11 10:01:51 +11: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
Pierre Delanoue 06b1a19465
[DOC] Make random_state descriptions for Mixture Models (#16307) 2020-01-30 17:40:05 +01:00
Chiara Marmo 2de018bf6e DOC Fix some new sphinx warnings. (#15560) 2019-11-07 16:35:31 -05:00
Katarina Slama c4545aa823 DOC fixed typos in mean_precision_prior in _bayesian_mixture (#15501) 2019-11-06 13:24:57 +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 4a95e33e63 MNT Make modules private in sklearn.datasets (#15307) 2019-10-27 17:17:23 -04:00
Nicolas Hug 0f157e9475 ENH Minor update to error message from check_is_fitted (#15357) 2019-10-27 13:06:34 +01:00
Nicolas Hug 6ac9dc4878 MNT make the modules in sklearn.mixture private (#15166)
* renaming

* renamed some imports

* added test and gitignore
2019-10-16 19:16:26 +02:00
Thomas J Fan 14f5302b70 DOC Link items explictly (#14817)
* DOC Link items explictly

* STY

* DOC Link another
2019-09-05 11:37:05 +02:00
Andreas Mueller 92af3dabbb MAINT simplify check_is_fitted to use any fitted attributes (#14545) 2019-08-13 22:09:07 +02:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Roman Yurchak 5674122c97 MAINT More test runtime optimizations (#14136)
* Feature extraction / feature selection

* Metrics, manifold, impute, GP optimization

* Optimize mixture

* Optimize model_selection

* Fix tests

* Lint
2019-06-22 10:44:06 +03:00
Dougal J. Sutherland b3030f046f minor fix in gaussian_mixture.py (#14120)
This was working, since `'full' in 'full'`, but for clarity and accident-avoidance it's probably better to use `==`.
2019-06-20 08:26:04 +10:00
Kensuke Arai 3373e9c125 Fixed documentation for mean_precision_prior. Smaller->Larger (#13764) 2019-05-05 08:24:01 +01:00
jeremiedbb 3a47124205 [MRG] Fix GaussianMixture fit_predict != fit.predict when n_init > 1 (#13142) 2019-02-25 07:57:35 +01:00
Roman Yurchak 0e3bb17e62 MAINT Run pyupgrade following Python2 deprecation (#12997) 2019-02-08 20:13:34 +08:00
Kossori Aruku c2d56a6c8f DOC change from 'means_prior' to 'mean_prior' in BayesianGaussianMixture (#13090) 2019-02-04 23:07:29 +08:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Rüdiger Busche d300f406ae MAINT Simplify super() calls (#12812) 2019-01-10 22:27:06 +01:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Hanmin Qin bfc4a56642 MNT Duplicate import 2018-11-14 20:34:40 +08:00
Hanmin Qin 43e3a02085
MNT Remove unused assert_true imports (#12560) 2018-11-11 11:08:37 +08:00
Yaroslav Halchenko 362cb3bcab TST autoreplace assert_true(...==...) with plain assert (#12547) 2018-11-11 09:05:34 +08:00
Olivier Grisel 036dfdde21 Fix inconsistent labels returned by BayesianGaussianMixture.fit_predict (#12451) 2018-11-04 00:56:50 +11:00
jeremiedbb e50fc2af94 TST Fix test gaussian mixture warm start (#12452) 2018-10-25 13:58:22 +02:00
Oleksandr Pavlyk 63e5ae6319 TST Use same random seeds for both GaussianMixture.fit (#12307) 2018-10-07 11:13:32 +02:00
TakingItCasual 1e052e9da9 Converting http to https (2)... (#12292) 2018-10-04 23:06:14 +02:00
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02:00
Aurélien Geron beb2aa0395 [MRG+1] Fix lower_bound_ not equal to max lower bound in mixture models when n_init > 1 (#10870)
* Set lower_bound_ to max lower bound at the end of BaseMixture.fit(), fixes #10869

* Use a local lower_bound variable rather than self.lower_bound_ during training, in BaseMixture.fit()

* Remove extra empty line

* Update documentation and reduce test_init() iterations from 100 to 25

* Update whats_new/v0.20.rst to add mention of issue 10869, and reformat file to fit on 80 columns

* Remove extra line in whats_new/v0.20.rst

* Add tests for convergence detection in Gaussian mixtures when warm_start=True

* Remove unnecessary catch_exception blocks

* Fix tests since n_iter_ was recently fixed to be increased by 1

* Revert changes unrelated to PR 10870 in doc/whats_new/v0.20.rst

* Replace assert_* with plain asserts because of the move to pytest

* Remove comment in whats_new/v0.20.rst that will be added upon merging

* Replace single backticks with double backticks in doc string

* Limit is 79 characters per line, not 80.

* Remove the false convergence fix to treat it in a separate PR
2018-07-16 14:47:07 +02:00
Shu Haoran c303ed8ef2 ENH adding fit_predict to mixture models (#11281)
Fixes #10336
2018-07-03 12:43:26 +10:00
Andreas Mueller eec7649236 MAINT Complete 0.20 deprecations (#9570) 2018-06-24 23:06:26 +10:00
Joel Nothman 14764061f8
[MRG] DOC fix some sphinx warnings (#11241) 2018-06-21 20:43:21 +10:00
Roman Yurchak e8d8b8eeb0 TST: parametrize unit tests (#11074)
yield tests are deprecated in pytest and will be removed in pytest 4.0.
They all have been replaced by parametrize.
2018-06-08 14:59:33 +02:00
Guillaume Lemaitre a38067093f [MRG+1] FIX make n_iter_ being the number of iteration performed (#11015)
*
2018-04-24 07:24:53 +10:00
Loïc Estève 20661b5018
TST: only run doctests on numpy 1.14. (#10835)
Fix doctests due to numpy 1.14 formatting changes.
2018-03-27 07:44:40 +02:00
Félix Raimundo 9920bf98da Remove dp-derivation.rst. (#10857)
sklearn.mixture.dpgmm.py is deprecated and will be removed in version 0.20.
2018-03-22 16:09:27 +01:00
Mohamed Ali Jamaoui 58f84694a8 DOC Add reference to the glossary in the warm_start parameter description of public APIs (#10699) 2018-02-26 20:21:17 +08:00
Joel Nothman c3bdc0a89a
DOC clean up assorted type specifications (#10441) 2018-01-11 09:11:17 +11:00
Joel Nothman b939b5a29a FIX missing return in deprecated function 2017-10-10 09:57:08 +11:00
Albert Thomas 45dc891c96 [MRG+2] Clean common tests (#9340)
* rm dupes

* add check_supervised_y_no_nan in classifier checks: this implies changes for Ridge classifiers

* fix docstrings/comments

* FIX check fitting 1d X array raises error and FIX check fitting 2d array with only 1 feature either works or returns informative message

* modify check_fit2d_1sample in common tests so that it checks fitting either works or returns an informative message

* rm SpectralClustering case for the moment

* uniformize error messages for 1 sample case and fix SpectralClustering with ensure_min_samples=2

* add unit test for mean_shift when n_samples * quantile < 1

* FIX travis with ensure_min_samples=2 in _PLS

* try fix for failing tSNE test

* typos

* take @agramfort's review into account

* sc to fix string in gaussian_process

* add the class that is present to preserve information of previous message in gpc.py
2017-09-26 18:13:15 +02:00
Hanmin Qin 32ac22870d [MRG+1] Fix warnings in lgtm.com (remove redundant code) (#9719) 2017-09-14 11:42:58 +02:00