【发布时间】:2014-11-09 05:57:21
【问题描述】:
首先 - 这是我的数据的样子:
in1 = [a vector of [5189,1]]
in2 = [a vector of [5189,1]]
in3 = [a vector of [5189,1]]
out = [a vector of [5189,1]]
我要做的是使用 3 个输入预测输出/
现在,我一直在按照以下步骤训练径向基网络:
net = newrbe([in1';in2';in3'], out', 100);
然后使用带有sim 函数的测试集获得预测。首先,这是做我应该做的事情的正确方法吗?我得到了一个很好的答案/预测,因此我认为它很好。
现在,我想使用相同的方法训练一个循环神经网络。我按照手册做了以下操作:http://www.mathworks.com/help/nnet/ref/layrecnet.html
所以,
net = layrecnet(1:2,100);
然后我只是做了[Xs,Xi,Ai,Ts] = preparets(net,X,C);
在哪里X = [in1';in2';in3']
和C = out';
我得到了错误:
Error using vertcat
Dimensions of matrices being concatenated are not consistent.
因此,使用"Index Exceeds Matrix Dimensions" neural network function error的答案
我做了X = num2cell([in1',in2',in3']);
和C = num2cell(out');
然后再次尝试preparets函数得到:
Error using preparets (line 161)
The number of input signals does not match network's non-feedback inputs.
或
Error using network/train (line 293)
Number of inputs does not match net.numInputs.
有人可以教/解释我应该如何完成这件事吗?我对什么是递归神经网络有一个不错的了解,但是这个问题似乎是一个 matlab 问题。请告诉我应该如何提供输入/反馈等?非常感谢!
【问题讨论】:
标签: matlab data-analysis neural-network