source: prdatasets/hepatitis.m @ 153

Last change on this file since 153 was 150, checked in by bduin, 5 years ago
File size: 1.2 KB
RevLine 
[80]1%HEPATITIS 155 objects with 19 features in 2 classes
2%
[137]3%             A = HEPATITIS
[80]4%
5% The hepatitis database from UCI to predict if the patient will live or
6% die.
7%
[137]8%             A = 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%
[150]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
[150]16% Copyright: R.P.W. Duin
[94]17
[137]18function a = hepatitis(val)
[80]19
20if nargin<1
[137]21  val = 'remove';
[80]22end
23
[137]24a = pr_loadmatfile;
25if isempty(a)
26  opt.delimeter = ' ';
27  opt.labfeat   = 1;
28  opt.featnames = {'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  opt.classnames = {'die' 'live'};
33  opt.desc = 'The hepatitis database from UCI to predict if the patient will live or die.';
34  user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/hepatitis/';
35  opt.dsetname = 'Hepatitis Data Set';
36  a = pr_download('http://prtools.tudelft.nl/prdatasets/hepatitis.dat',[],opt);
37end
38a = misval(a,val);
Note: See TracBrowser for help on using the repository browser.