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

公告

記錄我的生活和工作。。。
<2010年10月>
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

統(tǒng)計(jì)

  • 隨筆 - 182
  • 文章 - 1
  • 評(píng)論 - 41
  • 引用 - 0

留言簿(10)

隨筆分類(70)

隨筆檔案(182)

文章檔案(1)

如影隨形

搜索

  •  

最新隨筆

最新評(píng)論

閱讀排行榜

評(píng)論排行榜

Cross-validation 交叉驗(yàn)證

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.

  通俗的講,就是為了驗(yàn)證我們得到的模型在實(shí)踐當(dāng)中表現(xiàn)是否準(zhǔn)確!

Purpose of cross validation

我們?yōu)槭裁匆鼋徊骝?yàn)證?交叉驗(yàn)證的目的是什么呢?

  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

交叉驗(yàn)證的通常的種類:

Repeated random sub-sampling validation (通常說(shuō)的Holdout驗(yàn)證)

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.

  隨機(jī)從最初的樣本中選出部分,形成交叉驗(yàn)證數(shù)據(jù),而剩余的就當(dāng)做訓(xùn)練數(shù)據(jù)。 一般來(lái)說(shuō),少于原本樣本三分之一的數(shù)據(jù)被選做驗(yàn)證數(shù)據(jù)。

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].

傳統(tǒng)的k折交叉驗(yàn)證的變種!

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.

  留一驗(yàn)證,是只留一個(gè)observation來(lái)做驗(yàn)證,其余做訓(xùn)練,缺點(diǎn)當(dāng)然是計(jì)算代價(jià)超級(jí)大!

 

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

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

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


只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


