Commit Graph

43 Commits

Author SHA1 Message Date
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00
Sylvain Marié acf195cc74
FIX use specific threshold to discard eigenvalues with 32 bits fp(#18149)
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
2020-08-13 13:57:04 +02:00
lrjball 535ef5516b
BUG Fix issue with KernelPCA.inverse_transform (#16655) 2020-03-10 10:52:47 +01:00
Nicolas Hug 4256542b10 MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
smarie 343214085a ENH KernelPCA raises error in case of numerical/conditioning issues (#12145) 2019-11-14 12:29:23 -05:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Samesh Lakhotia 35c0ca0325 MAINT Remove the use of assert_raises* in decomposition (#14679) 2019-08-18 13:30:17 -04:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Guillaume Lemaitre 69eb4d4678 [MRG] DEP change default and deprecate iid in SearchCV (#13834) 2019-05-09 14:26:05 +02:00
smarie 2f5bb34b6d FIX KernelPCA fix transform issue when zero eigenvalues are present and not removed (#12143) 2019-03-21 15:55:07 -04:00
Aurélien Bellet 86476582a3 [MRG+1] Enforce deterministic output in kernel PCA (#13241)
* enforce deterministic output in kernel PCA

* add tests and update whats new

* replace state by rng

* simplified assert

* avoid copy

* clarify tests

* remove now useless comment

* use rng as seed everywhere
2019-02-26 08:15:20 +01:00
Nicolas Hug 4e2da4af92 [MRG] Added FutureWarning in sgd models for tol parameter (#12399)
* Added ChangedBehaviorWarning in sgd models

if tol is None while max_iter is set

* Changed to FutureWarning and clarified None meaning

* Ignored warningin tests

* Ignore warnings in tests, round 2
2018-10-24 11:00:43 -04:00
Andreas Mueller 0f94f2962b
MNT simple deprecations and removals for 0.21 (#12238)
Part of #11992.
These were all the things that seemed pretty straight-forward. It's actually a bit bulky but should still be easy to review, hopefully.
2018-10-11 14:56:37 -04:00
Andreas Mueller 8e2c2aa35d
raise DeprecationWarnings and FutureWarnings as errors (#11570)
Towards #11252.
In the end we'd like to make these errors so we can keep this cleaner in the future.
2018-07-17 15:31:45 -05:00
Tom Dupré la Tour edeb3af217 Deprecate n_iter in SGDClassifier and implement max_iter (#5036) 2017-06-23 21:49:29 +02:00
hlin117 e5c366f77f Merge PR #6037: copy_X in KernelPCA
Ensuring consistent transforms for KernelPCA

Taking @vene's changes into account, thanks!

Taking @jakevdp's comment into account

Added more verbose documentation to kernel_pca.py

Specifying that X_fit_ will not be None. @jakevdp

KernelPCA: Fixing more formatting of docstring

Addressed @vene's documentation comments

Addressing that dual_coef_ might not be present in model in docs. @vene
2016-03-24 19:01:10 -04:00
Raghav R V 3f8743f47b Main Commits - Major
--------------------

* ENH Reogranize classes/fn from grid_search into search.py
* ENH Reogranize classes/fn from cross_validation into split.py
* ENH Reogranize cls/fn from cross_validation/learning_curve into validate.py

* MAINT Merge _check_cv into check_cv inside the model_selection module
* MAINT Update all the imports to point to the model_selection module
* FIX use iter_cv to iterate throught the new style/old style cv objs
* TST Add tests for the new model_selection members
* ENH Wrap the old-style cv obj/iterables instead of using iter_cv

* ENH Use scipy's binomial coefficient function comb for calucation of nCk
* ENH Few enhancements to the split module
* ENH Improve check_cv input validation and docstring
* MAINT _get_test_folds(X, y, labels) --> _get_test_folds(labels)
* TST if 1d arrays for X introduce any errors
* ENH use 1d X arrays for all tests;
* ENH X_10 --> X (global var)

Minor
-----

* ENH _PartitionIterator --> _BaseCrossValidator;
* ENH CVIterator --> CVIterableWrapper
* TST Import the old SKF locally
* FIX/TST Clean up the split module's tests.
* DOC Improve documentation of the cv parameter
* COSMIT consistently hyphenate cross-validation/cross-validator
* TST Calculate n_samples from X
* COSMIT Use separate lines for each import.
* COSMIT cross_validation_generator --> cross_validator

Commits merged manually
-----------------------

* FIX Document the random_state attribute in RandomSearchCV
* MAINT Use check_cv instead of _check_cv
* ENH refactor OVO decision function, use it in SVC for sklearn-like
  decision_function shape
* FIX avoid memory cost when sampling from large parameter grids

ENH Major to Minor incremental enhancements to the model_selection

Squashed commit messages - (For reference)

Major
-----

* ENH p --> n_labels
* FIX *ShuffleSplit: all float/invalid type errors at init and int error at split
* FIX make PredefinedSplit accept test_folds in constructor; Cleanup docstrings
* ENH+TST KFold: make rng to be generated at every split call for reproducibility
* FIX/MAINT KFold: make shuffle a public attr
* FIX Make CVIterableWrapper private.
* FIX reuse len_cv instead of recalculating it
* FIX Prevent adding *SearchCV estimators from the old grid_search module
* re-FIX In all_estimators: the sorting to use only the 1st item (name)
    To avoid collision between the old and the new GridSearch classes.
* FIX test_validate.py: Use 2D X (1D X is being detected as a single sample)
* MAINT validate.py --> validation.py
* MAINT make the submodules private
* MAINT Support old cv/gs/lc until 0.19
* FIX/MAINT n_splits --> get_n_splits
* FIX/TST test_logistic.py/test_ovr_multinomial_iris:
    pass predefined folds as an iterable
* MAINT expose BaseCrossValidator
* Update the model_selection module with changes from master
  - From #5161
  -  - MAINT remove redundant p variable
  -  - Add check for sparse prediction in cross_val_predict
  - From #5201 - DOC improve random_state param doc
  - From #5190 - LabelKFold and test
  - From #4583 - LabelShuffleSplit and tests
  - From #5300 - shuffle the `labels` not the `indxs` in LabelKFold + tests
  - From #5378 - Make the GridSearchCV docs more accurate.
  - From #5458 - Remove shuffle from LabelKFold
  - From #5466(#4270) - Gaussian Process by Jan Metzen
  - From #4826 - Move custom error / warnings into sklearn.exception

Minor
-----

* ENH Make the KFold shuffling test stronger
* FIX/DOC Use the higher level model_selection module as ref
* DOC in check_cv "y : array-like, optional"
* DOC a supervised learning problem --> supervised learning problems
* DOC cross-validators --> cross-validation strategies
* DOC Correct Olivier Grisel's name ;)
* MINOR/FIX cv_indices --> kfold
* FIX/DOC Align the 'See also' section of the new KFold, LeaveOneOut
* TST/FIX imports on separate lines
* FIX use __class__ instead of classmethod
* TST/FIX import directly from model_selection
* COSMIT Relocate the random_state documentation
* COSMIT remove pass
* MAINT Remove deprecation warnings from old tests
* FIX correct import at test_split
* FIX/MAINT Move P_sparse, X, y defns to top; rm unused W_sparse, X_sparse
* FIX random state to avoid doctest failure
* TST n_splits and split wrapping of _CVIterableWrapper
* FIX/MAINT Use multilabel indicator matrix directly
* TST/DOC clarify why we conflate classes 0 and 1
* DOC add comment that this was taken from BaseEstimator
* FIX use of labels is not needed in stratified k fold
* Fix cross_validation reference
* Fix the labels param doc

FIX/DOC/MAINT Addressing the review comments by Arnaud and Andy

COSMIT Sort the members alphabetically
COSMIT len_cv --> n_splits
COSMIT Merge 2 if; FIX Use kwargs
DOC Add my name to the authors :D
DOC make labels parameter consistent
FIX Remove hack for boolean indices; + COSMIT idx --> indices; DOC Add Returns
COSMIT preds --> predictions
DOC Add Returns and neatly arrange X, y, labels
FIX idx(s)/ind(s)--> indice(s)
COSMIT Merge if and else to elif
COSMIT n --> n_samples
COSMIT Use bincount only once
COSMIT cls --> class_i / class_i (ith class indices) -->
perm_indices_class_i

FIX/ENH/TST Addressing the final reviews

COSMIT c --> count
FIX/TST make check_cv raise ValueError for string cv value
TST nested cv (gs inside cross_val_score) works for diff cvs
FIX/ENH Raise ValueError when labels is None for label based cvs;
TST if labels is being passed correctly to the cv and that the
ValueError is being propagated to the cross_val_score/predict and grid
search
FIX pass labels to cross_val_score
FIX use make_classification
DOC Add Returns; COSMIT Remove scaffolding
TST add a test to check the _build_repr helper
REVERT the old GS/RS should also be tested by the common tests.
ENH Add a tuple of all/label based CVS
FIX raise VE even at get_n_splits if labels is None
FIX Fabian's comments
PEP8
2015-10-23 17:28:08 +02:00
TomDLT 628ed2c867 ENH remove some warnings in test suit 2015-09-16 18:27:58 +02:00
Andreas Mueller a8626b36a6 TST/COSMIT remove nose call boilerplate 2015-05-28 14:54:01 -04:00
Raghav R V cd2ee7e454 MAINT docstring --> comments to prevent nose from using doc in verbose mode 2015-03-21 11:16:49 +05:30
Andreas Mueller a1d4d184fe COSMIT pep8 2013-04-02 13:30:55 +02:00
Lars Buitinck ae700081a6 ENH allow additional kernels on KernelPCA
Also changed pairwise_kernels to raise ValueError instead of
AttributeError, as the latter is easy to mix up with a bug.
2013-03-18 21:48:12 +01:00
Lars Buitinck 4610103df6 BUG + ENH: removal of components in kernel PCA 2013-03-10 18:32:16 +01:00
Lars Buitinck a7c6b069b1 BUG in KernelPCA: wrong default value for gamma 2013-02-18 14:29:55 +01:00
Andreas Mueller 754c2d9533 COSMIT pep8 2012-12-22 16:48:17 +01:00
Andreas Mueller ff313267b4 FIX adjust gamma in kernelPCA tests to fit slightly modified circles with balanced classes. 2012-10-28 20:40:21 +00:00
Mathieu Blondel 6eec2e651b Even more sklearn.utils.testing. 2012-10-26 00:09:46 +09:00
Peter Prettenhofer 0c59872708 n_iter must not be 0 2012-09-06 21:41:23 +02:00
Andreas Mueller 9ddb1803f7 COSMIT comments not docstrings in tests 2012-08-05 16:38:31 +01:00
Andreas Mueller 9a520779c2 FIX/TST test anc fix grid search with kernel pca and precomputed kernel in pipeline. 2012-08-05 16:23:25 +01:00
Andreas Mueller 440cafbe27 ENH Removed stupid ``_pairwise`` property in BaseEstimator. 2012-08-05 14:56:20 +01:00
Andreas Mueller ef82d75c5b ENH going for a universal property ``_pairwise`` instead of many functions. 2012-06-03 20:39:02 +02:00
Andreas Mueller 4f11178a97 ENH fit_transform_pairwise for KernelPCA 2012-06-03 20:34:25 +02:00
Andreas Mueller c39ad04bb4 ENH fit_pairwise, transform_pairwise for KernelPCA 2012-06-03 20:33:06 +02:00
Andreas Mueller 3e5f2e5e08 ENH backport "assert_less" and "assert_greater", rename "assert_lower" and use it everywhere :) 2012-05-06 15:43:29 +02:00
Andreas Mueller b75833f720 COSMIT removed unused import in test 2012-05-04 23:16:15 +02:00
Olivier Grisel 4e19dc30f6 typo 2012-05-04 14:38:19 +02:00
Olivier Grisel 9b4be76534 FIX #807: non regression test for KPCA on make_circles dataset 2012-05-02 04:24:54 +02:00
Olivier Grisel 9c6e0445ae FIX #614: raise ValueError at KernelPCA init if fit_inverse_transform and precomputed kernel 2012-02-17 09:34:43 +01:00
Andreas Mueller 04db54083e COSMIT pyflakes 2011-12-15 17:08:39 +01:00
Fabian Pedregosa ddf4b72109 Move project directory from scikits.learn to sklearn 2011-09-02 12:06:57 +02:00
Fabian Pedregosa 68f27e3790 Revert "Move project directory from scikits.learn to sklearn"
This reverts commit fd0d3b879d.
2011-09-02 12:03:18 +02:00
Fabian Pedregosa fd0d3b879d Move project directory from scikits.learn to sklearn 2011-09-02 11:38:24 +02:00