source: prdatasets/wine.m @ 139

Last change on this file since 139 was 137, checked in by bduin, 5 years ago
File size: 1.3 KB
RevLine 
[80]1%WINE Wine recognition dataset 178 objects with 13 features in 3 classes
2%
[137]3%  A = WINE
[80]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
[137]10% Copyright: R.P.W. Duin, r.p.w.duin@37steps.com
[80]11% Faculty EWI, Delft University of Technology
12% P.O. Box 5031, 2600 GA Delft, The Netherlands
13
14function a = wine
15
[137]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.labfeat   = 1;
21  opt.featnames = char(...
[80]22        'alcohol', ...
23        'malic acid', ...
24        'ash', ...
[125]25        'alcalinity of ash', ...
26        'magnesium', ...
27        'total phenols', ...
28        'flavanoids', ...
29        'nonflavanoid phenols', ...   
30        'proanthocyanine', ...   
31        'color intensity', ...       
32        'hue', ...   
33        'OD280/OD315 of diluted wines', ...       
34        'proline');
[137]35  opt.classnames = {'cultivar 1','cultivar 2','cultivar 3'};
36  opt.dsetname   = 'Wine recognition data';
37  a = pr_download('http://prtools.tudelft.nl/prdatasets/wine.dat',[],opt);
38end
Note: See TracBrowser for help on using the repository browser.