seems that the description of example iris_dataset in nprtool is wrong
4 ビュー (過去 30 日間)
古いコメントを表示
irisInputs - a *4x150* matrix of four attributes of *1000* flowers.
irisTargets - a *3x150* matrix of *1000* associated class vectors
defining which of *four* classes each input is assigned to. Classes
are represented by a 1 in one of *four* rows, with zeros in the others.
maybe it should be 4 attributes of 150 flowers. 3 classes
0 件のコメント
回答 (1 件)
Fei Deng
2017 年 5 月 1 日
Hi Ryant, which specific page are you referring to and what MATLAB release are you using?
For the iris_dataset data, yes you are right, irisTargets is a 3x150 matrix of associated class vectors defining which of the three classes each input is assigned to, as documented here:
where you can find:
Examples
Classify Using Softmax Layer
Load the sample data.
[X,T] = iris_dataset;
X is a 4x150 matrix of four attributes of iris flowers: Sepal length, sepal width, petal length, petal width.
T is a 3x150 matrix of associated class vectors defining which of the three classes each input is assigned to. Each row corresponds to a dummy variable representing one of the iris species (classes). In each column, a 1 in one of the three rows represents the class that particular sample (observation or example) belongs to. There is a zero in the rows for the other classes that the observation does not belong to.
2 件のコメント
Nav I
2018 年 3 月 12 日
@Fei: Just like Ryant, even I feel the description is wrong. Why is it mentioned as 1000 class vectors when it should be 150? Why is it mentioned as 1000 flowers with 4 attributes. Basically, what is the 1000 for?
Nav I
2018 年 3 月 16 日
Could it be that for creating the dataset of 150 flowers, there were a thousand flowers sampled? Is that what it means or is it something else?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!