Changeset 137 for prdatasets/ecoli.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/ecoli.m
r127 r137 7 7 % This is the 'Ecoli' dataset of the UCI Machine Learning Repository, 8 8 % //www.ics.uci.edu/~mlearn/MLRepository.html 9 function x = ecoli10 9 11 prdatasets(mfilename,1,'http://prtools.tudelft.nl/prdatasets/ecoli.dat'); 12 user.desc='The Ecoli database from UCI. Goal is to Predict the localization site of protein in a cell, by Kenta Nakai Institue of Molecular and Cellular Biology Osaka, University.'; 13 user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/ecoli/'; 14 cl = {'cytoplasm' 'inner membrane without signal sequence' ... 15 'periplasm' 'inner membrane, uncleavable signal sequence' ... 16 'outer membrane' 'outer membrane lipoprotein' ... 17 'inner membrane lipoprotein' 'inner membrane, cleavable signal sequence'}; 18 fl = {'mcg' 'gvh' 'lip' 'chg' 'aac' 'alm1' 'alm2'}; 10 function a = ecoli 19 11 20 a = load('ecoli.dat'); 21 x = pr_dataset(a(:,1:(end-1)),cl(a(:,end))); 22 x = setfeatlab(x,fl); 23 x = setname(x,'Ecoli'); 24 x = setuser(x,user); 12 a = pr_loadmatfile; 13 if isempty(a) 14 opt.labfeat = 8; 15 opt.featnames = {'mcg' 'gvh' 'lip' 'chg' 'aac' 'alm1' 'alm2'}; 16 opt.classnames = {'cytoplasm' 'inner membrane without signal sequence' ... 17 'periplasm' 'inner membrane, uncleavable signal sequence' ... 18 'outer membrane' 'outer membrane lipoprotein' ... 19 'inner membrane lipoprotein' 'inner membrane, cleavable signal sequence'}; 20 opt.desc='The Ecoli database from UCI. Goal is to Predict the localization site of protein in a cell, by Kenta Nakai Institue of Molecular and Cellular Biology Osaka, University.'; 21 opt.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/ecoli/'; 22 opt.dsetname = 'Ecoli'; 23 a = pr_download('http://prtools.tudelft.nl/prdatasets/ecoli.dat',[],opt); 24 end 25 25 26 26 return
Note: See TracChangeset
for help on using the changeset viewer.