Line | |
---|
1 | %CAR 1728 objects with 6 features in 4 classes |
---|
2 | % |
---|
3 | % A = CAR |
---|
4 | % |
---|
5 | % The Car Evaluation Database was derived from a simple hierarchical |
---|
6 | % decision model originally developed for the demonstration of DEX (M. |
---|
7 | % Bohanec, V. Rajkovic: Expert system for decision making. Sistemica |
---|
8 | % 1(1), pp. 145-157, 1990.). All 6 features are nominal. |
---|
9 | % The instances completely cover the attribute space. |
---|
10 | |
---|
11 | function x = car |
---|
12 | |
---|
13 | prdatasets(mfilename,1,'http://prtools.org/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.org/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'); |
---|
25 | |
---|
26 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.