Train Recgnition Neural Network on image moements

I am trying to train pattern recognition neural network on set of image moments values, when trying to simulate i keep getting the same result for every input, tried to normalize the data using "mapminmax" but still no luck
P.S the seven moments contain negative numbers

2 comentarios

Greg Heath
Greg Heath el 3 de Sept. de 2013
Insufficient explanation. Include relevant code and error message.
I am using matlab neural network wizard, the code generated :
inputs = ann_data_match_only_mapminmax';
targets = ann_data_match_only_mapminmax_truth_binry';
% Create a Pattern Recognition Network
hiddenLayerSize = 10;
net = patternnet(hiddenLayerSize);
% Setup Division of Data for Training, Validation, Testing
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
% Train the Network
[net,tr] = train(net,inputs,targets);
% Test the Network
outputs = net(inputs);
errors = gsubtract(targets,outputs);
performance = perform(net,targets,outputs)
% View the Network
view(net)
when trying to simulate the result network on one entry of the training data
I = ann_data_match_only_mapminmax(1,:);
I = I';
I =
1.0000
-0.7889
-0.7029
-0.9304
-0.9990
-1.0000
-0.9988
T = sim(net,I);
T = round(T);
>> T'
ans =
1 1 1 0 0 1 0
where i expect the output to be
1 0 1 1 0 1 0
I was think it is because of input data not normalized,, any idea why ?

Iniciar sesión para comentar.

 Respuesta aceptada

Greg Heath
Greg Heath el 29 de Sept. de 2013

1 voto

Mapminmax is a default.
What did you get for performance?
You may have converged to a local min.
Repeat 9 more times with different random initial weights.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 2 de Sept. de 2013

Respondida:

el 29 de Sept. de 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by