What´s wrong with my neural network´s training?
1 view (last 30 days)
Show older comments
Dear all,
I have this code for training neural network (type newff) and MATLAB is almost all day busy, but nothing happens (no training newff). Does anyone know, where is the mistake?
load ('trenovaci_modely2_stredni')
D = [stredni_tvar{1,:}];
F = [stredni_tvar{2,:}];
net_stredni_MLP = newff(D,F,20);
net.trainparam.epochs = 100;
net = train(net_stredni_MLP,D,F);
D = stredni_tvar{1,7};
J = sim(net_stredni_MLP,D);
save net_stredni_MLP
disp('Neuronová síť byla uložena')
Thank you for your answers.
0 Comments
Accepted Answer
Greg Heath
on 19 Mar 2015
net2 = train(net1,...);
Now there are 2 nets one trained and one untrained. Which do you think is untrained?
*Thank you for formally accepting this answer*
Greg
4 Comments
More Answers (2)
Greg Heath
on 26 Mar 2015
load('nntoolMLP.mat')
whos
% Name Size Bytes Class
%
% D 1x1 1776 cell
% F 1x1 616560 cell
% J 1x1 2160 cell
% stredni_tvar 2x301 1184736 cell
d = cell2mat(D);
f = cell2mat(F);
j = cell2mat(J);
s = cell2mat(stredni_tvar);
whos
Name Size Bytes Class
D 1x1 1776 cell
F 1x1 616560 cell
J 1x1 2160 cell
stredni_tvar 2x301 1184736 cell
d 208x1 1664 double
f 256x301 616448 double
j 256x1 2048 double
s 464x301 1117312 double
Your dimensions are not compatible.
Start by converting to doubles
Then fix the dimensions.
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!