Commit Graph

88 Commits

Author SHA1 Message Date
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
Gael Varoquaux 323bcea80d Merge pull request #6426 from yenchenlin1994/remove-redundant-typo
[MRG] DOC Remove redundant words in sklearn
2016-02-23 16:30:25 +01:00
YenChenLin 46fc1be145 Remove redundant words in sklearn 2016-02-23 16:54:03 +08:00
Lilian Besson c543633486 Update cross_validation.rst
Weird display bug on a Warning box on cross_validation.rst
("Contrary to StratifiedKFold, the ``labels`` of :class:`LeaveOneLabelOut` should not encode the target class to predict...")
2016-02-23 00:22:16 +01:00
Bhargav Mangipudi d963df4a91 DOC - Minor documentation fixes - Fixes #5770 and #5761
- Fixes formatting issues in "warning" after LOLO.
- Fixes Error 404, "Page not found" in contributing section
2015-11-09 03:38:09 -06:00
Raghav R V f67e911124 DOC Modify documentation/examples for the new model_selection module 2015-10-29 16:49:23 +01:00
Gilles Louppe c769a65e15 COSMIT: variable names, documentation, etc 2015-09-07 10:08:17 +02:00
Gilles Louppe cf7bc7b035 ENH: rename to LabelKFold
COSMIT: doc, pep8, etc

Refactor code
2015-09-07 09:56:19 +02:00
Jean Kossaifi 6eb4028519 Added subject independent KFold
Changed SubjectIndependentKFold to DisjointGroupKFold

cosmetic changes  test (fix seed correctly, use assert_equal for
meaningful error messages)

Changed name to DisjointLabelKFold

Added example of use

FIX: whitespace related doctest failure

FIX: Python 2.6 requires the field numbers in print

FIX: change docstring to comment in test function

DOC: moved docstring from function to class

FIX: added call to parent class

FIX: error in calling the parent

DOC: fixed doctest

FIX: doctest

Cosmetic changes (minor refactoring)

Optimised code (use np.bincount)

Cosmetic: use samples instead of weight for clarity

Minor fix: removed shuffle parameter

Cosmetic

Use mergesort instead of quicksort for reproducibility.

Changed variable name 'y' to 'label'.

Added test for degenerate case where n_folds > n_labels.

Documented the requirement n_labels > n_folds.

DOC: improved description + added see also sections.

Fixed dtype of temporary arrays.

Improved test: check that one label is not in both test and training.

