博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Why validation set ?
阅读量:4517 次
发布时间:2019-06-08

本文共 1190 字,大约阅读时间需要 3 分钟。

Let's assume that you are training a model whose performance depends on a set of hyperparameters. In the case of a neural network, these parameters may be for instance the learning rate or the number of training iterations.

Given a choice of hyperparameter values, you use the training set to train the model. But, how do you set the values for the hyperparameters? That's what the validation set is for. You can use it to evaluate the performance of your model for different combinations of hyperparameter values (e.g. by means of a grid search process) and keep the best trained model.

But, how does your selected model compares to other different models? Is your neural network performing better than, let's say, a random forest trained with the same combination of training/test data? You cannot compare based on the validation set, because that validation set was part of the fitting of your model. You used it to select the hyperparameter values!

The test set allows you to compare different models in an unbiased way, by basing your comparisons in data that were not use in any part of your training/hyperparameter selection process.


 

转载于:https://www.cnblogs.com/sddai/p/10500540.html

你可能感兴趣的文章
Win10系列:C#应用控件进阶3
查看>>
MySQL的MyISAM和InnoDB对比及优化(转)
查看>>
dp题目列表
查看>>
go 测试sort性能
查看>>
Docker删除/停止容器
查看>>
js获取访问IP、地区、、当前操作浏览器
查看>>
推荐系统中的相似性度量
查看>>
百度地图api的介绍和使用
查看>>
网络虚拟化基础协议之Geneve
查看>>
hdu 4597 Play Game(记忆化搜索)
查看>>
音乐网站开发建设定制,手机版DJ音乐网站制作
查看>>
Python学习:Mysql(二)
查看>>
QTP提示加载数据表文件时出错的解决方案
查看>>
VS2010 发布网站总是连同cs文件一起发布了
查看>>
python包管理工具pip
查看>>
async与defer
查看>>
勿施于人之己所不欲
查看>>
asp.net中runat="server"的含义
查看>>
Struts2的OGNL标签详解
查看>>
jquery access方法 有什么用
查看>>