統(tǒng)計(jì)系統(tǒng)
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            久久久av网站| 一区二区三区www| 久久久久久久网站| 久久综合色综合88| 亚洲欧美成人在线| 久久精品一区二区| 亚洲电影在线| 欧美人成免费网站| 欧美系列电影免费观看| 国产一区二区成人| 亚洲一区二区三区在线视频| 99视频精品在线| 欧美三级电影大全| 亚洲视频一区在线| 久久国产日本精品| 黄色成人片子| 欧美精品成人| 亚洲一区在线播放| 91久久综合| 欧美极品在线视频| 久久影院亚洲| 国产一级揄自揄精品视频| 日韩视频免费| 日韩一级免费| 久久国产精品第一页| 亚洲精品久久久蜜桃| 亚洲一区二区三区精品在线| 狠狠色狠狠色综合日日五| 亚洲激情视频| 亚洲第一福利在线观看| 亚洲欧美日韩人成在线播放| 性久久久久久久久| 亚洲黄色一区二区三区| 翔田千里一区二区| 亚洲一区在线免费| 国产精品99免费看 | 久久久久9999亚洲精品| 欧美激情在线狂野欧美精品| 久久综合九色99| 亚洲麻豆国产自偷在线| 国产精品h在线观看| 久久午夜激情| 一区二区三区在线观看视频| 欧美一级成年大片在线观看| 欧美高清视频www夜色资源网| 欧美专区日韩视频| 亚洲欧美日韩精品久久亚洲区 | 亚洲激情成人网| 午夜精品偷拍| 先锋影音久久久| 欧美日韩成人在线| 欧美激情国产高清| 韩国av一区二区三区在线观看| 亚洲视频在线看| 在线亚洲国产精品网站| 欧美α欧美αv大片| 久久一区二区视频| 国产一区二区高清| 亚洲桃花岛网站| 亚洲新中文字幕| 欧美久久久久久蜜桃| 亚洲国产精品久久久久婷婷884| 国产香蕉97碰碰久久人人| 亚洲成人影音| 久久久亚洲综合| 久久亚裔精品欧美| 国产永久精品大片wwwapp| 亚洲男人影院| 久久精品官网| 一区二区在线观看视频在线观看| 国产欧美精品国产国产专区| 久久精品综合网| 亚洲天堂网在线观看| 欧美视频专区一二在线观看| 一本色道久久99精品综合| 亚洲一区二区三区视频| 欧美亚洲不卡| 亚洲欧美在线aaa| 久久久精品动漫| 黄色成人av在线| 欧美国产成人精品| 日韩视频免费在线| 午夜精品久久久久久久99水蜜桃| 国产老肥熟一区二区三区| 亚洲女女女同性video| 久久久久高清| 亚洲日本欧美天堂| 国产精品高清免费在线观看| 亚洲综合日韩在线| 欧美+日本+国产+在线a∨观看| 最新热久久免费视频| 欧美视频一区二区在线观看 | 亚洲小说欧美另类社区| 久久国产精品电影| 亚洲福利久久| 先锋影音一区二区三区| 免费在线欧美视频| 夜夜狂射影院欧美极品| 国产伦精品一区二区三区照片91 | 亚洲一区二区在线免费观看| 欧美三级小说| 欧美一区免费视频| 亚洲九九九在线观看| 欧美一区二区私人影院日本| 在线观看中文字幕亚洲| 欧美午夜宅男影院| 久久久亚洲精品一区二区三区 | 久久精品一区二区三区中文字幕| 欧美激情精品久久久久久大尺度| 亚洲午夜免费视频| 在线免费观看日本一区| 国产精品白丝jk黑袜喷水| 久久久久**毛片大全| 一区二区三区欧美成人| 欧美成人嫩草网站| 欧美专区18| 一区二区三区欧美成人| 亚洲成色精品| 国产综合色产在线精品| 国产精品高潮呻吟| 欧美成人免费全部| 久久精品一区二区三区不卡| 亚洲一级黄色| 99热精品在线| 亚洲国产日韩在线| 男女精品网站| 久久久久久久性| 欧美一区二区三区日韩| 亚洲自拍偷拍福利| 一区二区三区国产在线| 亚洲人成人99网站| 136国产福利精品导航网址| 国产一区二区看久久| 国产精品尤物福利片在线观看| 欧美日韩国产精品专区| 欧美国产亚洲另类动漫| 美国十次成人| 麻豆成人在线播放| 亚洲精品你懂的| 亚洲国产一区二区三区高清| 伊人激情综合| 玉米视频成人免费看| 一区免费观看| 在线观看av一区| 亚洲国产精品视频| 亚洲日本成人女熟在线观看| 亚洲国产日本| 亚洲精品欧洲| 亚洲视频在线播放| 亚洲你懂的在线视频| 午夜亚洲福利在线老司机| 午夜精品久久| 久久精品一区| 欧美成人日本| 日韩午夜在线| 欧美一区二区视频在线观看| 欧美一级片一区| 久久看片网站| 欧美金8天国| 国产精品久久久久久户外露出| 国产精品久久77777| 99视频精品全部免费在线| 在线视频免费在线观看一区二区| 亚洲一区二区高清| 久久精品国产欧美激情| 欧美jizzhd精品欧美巨大免费| 欧美日韩第一区日日骚| 国产精品嫩草影院一区二区 | 久久久www成人免费无遮挡大片| 久久这里只有| 欧美三日本三级少妇三99| 国产精品视频不卡| 尤物精品国产第一福利三区| 亚洲精品国产拍免费91在线| 亚洲摸下面视频| 欧美激情久久久久久| 亚洲欧美成aⅴ人在线观看| 久久久久久穴| 欧美三日本三级三级在线播放| 国语自产精品视频在线看| 亚洲国内在线| 亚洲欧美综合网| 亚洲大胆在线| 午夜精品久久久久久久99水蜜桃| 美女诱惑黄网站一区| 国产欧美日本| 一本久久a久久精品亚洲| 久久精品亚洲| 亚洲视频在线免费观看| 猛干欧美女孩| 国产在线精品成人一区二区三区| 亚洲乱亚洲高清| 麻豆av一区二区三区久久| 中文无字幕一区二区三区| 欧美国产精品v| 精品二区视频| 久久精品国产成人| 亚洲网址在线| 欧美日本一区二区高清播放视频| 一区二区三区在线观看欧美|