Commit Graph

94 Commits

Author SHA1 Message Date
Adrin Jalali 2bbd319914
MNT bumb version number to 1.1 (#20945)
* MNT bumb version number

* add whats new to toc tree

* Update doc/whats_new/v1.1.rst

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-06 14:33:59 +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
Olivier Grisel e55795b501
MNT Switch master to 1.0.dev0 (#18958) 2020-12-15 10:24:00 +01:00
Biprateep Dey 82748208a1
MNT Fixed import statements (#17901)
* fixed import statements

* fixed linting issues

* keep numpy import within setup_module
2020-07-11 23:30:32 +02:00
Adrin Jalali b2b88d3ee4
MNT bump master version to 0.24.dev0 (#17121) 2020-05-05 09:07:25 +02:00
Christoph Deil a0c76ce3cd
MNT Remove sklearn logger default StreamHandler (#16451)
* Remove sklearn logger default StreamHandler

To avoid duplicate log messages

* DOC Adds whats_new

* CLN Address comments

* MNT Remove setLevel

Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
2020-05-04 21:00:53 +02:00
Roman Yurchak 5a4340834d
Fix mypy errors (#16726) 2020-03-30 15:41:05 +02:00
Roman Yurchak 1cbe59ee06
CI Check for unused imports when linting (#16678)
* Check for missing imports in linting

* Exclude externals

* Remove unused imports
2020-03-12 12:56:35 +01:00
Guillaume Lemaitre 9408203ac4 COSMIT use np.iinfo to define the max int32 (#15960) 2019-12-24 09:41:21 +01:00
Olivier Grisel 2f86cdb6fe
Import sklearn._distributor_init first (#15929) 2019-12-20 01:23:42 +01:00
Oleksandr Pavlyk 6231d5ae51 MAINT Add _distributor_init.py (#15570) 2019-11-19 23:56:34 +01:00
Adrin Jalali 947f37e3a1 MNT bump version to 0.23.dev0 and add new whats_new (#15631) 2019-11-15 21:24:13 +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
Guillaume Lemaitre 125a54d944 MAINT Add CI config to test scikit-learn with latest numpy / scipy / mkl from conda defaults channel (#15020)
* FIX debugging OMP crash latest conda

* hotfix

* MAINT pin opemp

* Workaround issue with intel-openmp 2019.5 and multiprocessing

* MAINT back to latest intel-openmp in CI

* typo

* trigger CI

* [doc build]
2019-09-19 22:52:12 +02:00
Joel Nothman 0b3aa5e466 DOC bump version 2019-04-29 23:04:51 +10:00
Nicolas Hug 9f68c992ae [MRG+2] Faster Gradient Boosting Decision Trees with binned features (#12807) 2019-04-26 21:14:59 +02:00
Nicolas Hug 6b7dc9bc30 FEA Partial dependence plots (#12599) 2019-04-24 22:52:15 +10:00
ken f20eaeb58d Improve comment in setup.py (#13661) 2019-04-17 09:54:47 -04:00
jeremiedbb ffd27c8594 MAINT: Fix OpenMP runtime error on mac (#13294) 2019-02-27 17:25:46 +01:00
Joel Nothman 27972d429d
MNT bump to version 0.21.dev0 after branching 0.20.X (#11941) 2018-08-30 00:19:52 +10:00
Alexandre Boucaud b21f9b4f98 MNT Add sklearn show_versions() method (#11596) 2018-08-01 09:12:51 +10:00
QingYing Chen 30ebb98dff DOC Fix typos, including in PassiveAggressiveClassifier what's new (#11443) 2018-07-05 18:15:40 +00:00
Andreas Mueller eec7649236 MAINT Complete 0.20 deprecations (#9570) 2018-06-24 23:06:26 +10:00
Joel Nothman b43fce5a49 MNT Add sklearn.compose and move TransformedTargetRegressor to it (#10719) 2018-03-16 21:27:03 +08:00
Kumar Ashutosh 71b29acbfb [MRG+2] Moves Imputation out of Preprocessing (#10483) 2018-02-15 06:47:06 +11:00
Joel Nothman 9df198a17f
COSMIT Make it easier to add config settings (#10617) 2018-02-14 06:37:40 +11:00
FarahSaeed b2723582f2 [MRG] DOC Replacing "the scikit" with "scikit-learn" (#10126) 2017-11-14 11:06:50 +01:00
Joan Massich c1eee276fa ENH: dataset-fetching with use figshare and checksum (#9240) 2017-08-03 18:50:30 +02:00
Olivier Grisel cdd516f2c3 MAINT switch master __version__ to 0.20.dev0 2017-07-13 15:06:40 +02:00
Attractadore 673baeab9e Fixed sklearn-related invalid escape sequence DesprecationWarnings (#8951) 2017-06-09 17:11:18 +02:00
Joel Nothman ee88cf44ea [MRG+1] Option to suppress validation for finiteness (#7548)
* ENH add suppress validation option

* TST skip problematic doctest

* Rename SUPPRESS_VALIDATION to PRESUME_FINITE

* Change PRESUME_ to ASSUME_ for convention's sake

* DOC add note regarding assert_all_finite

* ENH add set_config context manager for ASSUME_FINITE

* Make ASSUME_FINITE private and provide get_config

* Fix ImportError due to incomplete change in last commit

* TST/DOC tests and more cautious documentation for set_config

* DOC what's new entry for validation suppression

* context manager is now config_context; set_config affects global config

* Rename missed set_config to config_context

* Fix mis-named test

* Mention set_config in narrative docs

* More explicit about limmited restoration of context

* Handle case where error raised in config_context

* Reset all settings after exiting context manager
2017-06-08 13:42:17 +02:00
Andreas Mueller 5c4b1bb231 [MRG+1] Housekeeping Deprecations for v0.19 (#7927)
* remove stuff to be removed 0.19

* more changes

* remove classes from 0.19 whatsnew

* remove _LearntSelectorMixin

* remove ProjectedGradientNMF, load_lwf_*

* minor fixes

* remove more copy from logistic regression path

* remove lda, qda from __init__.__all__

* remove pg solver in nmf from tests etc

* remove class_weight="auto" from tests

* doctest change for decision_function_shape="ovr"

* remove transfrom from tree test, minor fixes to tree tests

* some fixes in the tests

* undo changes in functions which still allow 1d input...

* also allow 1d in scale

* more test fixes...

* last test fixes in forest and tree

* svm default value change doctest failures

* pep8

* remove more class_weight="auto" stuff

* minor cosmetics in docstrings deprecated / removed behavior.

* say that store_covariance has been moved to __init__ in discriminant_analysis
2016-12-09 12:43:38 -05:00
Andreas Mueller 5bb983013c minor doc fixes (#7514)
fix scoring function table

minor fixes to whatsnew
2016-09-28 11:31:29 -07:00
Olivier Grisel e5fede557e MAINT master is now 0.19.dev0 2016-09-13 19:25:43 +02:00
Tim Head 07cede74ca Multitarget regression meta estimator
Register OneVsRestRegressor as meta estimator

Rename to a more sensible name

Parallel predict and sparse support

Started MultiOutput documentation

Move code to new file multioutput.py

Continuing the move to new multioutput module

Added sample weight support

Better test for sample weights and actually support weights

Added a new test using weighted vs repeated samples to
test sample weight support. Uncovered that weights
were not actually passed on to underlying estimator.

Comment on multiprocess overheads

Move parallel_helper to utils.fixes

This helper works around a python2 limitation on pickling
instance methods

Example of multi-output regression with gradient boosting

Switch to uniform weighted score and updated example

The example now uses a RF with and without the MultiOutput
meta estimator

Added note for removing `score` method

Addressing comments on MultiOutputRegressor

MultiOutputregressor better test for weighted samples

Fix ups

Use explicit keyword argument for passing sample weights and
fix random_state on train-test split in the example
2016-03-10 16:06:08 -05: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
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
Olivier Grisel 2300bdd865 MAINT switching master to 0.18.dev0 2015-10-16 17:17:57 +02:00
Vinayak Mehta 679936f6bc MAINT Deprecate LDA/QDA in favor of expanded names
The LDA accronym for Linear Discriminant Analysis is ambiguous
because of the newly introduced Latent Dirichlet Allocation model.

We therefore deprecate the sklearn.lda.LDA and sklearn.lda.QDA
in favor of explicit names.
2015-09-11 15:32:11 +02:00
Andreas Mueller 6beacc3fb6 remove deprecated stuff from 0.17 2015-03-18 14:49:04 -04:00
Andreas Mueller 5e4809caa8 Move dev branch to 0.17 2015-03-06 17:55:01 -05:00
Olivier Grisel ff942f9688 MAINT use canonical PEP-440 dev version consistently 2015-03-06 18:10:18 +01:00
Jan Hendrik Metzen ecfc93ddf6 ENH Add probability calibration based on isotonic regr. and Platt's sigmoid fit + calibration-curve
CalibratedClassifierCV allows to calibrate the predicted probabilities of base classifiers based on a cross-validation scheme and either Platt's sigmoid fit or isotonic regression. This can be used to compensate for an under-confident or over-confident classifier. It allows also to turn the decision scores of a non-probabilistic classifier into valid probabilities.

The function calibration_curve allows to evaluate how well calibrated the probabilties returned by a classifier are. Ideally, the curve should be close to diagonal.
2015-02-20 19:37:10 +01:00
Jan Hendrik Metzen f1b42845f4 FIX Add kernel_ridge to list of all submodules 2015-01-18 11:01:43 +09:00
Olivier Grisel 6d7d25fc8c MAINT dev version to follow PEP440 2014-12-25 23:11:15 +11:00
Joel Nothman b4e41cb614 FIX update sklearn.__all__ to include all end-user submodules 2014-09-02 11:23:19 +02:00
Lars Buitinck be93a75d29 MAINT remove sklearn.test 2014-07-22 15:58:55 +02:00
Lars Buitinck 259b487fb4 MAINT remove deprecated sklearn.pls module 2014-07-22 15:54:54 +02:00
Olivier Grisel e8cb36f83d MAINT master to 0.16-git
master has 0.16-only commits since the 0.15-branching tag.

New features have to be documented as new features in the 0.16 section.
Bugfixes to be included in the 0.15.0 release have to be cherry-pick'ed in the
0.15.X branch and document in the 0.15 section.
2014-07-14 21:42:06 +02:00
Olivier Grisel 42c31430c9 MAINT: restore -git version in the master branch after the last release merge 2014-06-09 14:53:40 +02:00