source: prdatasets/wine.m @ 155

Last change on this file since 155 was 150, checked in by bduin, 5 years ago
File size: 1.4 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
11% Faculty EWI, Delft University of Technology
12% P.O. Box 5031, 2600 GA Delft, The Netherlands
13
14function a = wine
15
16a = pr_loadmatfile;
17if isempty(a)
18  opt.delimeter = ',';
19  opt.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.';
20  opt.link      = 'https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.names';
21  opt.labfeat   = 1;
22  opt.featnames = char(...
23        'alcohol', ...
24        'malic acid', ...
25        'ash', ...
26        'alcalinity of ash', ...
27        'magnesium', ...
28        'total phenols', ...
29        'flavanoids', ...
30        'nonflavanoid phenols', ...   
31        'proanthocyanine', ...   
32        'color intensity', ...       
33        'hue', ...   
34        'OD280/OD315 of diluted wines', ...       
35        'proline');
36  opt.classnames = {'cultivar 1','cultivar 2','cultivar 3'};
37  opt.dsetname   = 'Wine Recognition';
38  a = pr_download('http://prtools.tudelft.nl/prdatasets/wine.dat',[],opt);
39end
Note: See TracBrowser for help on using the repository browser.