Last change
on this file since 146 was
142,
checked in by bduin, 5 years ago
|
Updated collection of datasets
|
File size:
1.4 KB
|
Rev | Line | |
---|
[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 | |
---|
| 14 | function a = wine |
---|
| 15 | |
---|
[137] | 16 | a = pr_loadmatfile; |
---|
| 17 | if 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.'; |
---|
[142] | 20 | opt.link = 'https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.names'; |
---|
[137] | 21 | opt.labfeat = 1; |
---|
| 22 | opt.featnames = char(... |
---|
[80] | 23 | 'alcohol', ... |
---|
| 24 | 'malic acid', ... |
---|
| 25 | 'ash', ... |
---|
[125] | 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'); |
---|
[137] | 36 | opt.classnames = {'cultivar 1','cultivar 2','cultivar 3'}; |
---|
[142] | 37 | opt.dsetname = 'Wine Recognition'; |
---|
[137] | 38 | a = pr_download('http://prtools.tudelft.nl/prdatasets/wine.dat',[],opt); |
---|
| 39 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.