Ignore:
Timestamp:
03/05/18 00:14:20 (7 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/arrhythmia.m

    r96 r123  
    1111%
    1212% By default features with missing values are removed. When something else
    13 % is desired, use one of the options in MISVAL.
     13% is desired, use one of the options in MISVAL for VAL.
    1414%
    1515% SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a>
     
    1818% Copyright: R.P.W. Duin, r.p.w.duin@prtools.org
    1919
    20 function x = arrhythmia(val);
     20function x = arrhythmia(val)
     21if nargin < 1,  val = 'f-remove'; end
     22a = pr_getdata('http://prtools.org/prdatasets/arrhythmia.dat',1);
    2123
    22 prdatasets(mfilename,1,'http://prtools.org/prdatasets/arrhythmia.dat');
    23 if nargin<1
    24         val = 'f-remove';
    25 end
    2624
    27 user.desc='The Arrhymthmia database from UCI. The aim is to distinguish between the presence and absence of cardiac arrhythmia and to classify it in one of the 16 groups.';
     25user.desc=['The Arrhymthmia database from UCI. The aim is to ' ...
     26           'distinguish between the presence and absence of cardiac ' ...
     27           'arrhythmia and to classify it in one of the 16 groups.'];
    2828user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/arrhythmia';
    2929
     
    4848strcat('V4-',fl2) strcat('V5-',fl2) strcat('V6-',fl2)];
    4949
    50 a = load('arrhythmia.dat');
    5150x = pr_dataset(a(:,1:(end-1)),a(:,end));
    5251x = setfeatlab(x,fl);
    5352x = setname(x,'Arrhythmia normal');
    5453x = setuser(x,user);
    55 %x(:,14) = [];  % there are so many missing values, that I just remove this
    56 %               % don't do this, nice but confusing
    5754x = misval(x,val);
    58 % user.desc = [user.desc msg];
    59 % x = setuser(x,user);
    60 x = setlablist(x);
     55
    6156return
Note: See TracChangeset for help on using the changeset viewer.