Last change
on this file since 80 was
80,
checked in by dtax, 11 years ago
|
Creator files for prtools datasets.
|
File size:
943 bytes
|
Line | |
---|
1 | %IRIS 150 objects with 4 features in 3 classes |
---|
2 | % |
---|
3 | % A = IRIS |
---|
4 | % |
---|
5 | % Iris plants dataset by R.A.Fisher, 150 objects, 4 features, 3 |
---|
6 | % classes. |
---|
7 | function x = iris; |
---|
8 | |
---|
9 | prdatasets(mfilename,1,'http://prtools.org/prdatasets/iris.dat'); |
---|
10 | user.desc = 'Iris Plant database from UCI. A classic dataset in the pattern recognition literature. The original dataset is a multiclass classification problem, introduced by R.A. Fisher, The use of multiple measurements in taxonomic problems. Ann Eugenics, 7:179--188, 1936.'; |
---|
11 | user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/iris/'; |
---|
12 | cl = {'Iris-setosa' 'Iris-versicolor' 'Iris-virginica'}; |
---|
13 | fl = {'sepal length' 'sepal width' 'petal length' 'petal width'}; |
---|
14 | |
---|
15 | % the fuzzy toolbox has a iris.dat file too, avoid it |
---|
16 | pp = fileparts(which(mfilename)); |
---|
17 | a = load(fullfile(pp,'iris.dat')); |
---|
18 | x = prdataset(a(:,1:(end-1)), cl(a(:,end))); |
---|
19 | x = setfeatlab(x,fl); |
---|
20 | x = setuser(x,user); |
---|
21 | x = setname(x,'Iris'); |
---|
22 | |
---|
23 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.