source: prdatasets/hepatitis.m @ 92

Last change on this file since 92 was 81, checked in by bduin, 11 years ago
File size: 1.1 KB
RevLine 
[80]1%HEPATITIS 155 objects with 19 features in 2 classes
2%
3%             X = HEPATITIS
4%
5% The hepatitis database from UCI to predict if the patient will live or
6% die.
7%
8%             X = HEPATITIS(VAL);
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.
13function x = hepatitis(val);
14
15prdatasets(mfilename,1,'http://prtools.org/prdatasets/hepatitis.dat');
16if nargin<1
17        val = 'mean';
18end
19
20user.desc = 'The hepatitis database from UCI to predict if the patient will live or die.';
21user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/hepatitis/';
22cl = {'die' 'live'};
23fl = {'age' 'sex' 'steroid' 'antivirals' 'fatigue' 'malaise' ...
24'anorexia' 'liver big' 'liver firm' 'spleen palpable' 'spiders' ...
25'ascites' 'varices' 'bilirubin' 'alk phosphate' 'sgot' 'albumin' ...
26'protime' 'histology'};
27
28a = load('hepatitis.dat');
[81]29x = pr_dataset(a(:,2:end),cl(a(:,1)));
[80]30x = setfeatlab(x,fl);
31x = setname(x,'Hepatitis');
32[x,msg] = prmissingvalues(x,val);
33user.desc = [user.desc msg];
34x = setuser(x,user);
Note: See TracBrowser for help on using the repository browser.