我使用以下code that is found here:
在Matlab中运行人工神经网络算法train_target = zeros(40,200);
for row = 1 : size(train_target, 1)
col = 5*(row-1)+1;
train_target(row, col:col+4) = 1;
end
%%%%%%%% Creating Network and Training Them %%%%%%%%%%%
rand('seed', 491218382)
net = patternnet([90]);
net.divideFcn = 'divideint';
net.divideParam.trainRatio =100/100;%% only training
net.divideParam.valRatio = 00/100;
net.divideParam.testRatio = 00/100;
net.trainParam.goal=1e-25;
for i=2:2%%% set the activation function linear for the output layer
net.layers{i}.transferFcn = 'purelin';
end
% Train network
[net,tr] = trainrp(net,train_images,train_target);
在最好的情况下,我的成功率大约为20%。我还发现错误直方图像这样倾斜:
你能告诉我导致成功率低的问题是什么吗?
作为背景:
非常感谢任何帮助!