Changeset 137 for prdatasets/biomed.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/biomed.m

    r132 r137  
    1515% Just the original features 3, 5, 6, 7 and 8 are used.
    1616%
    17 % SEE ALSO <a href="http://prtools.tudelft.nl/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a>
     17% SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a>
    1818% PRTOOLS, DATASETS, MISVAL
    1919
    20 % Copyright: R.P.W. Duin
     20% Copyright: R.P.W. Duin, r.p.w.duin@37steps.com
    2121
    22 function x = biomed(val)
     22function a = biomed(val)
    2323
    2424if nargin < 1, val = 'remove'; end
    25 a = pr_getdata('http://prtools.tudelft.nl/prdatasets/biomed.dat',1);
    2625
    27 user.desc = 'The purpose of the analysis is to develop a screening procedure to detect carriers and to describe its effectiveness. ';
    28 user.link = 'http://lib.stat.cmu.edu/datasets/';
    29 cl = {'carrier' 'normal'};
    30 fl = {'age' 'measurement 1' 'measurement 2' 'measurement 3' 'measurement 4'};
    31 
    32 x = pr_dataset(a(:,[3 5 6 7 8]),cl(a(:,end)));
    33 x = setfeatlab(x,fl);
    34 x = setname(x,'Biomed');
    35 x = setuser(x,user);
    36 x = misval(x,val);
     26a = pr_loadmatfile;
     27if isempty(a)
     28  opt.labfeat   = 9;
     29  opt.feats     = [3,5,6,7,8];
     30  opt.featnames = {'age' 'measurement 1' 'measurement 2' 'measurement 3' 'measurement 4'};
     31  opt.classnames = {'carrier' 'normal'};
     32  opt.desc = 'The purpose of the analysis is to develop a screening procedure to detect carriers and to describe its effectiveness. ';
     33  opt.link = 'http://lib.stat.cmu.edu/datasets/';
     34  a = pr_download('http://prtools.tudelft.nl/prdatasets/biomed.dat',[],opt);
     35end
     36a = misval(a,val);
    3737
    3838return
Note: See TracChangeset for help on using the changeset viewer.