Line | |
---|
1 | %WINE Wine recognition dataset 178 objects with 13 features in 3 classes |
---|
2 | % |
---|
3 | % A = WINE |
---|
4 | % |
---|
5 | % Load the dataset in A. This dataset is taken from the UCI |
---|
6 | % Machine Learning Repository, //www.ics.uci.edu/~mlearn/MLRepository.html. |
---|
7 | % |
---|
8 | % See also DATASETS, PRDATASETS |
---|
9 | |
---|
10 | % Copyright: R.P.W. Duin, r.p.w.duin@prtools.org |
---|
11 | % Faculty EWI, Delft University of Technology |
---|
12 | % P.O. Box 5031, 2600 GA Delft, The Netherlands |
---|
13 | |
---|
14 | function a = wine |
---|
15 | |
---|
16 | prdatasets(mfilename,1,'http://prtools.org/prdatasets/wine.dat'); |
---|
17 | user.desc = 'These data are the results of a chemical analysis of wines grown in the same region in Italy but derived from three different cultivars. The analysis determined the quantities of 13 constituents found in each of the three types of wines.'; |
---|
18 | user.link = ''; |
---|
19 | |
---|
20 | a = load('wine.dat'); |
---|
21 | a = pr_dataset(a(:,2:end),a(:,1)); |
---|
22 | a = setname(a,'Wine recognition data'); |
---|
23 | a = setlablist(a,str2mat('cultivar 1','cultivar 2','cultivar 3')); |
---|
24 | a = setfeatlab(a,str2mat(... |
---|
25 | 'alcohol', ... |
---|
26 | 'malic acid', ... |
---|
27 | 'ash', ... |
---|
28 | 'alcalinity of ash', ... |
---|
29 | 'magnesium', ... |
---|
30 | 'total phenols', ... |
---|
31 | 'flavanoids', ... |
---|
32 | 'nonflavanoid phenols', ... |
---|
33 | 'proanthocyanine', ... |
---|
34 | 'color intensity', ... |
---|
35 | 'hue', ... |
---|
36 | 'OD280/OD315 of diluted wines', ... |
---|
37 | 'proline')); |
---|
38 | a = setuser(a,user); |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.