青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

O(1) 的小樂

Job Hunting

公告

記錄我的生活和工作。。。
<2010年9月>
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

統計

  • 隨筆 - 182
  • 文章 - 1
  • 評論 - 41
  • 引用 - 0

留言簿(10)

隨筆分類(70)

隨筆檔案(182)

文章檔案(1)

如影隨形

搜索

  •  

最新隨筆

最新評論

閱讀排行榜

評論排行榜

Cross-validation 交叉驗證

Cross-validation is a technique for assessing how the results of a statistical analysis will generalize to an independent data set. It is mainly used in settings where the goal is prediction, and one wants to estimate how accurately a predictive model will perform in practice. One round of cross-validation involves partitioning a sample of data into complementary subsets, performing the analysis on one subset (called the training set), and validating the analysis on the other subset (called the validation set or testing set). To reduce variability, multiple rounds of cross-validation are performed using different partitions, and the validation results are averaged over the rounds.

  通俗的講,就是為了驗證我們得到的模型在實踐當中表現是否準確!

Purpose of cross validation

我們為什么要做交叉驗證?交叉驗證的目的是什么呢?

  Suppose we have a model with one or more unknown parameters, and a data set to which the model can be fit (the training data set). The fitting process optimizes the model parameters to make the model fit the training data as well as possible. If we then take an independent sample of validation data from the same population as the training data, it will generally turn out that the model does not fit the validation data as well as it fits the training data. This is called overfitting, and is particularly likely to happen when the size of the training data set is small, or when the number of parameters in the model is large. Cross-validation is a way to predict the fit of a model to a hypothetical validation set when an explicit validation set is not available.

 

Common types of cross-validation

交叉驗證的通常的種類:

Repeated random sub-sampling validation (通常說的Holdout驗證)

This method randomly splits the dataset into training and validation data. For each such split, the model is fit to the training data, and predictive accuracy is assessed using the validation data. The results are then averaged over the splits. The advantage of this method (over k-fold cross validation) is that the proportion of the training/validation split is not dependent on the number of iterations (folds). The disadvantage of this method is that some observations may never be selected in the validation subsample, whereas others may be selected more than once. In other words, validation subsets may overlap. This method also exhibits Monte Carlo variation, meaning that the results will vary if the analysis is repeated with different random splits.

In a stratified variant of this approach, the random samples are generated in such a way that the mean response value (i.e. the dependent variable in the regression) is equal in the training and testing sets. This is particularly useful if the responses are dichotomous with an unbalanced representation of the two response values in the data.

  隨機從最初的樣本中選出部分,形成交叉驗證數據,而剩余的就當做訓練數據。 一般來說,少于原本樣本三分之一的數據被選做驗證數據。

K-fold cross-validation

In K-fold cross-validation, the original sample is randomly partitioned into K subsamples. Of the K subsamples, a single subsample is retained as the validation data for testing the model, and the remainingK ? 1 subsamples are used as training data. The cross-validation process is then repeated K times (thefolds), with each of the K subsamples used exactly once as the validation data. The K results from the folds then can be averaged (or otherwise combined) to produce a single estimation. The advantage of this method over repeated random sub-sampling 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 [5].

In stratified K-fold cross-validation, the folds are selected so that the mean response value is approximately equal in all the folds. In the case of a dichotomous classification, this means that each fold contains roughly the same proportions of the two types of class labels.

k × 2 cross-validation

This is a variation on k-fold cross-validation. For each fold, we randomly assign data points to two sets d0and d1, so that both sets are equal size (this is usually implemented as shuffling the data array and then splitting in two). We then train on d0 and test on d1, followed by training on d1 and testing on d0.

This has the advantage that our training and test sets are both large, and each data point is used for both training and validation on each fold. In general, k = 5 (resulting in 10 training/validation operations) has been shown to be the optimal value of k for this type of cross-validation[citation needed].

傳統的k折交叉驗證的變種!

Leave-one-out cross-validation

As the name suggests, leave-one-out cross-validation (LOOCV) involves using a single observation from the original sample as the validation data, and the remaining observations as the training data. This is repeated such that each observation in the sample is used once as the validation data. This is the same as a K-fold cross-validation with K being equal to the number of observations in the original sample. Leave-one-out cross-validation is usually very expensive from a computational point of view because of the large number of times the training process is repeated.

  留一驗證,是只留一個observation來做驗證,其余做訓練,缺點當然是計算代價超級大!

 

