source: prdatasets/iris.m @ 107

Last change on this file since 107 was 81, checked in by bduin, 11 years ago
File size: 944 bytes
RevLine 
[80]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.
7function x = iris;
8
9prdatasets(mfilename,1,'http://prtools.org/prdatasets/iris.dat');
10user.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.';
11user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/iris/';
12cl = {'Iris-setosa' 'Iris-versicolor' 'Iris-virginica'};
13fl = {'sepal length' 'sepal width' 'petal length' 'petal width'};
14
15% the fuzzy toolbox has a iris.dat file too, avoid it
16pp = fileparts(which(mfilename));
17a = load(fullfile(pp,'iris.dat'));
[81]18x = pr_dataset(a(:,1:(end-1)), cl(a(:,end)));
[80]19x = setfeatlab(x,fl);
20x = setuser(x,user);
21x = setname(x,'Iris');
22
23return
Note: See TracBrowser for help on using the repository browser.