提前停止感知器培训

时间:2017-02-25 15:35:57

标签: matlab neural-network training-data

使用MATLAB的神经网络工具箱我创建了一个单层感知器。我可以使用列车功能来训练神经网络。但是,我要么必须设置时期数量,要么以交互方式停止训练。 我想将我的数据集的一部分用作验证,并使用提前停止来结束培训并避免过度拟合。

使用train功能时,我必须使用当前参数指定时期数或交互式停止训练。如何使用提前停止来停止训练?

我试图使用以下分类而没有太大成功:

net.divideFcn = 'divideblock';
net.divideParam.trainRatio = 70/100; %70 percent of data used for training
net.divideParam.valRatio = 15/100; %15 percent of data used for validation
net.divideParam.testRatio = 15/100; %15 percent of data used for testing

1 个答案:

答案 0 :(得分:0)

你有没有尝试改变:

max_fail

例如?我相信默认值是6.这是当caffe::ReadImageToDatum(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, int, int, int, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, caffe::Datum*) 个时期的验证丢失没有减少时停止训练的参数。

相关问题