フィルターのクリア

Problem with targets in nprtool

3 ビュー (過去 30 日間)
Ethan
Ethan 2011 年 10 月 5 日
コメント済み: Greg Heath 2016 年 5 月 27 日
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 件のコメント
udoInyang inyang
udoInyang inyang 2016 年 5 月 10 日
The target must contain binary data. That a maximum of two classes.
Greg Heath
Greg Heath 2016 年 5 月 27 日
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

サインインしてコメントする。

採用された回答

Neeraj N Sajjan
Neeraj N Sajjan 2016 年 5 月 26 日
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 件のコメント
Greg Heath
Greg Heath 2016 年 5 月 27 日
CORRECT!
The target columns should be a {0,1} unit vector column of the unit matrix
eye(n).
See my above comment.
Greg

サインインしてコメントする。

その他の回答 (4 件)

Alan Norman
Alan Norman 2012 年 9 月 10 日
編集済み: Alan Norman 2012 年 9 月 10 日
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 2011 年 10 月 16 日
Do you have your targets in your folder where are your inputs?
  1 件のコメント
Ethan
Ethan 2011 年 10 月 17 日
Yes, they are in the same folder and both are loaded in the memory

サインインしてコメントする。


Jonatan Zapata
Jonatan Zapata 2012 年 4 月 18 日
I had the same problem with negative targets, I changed it with positive values and solve the problem.

Razieh
Razieh 2014 年 2 月 22 日
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?
  1 件のコメント
Greg Heath
Greg Heath 2014 年 2 月 24 日
Did you try replacing 0.1,0.9 to 0,1 ?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by