Problem with targets in nprtool

I'm trying to train a ANN using the nprtool but i can't select my targets. The targets option is empty while the inputs shows all my data. Why is it happening? Any idea?
Thanks in advance

4 comentarios

Mattias
Mattias el 26 de Oct. de 2011
Can verify that I have exactly the same problem. The Input dialog works perfect! The target dialog is not working!
However, the provided Example Data Sets can be loaded as targets and thereafter selected but I can't select my own ones. Doesn't matter if I load data into the workspace or selects the variables directly from a mat-file. The target dialog is not working! (System: OS X - Lion)
From my point of view, -No folder problem!
Any idea?
Greg Heath
Greg Heath el 18 de Abr. de 2012
Are your targets columns of the unit matrix?
Hope this helps.
Greg
udoInyang inyang
udoInyang inyang el 10 de Mayo de 2016
The target must contain binary data. That a maximum of two classes.
Greg Heath
Greg Heath el 27 de Mayo de 2016
Not at all! For c classes, the target columns are columns of the {0,1} unit matrix eye(c);
[ x t ] = iris_dataset;
whos % No semicolon
t = t % No semicolon
Hope this helps.
Greg

Iniciar sesión para comentar.

 Respuesta aceptada

Neeraj N Sajjan
Neeraj N Sajjan el 26 de Mayo de 2016

1 voto

If you have n classes ,then your target matrix for nprtool should be a n*m matrix where m is the number of training samples. Each column of the matrix should have a 1 in the row representing the corresponding class with the rest as 0.

1 comentario

Greg Heath
Greg Heath el 27 de Mayo de 2016
CORRECT!
The target columns should be a {0,1} unit vector column of the unit matrix
eye(n).
See my above comment.
Greg

Iniciar sesión para comentar.

Más respuestas (4)

Alan Norman
Alan Norman el 10 de Sept. de 2012
Editada: Alan Norman el 10 de Sept. de 2012

1 voto

I changed my target from a single integer 1 to 10 to a vector of [ 0 0 0 1 0 0 0 0 0 0 ] for each example and then my target appears in the GUI and life is good.
Jonny
Jonny el 16 de Oct. de 2011

0 votos

Do you have your targets in your folder where are your inputs?

1 comentario

Ethan
Ethan el 17 de Oct. de 2011
Yes, they are in the same folder and both are loaded in the memory

Iniciar sesión para comentar.

Jonatan Zapata
Jonatan Zapata el 18 de Abr. de 2012

0 votos

I had the same problem with negative targets, I changed it with positive values and solve the problem.
Razieh
Razieh el 22 de Feb. de 2014

0 votos

I have the same problem. My target has size of 6*3600 and it's format is [0.9 0.1 0.1 0.1 0.1 0.1] and loaded into workspace but not appear to be chosen in nprtool, but input is ok. Can anybody help?

Categorías

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

Preguntada:

el 5 de Oct. de 2011

Comentada:

el 27 de Mayo de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by