Changeset 94 for prdatasets/hepatitis.m
- Timestamp:
- 09/14/14 21:19:24 (10 years ago)
- Location:
- prdatasets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets
- Property svn:ignore
-
old new 2 2 *.mat 3 3 *.data 4 *.asv
-
- Property svn:ignore
-
prdatasets/hepatitis.m
r81 r94 6 6 % die. 7 7 % 8 % X = HEPATITIS(VAL) ;8 % X = HEPATITIS(VAL) 9 9 % 10 % Per default the missing values are replaced by the mean value of the 11 % corresponding feature. When you want to do something else, use one of 12 % the options in missingvalues.m. 10 % By default objects with missing values are removed. When something else 11 % is desired, use one of the options in MISVAL. 12 % 13 % SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a> 14 % PRTOOLS, DATASETS, MISVAL 15 16 % Copyright: R.P.W. Duin, r.p.w.duin@prtools.org 17 13 18 function x = hepatitis(val); 14 19 15 20 prdatasets(mfilename,1,'http://prtools.org/prdatasets/hepatitis.dat'); 16 21 if nargin<1 17 val = ' mean';22 val = 'remove'; 18 23 end 19 24 … … 30 35 x = setfeatlab(x,fl); 31 36 x = setname(x,'Hepatitis'); 32 [x,msg] = prmissingvalues(x,val);37 [x,msg] = misval(x,val); 33 38 user.desc = [user.desc msg]; 34 39 x = setuser(x,user);
Note: See TracChangeset
for help on using the changeset viewer.