Changeset 125
- Timestamp:
- 03/15/18 23:07:41 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/wine.m
r122 r125 14 14 function a = wine 15 15 16 prdatasets(mfilename,1,'http://prtools.org/prdatasets/wine.dat'); 16 url = 'http://prtools.org/prdatasets/wine.dat'; 17 %prdatasets(mfilename,1,'http://prtools.org/prdatasets/wine.dat'); 17 18 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 19 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,char('cultivar 1','cultivar 2','cultivar 3')); 24 a = setfeatlab(a,char(... 20 opt.user = user; 21 opt.labfeat = 1; 22 opt.featnames = char(... 25 23 'alcohol', ... 26 24 'malic acid', ... 27 25 'ash', ... 28 29 30 31 32 33 34 35 36 37 'proline') );38 a = setuser(a,user);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 a = pr_download(url,[],opt); 39 37 38 % %a = load('wine.dat'); 39 % %a = pr_dataset(a(:,2:end),a(:,1)); 40 % a = feat2lab(a,1); 41 % a = setname(a,'Wine recognition data'); 42 % a = setlablist(a,char('cultivar 1','cultivar 2','cultivar 3')); 43 % a = setfeatlab(a,char(... 44 % 'alcohol', ... 45 % 'malic acid', ... 46 % 'ash', ... 47 % 'alcalinity of ash', ... 48 % 'magnesium', ... 49 % 'total phenols', ... 50 % 'flavanoids', ... 51 % 'nonflavanoid phenols', ... 52 % 'proanthocyanine', ... 53 % 'color intensity', ... 54 % 'hue', ... 55 % 'OD280/OD315 of diluted wines', ... 56 % 'proline')); 57 % a = setuser(a,user); 58
Note: See TracChangeset
for help on using the changeset viewer.