Changeset 137 for prdatasets/car.m


Ignore:
Timestamp:
12/18/19 15:46:35 (5 years ago)
Author:
bduin
Message:
 
Location:
prdatasets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • prdatasets

    • Property svn:ignore
      •  

        old new  
        33*.data
        44*.asv
         5data
  • prdatasets/car.m

    r127 r137  
    88% 1(1), pp. 145-157, 1990.). All 6 features are nominal.
    99% 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
    1013
    11 function x = car
     14% Copyright: R.P.W. Duin, r.p.w.duin@37steps.com
    1215
    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');
     16function a = car
     17
     18a = pr_loadmatfile;
     19if 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);
     29end
    2530
    2631return
Note: See TracChangeset for help on using the changeset viewer.