Changeset 97 for prdatasets/car.m


Ignore:
Timestamp:
09/24/14 16:04:03 (10 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/car.m

    r92 r97  
    1717fl = {'buying price' 'maintenance price' 'nr of doors' 'nr of persons' 'luggage boot' 'safety'};
    1818
    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);
     19x = pr_readdataset('car.data',0,',',[],'ccccccc',7)
    2520x = setfeatlab(x,fl);
    26 x = setfeatdom(x,featdom);
    2721x = setuser(x,user);
    2822x = setname(x,'Car');
Note: See TracChangeset for help on using the changeset viewer.