GridSearch & Kfold & cross validation

what’s cross validation?

Cross-validation is a technique that is used for the assessment of how the results of statistical analysis generalize to an independent data set. Cross-validation is largely used in settings where the target is prediction and it is necessary to estimate the accuracy of the performance of a predictive model. The prime reason for the use of cross-validation rather than conventional validation is that there is not enough data available for partitioning them into separate training and test sets (as in conventional validation). This results in a loss of testing and modeling capability.

Cross-validation is also known as rotation estimation.

summary of cross validation

  • generate a data set based on statistical analysis
  • cross-validation for evaluation the model effectively.
  • not enough data

what’s the grid search?

Grid Search for Parameter Selection.

kfold?

kfold is the method to split the data into k folds.

what’s the role of training/validate/test ?

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
K折交叉验证(K-Fold Validation)是一种常用的模型评估方法。在K折交叉验证中,原始数据被分成K个子集(Fold),每个子集轮流作为验证集,其余的K-1个子集作为训练集。这样会得到K个模型,每个模型都在不同的验证集上进行评估。最后,将K个模型的评估结果进行平均,得到交叉验证误差(MSE)。 举个例子来说明,假设我们有一个数据集,我们选择3折交叉验证。首先,将数据集分成3个子集,每个子集包含相同数量的样本。然后,我们分别使用这3个子集作为验证集,其余的2个子集作为训练集。这样就得到了3个模型。每个模型都在不同的验证集上进行评估,得到3个评估结果。最后,将这3个评估结果求平均,得到交叉验证误差。这个交叉验证误差可以作为评估模型性能的指标,用于模型的优化和选择。 K折交叉验证能够有效利用有限的数据,并且评估结果能够尽可能接近模型在测试集上的表现,因此它是一种常用的模型选择和优化方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [[深度概念]·K-Fold 交叉验证 (Cross-Validation)的理解与应用](https://blog.csdn.net/xiaosongshine/article/details/88658274)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [k-fold validation (k折验证)](https://blog.csdn.net/xiaohuihui1994/article/details/83375783)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值