k折交叉验证法划分数据集
时间: 2023-08-17 09:13:29 浏览: 99
k折交叉验证法是将数据集随机划分为k个大小相同的互斥子集的方法。每次选择k-1份子集作为训练集,剩下的1份子集作为测试集。然后重复这个过程k次,每次选择不同的子集作为测试集。最后,将k次的测试误差取平均,得到一个交叉验证误差。这样可以评估模型的性能,并选择最优的模型和参数。\[3\]
#### 引用[.reference_title]
- *1* [K折验证交叉验证](https://blog.csdn.net/qq_36535820/article/details/119762665)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [利用KNN算法进行手写字体识别-数据集划分-K折交叉验证法代码实现](https://blog.csdn.net/m0_38052500/article/details/107290184)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [k折交叉验证(k-fold Cross-validation)](https://blog.csdn.net/weixin_48697962/article/details/125968990)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文