Matlab神经网络,如何强制使用某些集合进行训练,验证和测试? [英] Matlab neural network, how to force the use of certain sets for training, validation and testing?

查看:1019
本文介绍了Matlab神经网络,如何强制使用某些集合进行训练,验证和测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果使用GUI nnstart,则仅提供输入和输出,但由于行是随机选择的,因此您无法决定将对哪些行进行训练,验证和测试集. 如何手动指定它们?

If you use the GUI nnstart, you provide only input and output, but you can't decide which rows are going to be training, validation and test set because they are chosen randomly. How can they be specified manually?

推荐答案

您可以使用从NNSTART启动的任何GUI来创建一些示例培训代码.然后通过设置以下数据划分值来自定义该代码:

You can use any of the GUI's launched from NNSTART to create some sample training code. Then customize that code by setting the following data division values:

net.divideFcn = 'divideind'; % Divide data by indices (i.e. not randomly)
net.divideParam.trainInd = [... training indices you want ...];
net.divideParam.valInd = [... training indices you want ...];
net.divideParam.testInd = [... training indices you want ...];

这篇关于Matlab神经网络,如何强制使用某些集合进行训练,验证和测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