Rev | Line | |
---|
[80] | 1 | %DIABETES 768 objects with 8 features in 2 classes |
---|
| 2 | % |
---|
| 3 | % X = DIABETES |
---|
| 4 | % |
---|
| 5 | % Pima-indians diabetes database from National Institute of Diabetes and |
---|
| 6 | % Digestive and Kidney Diseases. This is the 'Pima Indians Diabetes' |
---|
| 7 | % dataset of the UCI Machine Learning Repository, |
---|
| 8 | % //www.ics.uci.edu/~mlearn/MLRepository.html |
---|
| 9 | |
---|
| 10 | function x = diabetes |
---|
| 11 | |
---|
[127] | 12 | prdatasets(mfilename,1,'http://prtools.tudelft.nl/prdatasets/diabetes.dat'); |
---|
[80] | 13 | user.desc='The Pima Indians Diabetes Database from UCI.'; |
---|
| 14 | user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/pima-indians-diabetes/'; |
---|
| 15 | cl = {'present' 'absent'}; |
---|
| 16 | fl = {'NumPregnancies' 'plasmaGlucose' 'diastolicBloodPr' ... |
---|
| 17 | 'tricepsSkinfold' '2hrSerumInsulin' 'BodyMassIndex' ... |
---|
| 18 | 'DiabetesPedigreeFn' 'Age'}; |
---|
| 19 | |
---|
| 20 | a = load('diabetes.dat'); |
---|
[81] | 21 | x = pr_dataset(a(:,1:(end-1)),cl(a(:,end)+1)); |
---|
[80] | 22 | x = setfeatlab(x,fl); |
---|
| 23 | x = setname(x,'Diabetes'); |
---|
| 24 | x = setuser(x,user); |
---|
| 25 | |
---|
| 26 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.