Commit Graph

56 Commits

Author SHA1 Message Date
Christian Lorentzen d09e1d7239
MRG Common Private Loss Module with tempita (#20567) 2021-11-26 16:45:41 +01:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Thomas J. Fan 5efcb10c3e
MAINT Vendors packaging/version.py for pep440 versioning (#19826)
* MAINT Vendors packaging/version for pep440 versioning

* ENH Uses folder structure of packaging

* ENH Uses fixes parse_version

* ENH Uses packaging name

* MAINT Adds packaging

* BLD Use vendored version [cd build]
2021-04-19 17:06:38 +02:00
Nicolas Hug 7494da6f52
MNT removed deprecated files generation (#17132) 2020-05-25 17:34:17 +02:00
Nicolas Hug c2f5fe3e43
MNT remove deprecated externals.joblib (#16814) 2020-03-31 17:18:21 -04:00
Roman Yurchak 69ea066412
ENH Minimal Generalized linear models implementation (L2 + lbfgs) (#14300)
Co-authored-by: Christian Lorentzen <lorentzen.ch@googlemail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-03-04 14:08:24 +01:00
Olivier Grisel 82e2f54565 BLD: Do not pre-cythonize when calling sdist (#15567) 2019-11-08 13:04:30 +01:00
Thomas J Fan dba753a200 API Auto generates deprecation for sklearn.utils.mocking (#15071) 2019-10-03 00:09:28 +10:00
jeremiedbb 01a140a0bf MAINT Remove BLAS infos from show_versions and build log (#14205) 2019-07-18 12:55:56 +02:00
Joel Nothman 1675e77e3e
API Make IterativeImputer experimental (#13824) 2019-05-09 09:28:44 +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
jeremiedbb 1ffd2d3be9 [MRG] MNT Cblas to scipy cython blas in liblinear and remove bundled cblas (#13203) 2019-02-21 19:44:05 +01:00
Oleksandr Pavlyk da6869f47f MAINT: correct cythonization of sklearn.metrics.cluster to avoid warning (#10851) 2018-03-22 11:09:36 +11:00
Joel Nothman b43fce5a49 MNT Add sklearn.compose and move TransformedTargetRegressor to it (#10719) 2018-03-16 21:27:03 +08:00
Loïc Estève 6a2d8d5bbc [MRG+2] BUILD Rewrite setup.py files to handle cython dependencies (#7719)
* Rewriting of cythonization in setup.py

By using Cython.Build.cythonize and switching between .c and .pyx files
as appropriate cython dependencies are correctly taken into account.

* Use cythonize once on the root config rather than in each subpackage

* Fix for Windows

* Remove caching from Travis

Cython dependencies are taken care of by Cython.Build.cythonize and
based on file timestamps, so .C and .so files will always be rebuild
from scratch on each build in Travis.

* Specify .pyx in setup.files for cython generated extensions

More natural this way. Tweak the extensions to generate from .c and .cpp
files for a release.

* COSMIT Remove commented out code

* Check cython version is greater than 0.23

* COSMIT better names for functions

* flake8 fix (imported module not at top of file)

* Install cython 0.23 for Python 2.6

now that cython >= 0.23 requirement is enforced in setup.py

* Use module constant for minimum required cython version

* Fix Travis install.sh

No easy way to put comments inside multi-line command
2016-11-02 22:57:04 +11:00
Jake VanderPlas fdcb5b4ca1 MAINT: fix setup for metrics/cluster 2016-05-13 06:57:09 -07:00
Jake VanderPlas e743cf75f5 MAINT: re-organize setup.py & make sure all tests are discoverable by nose 2016-05-13 06:57:09 -07:00
Loïc Estève 885c512bda Add sklearn/preprocessing/tests to source distribution 2016-02-11 14:09:53 +01:00
Arthur Mensch 0c7812ad12 Add subpackage _build_utils 2015-11-05 16:49:26 +01: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
Andreas Mueller 6beacc3fb6 remove deprecated stuff from 0.17 2015-03-18 14:49:04 -04:00
Lars Buitinck c453711bc6 MAINT big refactor of sklearn.cluster.bicluster
* Removed dead and useless code in the utils submodule;
* decoupled sklearn.base from the bicluster module (no more deep import);
* rewrote tests to test the API, not the implementation;
* added input validation to the get_submatrix method (but it still needs
  documentation, because I've no idea what to pass for data);
* got rid of the subdirectory when it turned out only one file was left.
2014-09-04 16:13:05 +02:00
Arnaud Joly aa54ee77bb MAINT flatten metrics module and avoid nested bicluster module 2014-07-19 15:44:08 +02:00
Jake Vanderplas 7164e33a8d BUG: add new preprocessing module to setup.py 2013-07-26 11:24:56 -07:00
Kemal Eren 89be3d5699 updated setup.py 2013-07-25 19:19:24 +02:00
Nelle Varoquaux d045be0227 FIX added the new module to the setup.py installation 2013-07-25 11:01:59 +02:00
syhw 52eeb95ce3 added neural_network to setup 2013-07-24 17:27:23 +02:00
Andreas Mueller a1d4d184fe COSMIT pep8 2013-04-02 13:30:55 +02:00
Nelle Varoquaux e4ee70dc5e ENH - 3x speedup in the isotonic regression 2013-03-10 22:20:29 +01:00
Arnaud Joly a6ed58dc4d ENH flatten random_projection module + add sklearn.utils.random 2012-12-21 14:48:00 +01:00
Arnaud Joly f014ed52db ENH optim sparse bernouilli matrix 2012-12-21 14:34:23 +01:00
Andreas Mueller e12c67306e cosmit pep8 2012-12-16 23:28:10 +01:00
Mathieu Blondel bb90d67d57 Remove duplicated line. 2012-08-18 15:18:06 +09:00
Mathieu Blondel 207cd79ca1 BUG: now build works. 2012-05-09 20:49:24 +09:00
Gael Varoquaux 060669ec0c BUG: explicit adding of libm at build
For systems like Mageia

Should fix #362
2012-05-05 22:46:10 +02:00
GaelVaroquaux 0337bde36f Merge branch 'hmmc'
Conflicts:
	doc/whats_new.rst
	sklearn/hmm.py
	sklearn/tests/test_hmm.py
2012-03-09 23:53:53 +01:00
Olivier Grisel 95946d02ec missing sklearn.semi_supervised package in setup.py 2012-03-05 15:25:53 +01:00
Shiqiao Du 3b2338cfa2 rebased to the master and fixed conflicts 2012-02-06 22:24:49 +09:00
GaelVaroquaux ed6164d413 MISC: cosmit: use subpackage setup.py 2012-02-03 07:30:16 +01:00
Carlos Scheidegger 1ace675764 BUG: missing subpackage svm/sparse on setup.py. fixes issue #559 2012-02-02 19:41:59 -05:00
Olivier Grisel 0022655675 FIX: broken build / tests 2012-01-21 06:21:40 +01:00
Shiqiao Du 6cebdb53c4 added a cython module to the hmm 2012-01-07 01:08:30 +09:00
Satrajit Ghosh 9254379cf6 fix: added ensemble to setup. 2011-12-05 16:30:28 -05:00
Gael varoquaux 8dfe631489 Merge branch 'master' into tree
Conflicts:
	sklearn/setup.py
2011-10-07 00:30:19 +02:00
Brian Holt c9d142c032 Merge branch 'master' of github.com:scikit-learn/scikit-learn into enh/tree 2011-10-04 13:51:58 +01:00
Robert Layton 430fb43767 Merge remote-tracking branch 'upstream/master' into silhouette
Conflicts:
	doc/modules/clustering.rst
	sklearn/metrics/__init__.py
2011-10-04 10:33:42 +11:00
Robert Layton 1e9402cbc6 Restructured metrics/cluster into a folder with supervised and unsupervised modules 2011-09-30 22:48:01 +10:00
Gael varoquaux 2aaa1fe350 COSMIT 2011-09-24 11:17:38 +02:00
Brian Holt 6182960ac9 Merge branch 'master' of github.com:scikit-learn/scikit-learn into enh/tree 2011-09-21 20:26:40 +01:00