【问题标题】:Matlab neural network, how to force the use of certain sets for training, validation and testing?Matlab神经网络,如何强制使用某些集合进行训练、验证和测试?
【发布时间】:2014-04-25 16:53:29
【问题描述】:

如果您使用 GUI nnstart,您只提供输入和输出,但您无法决定哪些行将作为训练、验证和测试集,因为它们是随机选择的。 如何手动指定?

【问题讨论】:

    标签: neural-network matlab


    【解决方案1】:

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

    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 ...];
    

    【讨论】:

      猜你喜欢
      • 2015-06-09
      • 2014-02-24
      • 2013-05-25
      • 2018-10-30
      • 2018-09-19
      • 2010-11-20
      • 1970-01-01
      • 2011-02-27
      • 2015-04-17
      相关资源
      最近更新 更多