source: prdatasets/wine.m @ 81

Last change on this file since 81 was 81, checked in by bduin, 11 years ago
File size: 1.3 KB
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
14function a = wine
15
16prdatasets(mfilename,1,'http://prtools.org/prdatasets/wine.dat');
17user.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.';
18user.link = '';
19
20a = load('wine.dat');
21a = pr_dataset(a(:,2:end),a(:,1));
22a = setname(a,'Wine recognition data');
23a = setlablist(a,str2mat('cultivar 1','cultivar 2','cultivar 3'));
24a = 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'));
38a = setuser(a,user);
39
Note: See TracBrowser for help on using the repository browser.