Changeset 137 for prdatasets/car.m
- Timestamp:
- 12/18/19 15:46:35 (5 years ago)
- Location:
- prdatasets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets
- Property svn:ignore
-
old new 3 3 *.data 4 4 *.asv 5 data
-
- Property svn:ignore
-
prdatasets/car.m
r127 r137 8 8 % 1(1), pp. 145-157, 1990.). All 6 features are nominal. 9 9 % The instances completely cover the attribute space. 10 % 11 % SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a> 12 % PRTOOLS, DATASETS 10 13 11 function x = car 14 % Copyright: R.P.W. Duin, r.p.w.duin@37steps.com 12 15 13 prdatasets(mfilename,1,'http://prtools.tudelft.nl/prdatasets/car.data'); 14 % for some mysterious reason it appeared to be necessary on my Windows 7 15 % system to repeat this command 16 prdatasets(mfilename,1,'http://prtools.tudelft.nl/prdatasets/car.data'); 17 user.desc = 'Car Evaluation Database was derived from a simple hierarchical decision model originally developed for the demonstration of DEX (M. Bohanec, V. Rajkovic: Expert system for decision making. Sistemica 1(1), pp. 145-157, 1990.).'; 18 fl = {'buying price' 'maintenance price' 'nr of doors' 'nr of persons' 'luggage boot' 'safety'}; 19 20 datfile = fullfile(fileparts(which(mfilename)),'car.data'); 21 x = pr_readdataset(datfile,0,',',[],'ccccccc',7); 22 x = setfeatlab(x,fl); 23 x = setuser(x,user); 24 x = setname(x,'Car'); 16 function a = car 17 18 a = pr_loadmatfile; 19 if isempty(a) 20 opt.delimeter = ','; 21 opt.format = 'ccccccc'; 22 opt.labfeat = 7; 23 opt.desc = 'Car Evaluation Database was derived from a simple hierarchical decision model originally developed for the demonstration of DEX (M. Bohanec, V. Rajkovic: Expert system for decision making. Sistemica 1(1), pp. 145-157, 1990.).'; 24 opt.featnames = {'buying price' 'maintenance price' 'nr of doors' 'nr of persons' 'luggage boot' 'safety'}; 25 opt.desc = 'The purpose of the analysis is to develop a screening procedure to detect carriers and to describe its effectiveness. '; 26 opt.link = 'http://lib.stat.cmu.edu/datasets/'; 27 opt.dsetname = 'Car'; 28 a = pr_download('http://prtools.tudelft.nl/prdatasets/car.data',[],opt); 29 end 25 30 26 31 return
Note: See TracChangeset
for help on using the changeset viewer.