Changeset 137 for prdatasets/diabetes.m
- Timestamp:
- 12/18/19 15:46:35 (5 years ago)
- Location:
- prdatasets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets
- Property svn:ignore
-
old new 3 3 *.data 4 4 *.asv 5 data
-
- Property svn:ignore
-
prdatasets/diabetes.m
r127 r137 8 8 % //www.ics.uci.edu/~mlearn/MLRepository.html 9 9 10 function x = diabetes 11 12 prdatasets(mfilename,1,'http://prtools.tudelft.nl/prdatasets/diabetes.dat'); 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'); 21 x = pr_dataset(a(:,1:(end-1)),cl(a(:,end)+1)); 22 x = setfeatlab(x,fl); 23 x = setname(x,'Diabetes'); 24 x = setuser(x,user); 10 function a = diabetes 11 12 a = pr_loadmatfile; 13 if isempty(a) 14 opt.delimeter = ' '; 15 opt.labfeat = 9; 16 opt.featnames = {'NumPregnancies' 'plasmaGlucose' 'diastolicBloodPr' ... 17 'tricepsSkinfold' '2hrSerumInsulin' 'BodyMassIndex' ... 18 'DiabetesPedigreeFn' 'Age'}; 19 opt.classnames = {'present' 'absent'}; 20 opt.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/pima-indians-diabetes/'; 21 opt.desc = 'The Pima Indians Diabetes Database from UCI.'; 22 a = pr_download('http://prtools.tudelft.nl/prdatasets/diabetes.dat',[],opt); 23 end 25 24 26 25 return
Note: See TracChangeset
for help on using the changeset viewer.