Changeset 123 for prdatasets/arrhythmia.m
- Timestamp:
- 03/05/18 00:14:20 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/arrhythmia.m
r96 r123 11 11 % 12 12 % 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. 14 14 % 15 15 % SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a> … … 18 18 % Copyright: R.P.W. Duin, r.p.w.duin@prtools.org 19 19 20 function x = arrhythmia(val); 20 function x = arrhythmia(val) 21 if nargin < 1, val = 'f-remove'; end 22 a = pr_getdata('http://prtools.org/prdatasets/arrhythmia.dat',1); 21 23 22 prdatasets(mfilename,1,'http://prtools.org/prdatasets/arrhythmia.dat');23 if nargin<124 val = 'f-remove';25 end26 24 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.'; 25 user.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.']; 28 28 user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/arrhythmia'; 29 29 … … 48 48 strcat('V4-',fl2) strcat('V5-',fl2) strcat('V6-',fl2)]; 49 49 50 a = load('arrhythmia.dat');51 50 x = pr_dataset(a(:,1:(end-1)),a(:,end)); 52 51 x = setfeatlab(x,fl); 53 52 x = setname(x,'Arrhythmia normal'); 54 53 x = setuser(x,user); 55 %x(:,14) = []; % there are so many missing values, that I just remove this56 % % don't do this, nice but confusing57 54 x = misval(x,val); 58 % user.desc = [user.desc msg]; 59 % x = setuser(x,user); 60 x = setlablist(x); 55 61 56 return
Note: See TracChangeset
for help on using the changeset viewer.