Conversion to struct from double is not possible- Neural Network Pattern Recognition Toolbox
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Chaou
el 28 de Jul. de 2013
Comentada: LuMig
el 8 de Nov. de 2019
Hello. I'm trying to execute the simplest example for Pattern recognition network, given in this link http://www.mathworks.fr/fr/help/nnet/ref/patternnet.html for iris flowers classification.
[x,t] = iris_dataset;
net = patternnet(10)
net = train(net,x,t);
view(net)
y = net(x);
perf = perform(net,t,y)
classes = vec2ind(y)
Error using struct Conversion to struct from double is not possible.
And it's the same error if I use the Neural Network interface. Can anyone help me, please? Thank you very much!
4 comentarios
Don Mathis
el 14 de Jun. de 2014
Editada: Don Mathis
el 14 de Jun. de 2014
I discovered that the cause of my replication of your error was the fact that I had redefined the 'softmax' function in my MATLAB workspace. There are a number of functions that would cause this error if you redefine them, such as: netsum purelin tansig dividerand mse adaptwb learngdm crossentropy softmax
Respuesta aceptada
Greg Heath
el 28 de Jul. de 2013
I cut and pasted your code. It ran with no problem or messages.
0 comentarios
Más respuestas (3)
MHS
el 27 de Abr. de 2018
I faced similar problem and it was resolved by resetting the workspace path list to default.
0 comentarios
ahmad ali mohammad
el 9 de Nov. de 2016
I was faced with the same problem When I run certain code occurs after you run this code I have to remove and re-install MATLAB
1 comentario
Afonso Costa
el 1 de Dic. de 2018
Editada: Afonso Costa
el 1 de Dic. de 2018
I found a solution for this problem. I think it is clashing with another function you may have.
To solve, go to Environment > Set Path, then move all the directories you included (from other toolboxes) to the end of the entries.
For me, worked like a charm!
0 comentarios
Ver también
Categorías
Más información sobre Define Shallow Neural Network Architectures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!