Commit Graph

38 Commits

Author SHA1 Message Date
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
Jake Vanderplas 1583dbbbb4 move neighbors.py -> neighbors 2011-09-06 10:09:35 -07:00
Brian Holt b484aa4432 merged upstream-master into enh/tree 2011-09-03 13:04:27 +01:00
Gael varoquaux 42d6c566fe BUG: sklearn/setup.py : learn -> sklearn
Thanks Robert Layton for catching the bug
2011-09-03 13:01:17 +02: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