seems that the description of example iris_dataset in nprtool is wrong

13 ビュー (過去 30 日間)
Ryant Ma
Ryant Ma 2017 年 4 月 28 日
コメント済み: Nav I 2018 年 3 月 16 日
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

回答 (1 件)

Fei Deng
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
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
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?

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

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by