Added documentation for DisjoinLabelKFold.
2015-09-07 09:53:58 +02:00
Brian McFee 21a966ae8a ENH: added LabelShuffleSplit cv iterator 2015-08-30 12:00:18 +02:00
Theodore Vasiloudis 1cd4e7fcd8 [docs] [trivial] Fix small error in cross-validation docs.
In the cross-validation docs in the user guide, the StratifiedKFold example mentions 2-fold CV but actually uses 3. This fixes the text.
2015-07-07 12:46:41 +02:00
Andreas Mueller eaf1e8c256 Explain why we multiply mean by two 2015-02-07 08:20:16 +01:00
Thomas Unterthiner a6723edca5 ENH: cross-validate over predefined splits 2015-01-21 13:04:50 +01:00
Andreas Mueller c970fb51e7 COSMIT spelling 2015-01-15 15:09:35 -05:00
Joel Nothman 081a554698 FIX P/R/F metrics and scorers are now for binary problems only by default
Scorers for different average parameters have been added.
2014-12-09 13:56:51 +11:00
Joel Nothman 6deaea0e20 FIX score precision in doctest 2014-11-03 12:15:56 +11:00
Luis Pedro Coelho 2f275de41d ENH Add cross_val_predict function
This function returns the cross-validated prediction for each element in
the input data (i.e., the prediction that is made when that object is in
the test set).
2014-11-03 11:51:10 +11:00
Joel Nothman 9af14b3587 DOC restructure data transformation user guide 2014-09-11 16:54:03 +10:00
Lars Buitinck a46130e49c DOC typo 2014-08-18 14:33:14 +02:00
Andreas Mueller 5b247f90e4 move around examples for better structure. 2014-07-17 09:35:30 +02:00
Lars Buitinck c176ced74d DOC double backticks for fixed-width (code) font
Fixes #3337. Also other minor fixes while I was at it.
2014-07-06 14:18:33 +02:00
Ronald Phlypo 59d6a11a57 bug fix and deprectation warning added to cross-validation 2014-06-21 21:39:51 +02:00
Mikhail Korobov db51f7f0ba DOC mention that train_test_split returns a random split 2014-05-06 06:36:57 +06:00
Joel Nothman 17bca23b45 DOC a note on shuffling for cross-validation 2014-05-05 12:33:26 +10:00
José Ricardo a1aa44904f Fixing small typos in the docs. 2013-12-04 10:52:23 -02:00
Gael Varoquaux 84094f4edb Merge pull request #2543 from johncollins/dev
LOO is bad doc
2013-10-25 01:09:07 -07:00
john collins 4e5c637e1c one last comment fix 2013-10-23 18:30:44 -07:00
john collins 48e0f8eba4 updated for typos and a few wording changes 2013-10-23 18:25:42 -07:00
Steven Maude d4447e77f6 Update cross_validation.rst
Minor typo fixes.
2013-10-22 16:01:17 +01:00
john collins 35f5b4b396 LOO is bad doc 2013-10-21 18:40:37 -07:00
Olivier Grisel e3002c5efc FIX #2372: non-shuffling StratifiedKFold implementation and updated tests 2013-09-25 15:56:47 +02:00
Olivier Grisel 0ab527804e Revert "Fix accidental doctest breakage."
This reverts commit 4c95f5e00a.
2013-09-20 13:27:48 +02:00
Daniel Nouri 4c95f5e00a Fix accidental doctest breakage. 2013-09-20 12:41:39 +02:00
Lars Buitinck 0f5abaaed8 DOC boolean masks in CV generators are deprecated 2013-09-10 10:58:30 +02:00
Olivier Grisel 7426ef3c38 Lowercase y and more consistent blank line usage 2013-08-21 10:05:32 +02:00
Olivier Grisel 23e9e1e093 Remove spurious print statements in sample snippets to make the doc easier to follow 2013-08-21 10:03:15 +02:00
Olivier Grisel a43e30980b approximately the same percentage of samples 2013-08-21 09:04:14 +02:00
Olivier Grisel 88a9e41aec 2-fold => 2-fold cross-validation 2013-08-20 21:08:17 +02:00
Olivier Grisel 81c8557855 DOC: Simpler cross-validation iterator doc 2013-08-19 16:38:19 +02:00
Arnaud Joly 742b416495 DOC Remove deprecated reference + acknowledge @larsman 2013-07-28 21:15:08 +02:00
Andreas Mueller 7b6a808ff7 FIX whoops sorry! 2013-07-26 16:26:21 +02:00
Andreas Mueller f4fe3fdc7b Show 95% confidence interval, not 40% confidence ^^
Closes #1940.
2013-07-26 16:18:06 +02:00
Vlad Niculae d40caea23f DOC spelling and clarification 2013-06-29 16:18:24 +03:00
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03:00
Joel Nothman 524e5adcae DOC similar note in narrative docs 2013-06-12 12:55:57 +10:00
Lars Buitinck c8a5574bfb DOC typos in cross-validation description
Spotted by @jnothman.
2013-04-30 16:07:08 +02:00
Lars Buitinck cff20f6acd DOC define validation before cross validation
In response to @amueller's remarks at #1766.
2013-04-29 21:58:47 +02:00
Lars Buitinck c0f7b89e73 DOC rewrite description of k-fold CV
Fixes #1766 (I hope).
2013-04-28 16:49:45 +02:00
Jaques Grobler 6b47d7676a DOC improve description of cross validation 2013-04-28 16:43:25 +02:00
Jaques Grobler a4071f928c TYPO fix 2013-04-25 14:31:57 +02:00