Difference between revisions of "Stratified K-Fold Cross-Validation Task"

From GM-RKB
Jump to: navigation, search
(ContinuousReplacement)
(Tag: continuous replacement)
(1995)
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
** It can be solved by a [[Stratified K-Fold Cross-Validation System]] that [[Stratified K-Fold Cross-Validation Algorithm]].
 
** It can be solved by a [[Stratified K-Fold Cross-Validation System]] that [[Stratified K-Fold Cross-Validation Algorithm]].
 
* <B>Example(s):</B>
 
* <B>Example(s):</B>
** [[SciKit-Learn StratifiedKFold Task]] ([[#2020b|SciKit-Learn, 2020]])
+
** a [[Stratified 10-Fold Cross-Validation Task]],
 +
** a [[SciKit-Learn StratifiedKFold Task]] ([[#2020b|SciKit-Learn, 2020]]).
 
* <B>Counter-Example(s):</B>
 
* <B>Counter-Example(s):</B>
 
** a [[10-fold Cross-Validation Task]],
 
** a [[10-fold Cross-Validation Task]],
Line 38: Line 39:
 
* (del Pozo et al., 2013) ⇒ [[Juan A. Fernandez del Pozo]] [[Pedro Larranaga]], and [[Concha Bielza]] (2013). [https://pdfs.semanticscholar.org/presentation/5a2a/4fc79644bebf6d3459273f6372c6a3ad3cf5.pdf "Stratified Cross-Validation in Multi-Label Classification Using Genetic Algorithms"]. In: TIN2010-20900-C04. Computational Intelligence Group Universidad Politecnica de Madrid.  
 
* (del Pozo et al., 2013) ⇒ [[Juan A. Fernandez del Pozo]] [[Pedro Larranaga]], and [[Concha Bielza]] (2013). [https://pdfs.semanticscholar.org/presentation/5a2a/4fc79644bebf6d3459273f6372c6a3ad3cf5.pdf "Stratified Cross-Validation in Multi-Label Classification Using Genetic Algorithms"]. In: TIN2010-20900-C04. Computational Intelligence Group Universidad Politecnica de Madrid.  
 
** QUOTE: [[Stratified cross-validation]] reduces the [[variance]] of the [[estimate]]s and improves the [[estimation]] of the [[generalization performance]] of [[classifier algorithm]]s. <P>However, how to stratify a [[data set]] in a [[multi-label supervised classification]] setting is a hard problem, since each fold should try to mimic the [[joint probability distribution]] of the whole [[set]] of [[class variable]]s.
 
** QUOTE: [[Stratified cross-validation]] reduces the [[variance]] of the [[estimate]]s and improves the [[estimation]] of the [[generalization performance]] of [[classifier algorithm]]s. <P>However, how to stratify a [[data set]] in a [[multi-label supervised classification]] setting is a hard problem, since each fold should try to mimic the [[joint probability distribution]] of the whole [[set]] of [[class variable]]s.
 +
 +
=== 2011 ===
 +
* (Purushotham & Tripathy, 2011) ⇒ [[Swarnalatha Purushotham]], and [[B. K. Tripathy]] (2011, December). [https://link.springer.com/chapter/10.1007%2F978-3-642-29216-3_74 "Evaluation of Classifier Models Using Stratified Tenfold Cross Validation Techniques"]. In: International Conference on Computing and Communication Systems. [https://doi.org/10.1007/978-3-642-29216-3_74 DOI:10.1007/978-3-642-29216-3_74]
 +
 +
=== 1995 ===
 +
* (Kohavi, 1995) ⇒  [[Ron Kohavi]] (1995). [http://ai.stanford.edu/~ronnyk/accEst.pdf "A Study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection"]. In: [[Proceedings of the Fourteenth International Joint Conference on Artificial Intelligence (IJCAI 95)]].
 +
** QUOTE: Formally, let $\mathcal{D}_{(i)}$ be the [[test set]] that includes [[instance]] $x_i =\langle v_i, y_i\rangle $ then the [[cross-validation]] [[estimate]] of [[accuracy]] <P><div style="text-align:center"><math>acc_{cv} =\dfrac{1}{n} \displaystyle \sum_{\langle v_i,y_i\rangle\in \mathcal{D}} \delta \left(\mathcal{I}(\mathcal{D}\backslash\mathcal{D}_{(i)},v_i),y_i\right) </math></div><P>The [[cross-validation]] [[estimate]] is a [[random number]] that depends on the [[division]] into [[fold]]s. '''[[Complete cross-validation]]''' is the [[average]] of all $\binom{m}{m/k}$ possibilities for choosing $m/k$ [[instance]]s out of $m$, but it is usually too expensive. Except for [[leave-one-one (n-fold cross-validation)]], which is always complete, [[k-fold cross-validation]] is estimating [[complete k-fold cross-validation]] using a single split of the [[data]] into the [[fold]]s. Repeating [[cross-validation]] multiple times using different splits into folds provides a better [[Monte Carlo estimate]] to the [[complele cross-validation]] at an added cost. In '''[[stratified cross-validation]]''' the folds are stratified so that they contain approximately the same [[proportion]]s of labels as the original [[dataset]].
 +
 
----
 
----
 
__NOTOC__
 
__NOTOC__
 
[[Category:Concept]]
 
[[Category:Concept]]
 
[[Category:Machine Learning]]
 
[[Category:Machine Learning]]
 +
[[Category:Statistical Inference]]

Latest revision as of 00:25, 15 February 2020

A Stratified K-Fold Cross-Validation Task is a K-Fold Cross-Validation Task in which a class distribution remains closely the same across all the folds.



References

2020a

  • (Wikipedia, 2020) ⇒ https://www.wikiwand.com/en/Cross-validation_(statistics)#/Non-exhaustive_cross-validation Retrieved:2020-2-14.
    • In k-fold cross-validation, the original sample is randomly partitioned into k equal sized subsamples. Of the k subsamples, a single subsample is retained as the validation data for testing the model, and the remaining k − 1 subsamples are used as training data. The cross-validation process is then repeated k times, with each of the k subsamples used exactly once as the validation data. The k results can then be averaged to produce a single estimation. The advantage of this method over repeated random sub-sampling (see below) is that all observations are used for both training and validation, and each observation is used for validation exactly once. 10-fold cross-validation is commonly used,[1] but in general k remains an unfixed parameter.

      For example, setting k = 2 results in 2-fold cross-validation. In 2-fold cross-validation, we randomly shuffle the dataset into two sets d0 and d1, so that both sets are equal size (this is usually implemented by shuffling the data array and then splitting it in two). We then train on d0 and validate on d1, followed by training on d1 and validating on d0.

      When k = n (the number of observations), k-fold cross-validation is equivalent to leave-one-out cross-validation[2]. In stratified k-fold cross-validation, the partitions are selected so that the mean response value is approximately equal in all the partitions. In the case of binary classification, this means that each partition contains roughly the same proportions of the two types of class labels. In repeated cross-validation the data is randomly split into k partitions several times. The performance of the model can thereby be averaged over several runs, but this is rarely desirable in practice.

  1. McLachlan, Geoffrey J.; Do, Kim-Anh; Ambroise, Christophe (2004). Analyzing microarray gene expression data. Wiley.
  2. "Elements of Statistical Learning: data mining, inference, and prediction. 2nd Edition". web.stanford.edu. Retrieved 2019-04-04.

2020b

2020c

2017

2013

2011

1995