Measures of fit

The goal of cross-validation is to estimate the expected level of fit of a model to a data set that is independent of the data that were used to train the model. It can be used to estimate any quantitative measure of fit that is appropriate for the data and model. For example, for binary classification problems, each case in the validation set is either predicted correctly or incorrectly. In this situation the misclassification error rate can be used to summarize the fit, although other measures like positive predictive value could also be used. When the value being predicted is continuously distributed, the mean squared error, root mean squared error or median absolute deviation could be used to summarize the errors.

 

Limitations and misuse

Cross-validation only yields meaningful results if the validation set and test set are drawn from the same population. In many applications of predictive modeling, the structure of the system being studied evolves over time. This can introduce systematic differences between the training and validation sets. For example, if a model for predicting stock values is trained on data for a certain five year period, it is unrealistic to treat the subsequent five year period as a draw from the same population. As another example, suppose a model is developed to predict an individual's risk for being diagnosed with a particular disease within the next year. If the model is trained using data from a study involving only a specific population group (e.g. young people or males), but is then applied to the general population, the cross-validation results from the training set could differ greatly from the actual predictive performance.

If carried out properly, and if the validation set and training set are from the same population, cross-validation is nearly unbiased. However there are many ways that cross-validation can be misused. If it is misused and a true validation study is subsequently performed, the prediction errors in the true validation are likely to be much worse than would be expected based on the results of cross-validation.

These are some ways that cross-validation can be misused:

  • By using cross-validation to assess several models, and only stating the results for the model with the best results.
  • By performing an initial analysis to identify the most informative features using the entire data set – if feature selection or model tuning is required by the modeling procedure, this must be repeated on every training set. If cross-validation is used to decide which features to use, an inner cross-validation to carry out the feature selection on every training set must be performed.
  • By allowing some of the training data to also be included in the test set – this can happen due to "twinning" in the data set, whereby some exactly identical or nearly identical samples are present in the data set.

 

image

  我們首先有不同復雜度的modle,然后利用training data進行訓練,利用validation set驗證,Error求和,選擇error最小的,最后選擇模型輸出,計算Final Error!

posted on 2010-10-30 21:56 Sosi 閱讀(2739) 評論(0)  編輯 收藏 引用

