gpt4 book ai didi

machine-learning - Matlab 2010 中训练测试验证集中的数据拆分

转载 作者:太空宇宙 更新时间:2023-11-03 20:31:15 30 4
gpt4 key购买 nike

我的问题是:Matlab 2010 提供了神经网络过程中的测试、验证期选项。这是数据拆分还是我必须使用“crossvalind”进行数据拆分?

最佳答案

这是 documentation 的摘录:

When training multilayer networks, the general practice is to first divide the data into three subsets. The first subset is the training set, which is used for computing the gradient and updating the network weights and biases. The second subset is the validation set. The error on the validation set is monitored during the training process. [...] The test set error is not used during training, but it is used to compare different models. [...]

提供了四个函数用于将数据划分为训练集、验证集和测试集:divideranddivideblockdivideint红利。 (实际上还有第五个 dividetrain 将所有实例分配给训练)

table

对于更复杂的方法(交叉验证、分层等),请查看 cvpartitioncrossvalind 函数。

关于machine-learning - Matlab 2010 中训练测试验证集中的数据拆分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11324321/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com