为什么" Zeor错误"我的Matlab神经网络直方图中的线偏斜?

时间:2016-11-28 06:58:01

标签: matlab neural-network histogram

我使用以下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%。我还发现错误直方图像这样倾斜:

enter image description here

你能告诉我导致成功率低的问题是什么吗?

作为背景:

  1. 我有40个科目,每个科目有5个图像(=总共200个训练图像)
  2. 我使用PCA从图像中提取特征。
  3. 然后我使用根据PCA算法投影的测试图像运行代码。
  4. 非常感谢任何帮助!

0 个答案:

没有答案