Rev | Line | |
---|
[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 | % |
---|
[94] | 8 | % X = HEPATITIS(VAL) |
---|
[80] | 9 | % |
---|
[94] | 10 | % By default objects with missing values are removed. When something else |
---|
| 11 | % is desired, use one of the options in MISVAL. |
---|
| 12 | % |
---|
[132] | 13 | % SEE ALSO <a href="http://prtools.tudelft.nl/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a> |
---|
[94] | 14 | % PRTOOLS, DATASETS, MISVAL |
---|
| 15 | |
---|
[132] | 16 | % Copyright: R.P.W. Duin |
---|
[94] | 17 | |
---|
[80] | 18 | function x = hepatitis(val); |
---|
| 19 | |
---|
[127] | 20 | prdatasets(mfilename,1,'http://prtools.tudelft.nl/prdatasets/hepatitis.dat'); |
---|
[80] | 21 | if nargin<1 |
---|
[94] | 22 | val = 'remove'; |
---|
[80] | 23 | end |
---|
| 24 | |
---|
| 25 | user.desc = 'The hepatitis database from UCI to predict if the patient will live or die.'; |
---|
| 26 | user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/hepatitis/'; |
---|
| 27 | cl = {'die' 'live'}; |
---|
| 28 | fl = {'age' 'sex' 'steroid' 'antivirals' 'fatigue' 'malaise' ... |
---|
| 29 | 'anorexia' 'liver big' 'liver firm' 'spleen palpable' 'spiders' ... |
---|
| 30 | 'ascites' 'varices' 'bilirubin' 'alk phosphate' 'sgot' 'albumin' ... |
---|
| 31 | 'protime' 'histology'}; |
---|
| 32 | |
---|
| 33 | a = load('hepatitis.dat'); |
---|
[81] | 34 | x = pr_dataset(a(:,2:end),cl(a(:,1))); |
---|
[80] | 35 | x = setfeatlab(x,fl); |
---|
| 36 | x = setname(x,'Hepatitis'); |
---|
[94] | 37 | [x,msg] = misval(x,val); |
---|
[80] | 38 | user.desc = [user.desc msg]; |
---|
| 39 | x = setuser(x,user); |
---|
Note: See
TracBrowser
for help on using the repository browser.