Filter löschen
Filter löschen

seems that the description of example iris_dataset in nprtool is wrong

2 Ansichten (letzte 30 Tage)
Ryant Ma
Ryant Ma am 28 Apr. 2017
Kommentiert: Nav I am 16 Mär. 2018
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

Antworten (1)

Fei Deng
Fei Deng am 1 Mai 2017
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 Kommentare
Nav I
Nav I am 12 Mär. 2018
@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 am 16 Mär. 2018
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?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by