Changeset 97 for prdatasets/car.m
- Timestamp:
- 09/24/14 16:04:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/car.m
r92 r97 17 17 fl = {'buying price' 'maintenance price' 'nr of doors' 'nr of persons' 'luggage boot' 'safety'}; 18 18 19 [a,strvals] = pr_readdataset('car.data',ones(7,1)); 20 labs = strvals{end}(a(:,end)); 21 for i=1:6 22 featdom{i} = strvcat(strvals{i}'); 23 end 24 x = pr_dataset(a(:,1:(end-1)), labs); 19 x = pr_readdataset('car.data',0,',',[],'ccccccc',7) 25 20 x = setfeatlab(x,fl); 26 x = setfeatdom(x,featdom);27 21 x = setuser(x,user); 28 22 x = setname(x,'Car');
Note: See TracChangeset
for help on using the changeset viewer.