統計系統
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            99精品视频免费| 久久久蜜桃一区二区人| 小辣椒精品导航| 在线一区二区三区四区| 99pao成人国产永久免费视频| 在线看一区二区| 亚洲国产精品热久久| 美女视频黄 久久| 亚洲人成亚洲人成在线观看| 蜜桃av一区二区三区| 美女视频黄 久久| 欧美精品激情在线| 国产精品揄拍500视频| 国产一区二区在线观看免费| 亚洲动漫精品| 在线一区日本视频| 久久久久久久久综合| 欧美电影免费观看| 亚洲午夜电影网| 久久婷婷av| 欧美色欧美亚洲另类七区| 国产欧美一区二区三区视频| 亚洲国产美女精品久久久久∴| 一道本一区二区| 久久久91精品国产| 日韩一级黄色片| 久久亚洲风情| 国产欧美日韩精品一区| 日韩视频在线免费观看| 欧美在线一级视频| 亚洲美女色禁图| 久热精品视频在线观看| 国产精品视频久久| 91久久中文字幕| 久久精品一区| 一区二区三区欧美在线观看| 免费观看成人鲁鲁鲁鲁鲁视频| 国产精品三上| 亚洲视频狠狠| 亚洲激情偷拍| 欧美在线地址| 国产欧美日韩不卡| 午夜精品一区二区三区在线| 亚洲人午夜精品免费| 久久久久高清| 狠狠色狠狠色综合日日tαg| 欧美一区二区三区电影在线观看| 亚洲精品乱码久久久久久蜜桃91 | 国产一区二区三区四区| 在线视频亚洲欧美| 亚洲精品国产视频| 欧美第一黄网免费网站| 亚洲电影av| 麻豆91精品| 久久久福利视频| 国内外成人免费视频| 久久成人国产| 久久成人精品电影| 国产专区欧美专区| 久热精品在线| 免费91麻豆精品国产自产在线观看| 亚洲人体大胆视频| 欧美激情第六页| 国产日韩欧美制服另类| 亚洲欧美日韩一区二区三区在线观看| 亚洲国产精品综合| 欧美国产日韩精品| 一本大道久久a久久综合婷婷| 亚洲国产欧美国产综合一区| 另类尿喷潮videofree | 国产一区二区三区不卡在线观看| 亚洲一区二区三| 亚洲午夜一区二区三区| 国产精品美女在线| 久久成人免费| 久久女同互慰一区二区三区| 一区二区在线不卡| 亚洲国产精品999| 欧美日韩精品免费观看视频| 亚洲制服av| 欧美一区二区日韩一区二区| 韩国精品主播一区二区在线观看| 久久嫩草精品久久久久| 免费日韩av片| 亚洲永久精品国产| 久久精品道一区二区三区| 亚洲欧洲一区| 亚洲免费一级电影| 亚洲电影在线看| 亚洲视频在线一区观看| 国内精品福利| 亚洲精品国产系列| 国产亚洲精品v| 亚洲黄一区二区三区| 国产精品青草久久久久福利99| 久久夜色精品一区| 欧美视频一区在线观看| 久久综合九色综合欧美狠狠| 欧美激情区在线播放| 欧美亚洲一区| 欧美精品电影| 久久人人精品| 欧美日韩三级一区二区| 久久亚洲视频| 国产精品久久久久久亚洲调教| 美女图片一区二区| 国产九区一区在线| 亚洲免费观看视频| 影音国产精品| 中文国产一区| 亚洲看片一区| 久久天天躁夜夜躁狠狠躁2022| 亚洲欧美日韩国产| 欧美激情中文不卡| 欧美成人午夜免费视在线看片| 国产精品嫩草99a| 亚洲精品视频在线看| 国内视频精品| 亚洲欧美日韩国产成人| 在线视频中文亚洲| 欧美国产第一页| 欧美~级网站不卡| 国产视频一区二区在线观看| 一区二区电影免费观看| 亚洲国产aⅴ天堂久久| 亚洲人成人77777线观看| 午夜一区在线| 欧美一区二区三区精品| 欧美体内she精视频| 亚洲美女黄网| 亚洲视频第一页| 欧美日韩中文字幕在线| 亚洲精品亚洲人成人网| 日韩亚洲成人av在线| 欧美成人亚洲| 亚洲福利电影| 亚洲美女av在线播放| 欧美极品在线视频| 亚洲精品在线看| 亚洲一级黄色| 国产精品日韩欧美一区| 亚洲欧美日韩直播| 久久久久久亚洲精品中文字幕| 国产欧美日韩另类一区| 欧美亚洲一级| 久久精品日产第一区二区| 狠狠色狠色综合曰曰| 老司机免费视频一区二区| 亚洲成人在线网站| 亚洲精品久久久久久久久久久久久 | 欧美成人免费全部| 亚洲国产精品黑人久久久| 91久久精品国产91久久性色| 老妇喷水一区二区三区| 亚洲国产专区| 亚洲免费视频中文字幕| 国产欧美一区二区精品仙草咪 | 亚洲国产成人精品视频| 夜夜嗨av一区二区三区| 国产精品久久久一区麻豆最新章节| 亚洲一区二区三区免费视频| 久久精品国产亚洲精品| 亚洲国产高清在线| 欧美三级电影一区| 欧美一区二区三区的| 亚洲第一在线视频| 亚洲综合精品四区| 伊人久久成人| 欧美性猛交一区二区三区精品| 午夜欧美理论片| 亚洲国产欧美一区二区三区久久 | 亚洲美洲欧洲综合国产一区| 欧美视频免费| 久久精品在线播放| 亚洲伦理自拍| 久久一日本道色综合久久| 一本一本久久a久久精品综合妖精| 亚洲——在线| 国产欧美日韩视频一区二区三区 | 女人天堂亚洲aⅴ在线观看| 亚洲免费av网站| 麻豆成人在线播放| 亚洲免费在线精品一区| 亚洲国产精品第一区二区三区| 国产精品国产三级国产aⅴ无密码| 欧美资源在线观看| 一区二区激情小说| 亚洲福利视频网| 久久久国产精品亚洲一区| 亚洲精品国久久99热| 国产亚洲精品自拍| 国产精品啊v在线| 欧美高清视频在线| 久久精品夜色噜噜亚洲aⅴ | 欧美国产日韩精品| 欧美一区二区视频在线| 宅男精品视频| 亚洲人成亚洲人成在线观看| 巨胸喷奶水www久久久免费动漫| 亚洲欧洲99久久|