Changeset 137 for prdatasets/sonar.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/sonar.m
r127 r137 8 8 %metal cylinder and those bounced off a roughly cylindrical rock. 9 9 10 function x= sonar10 function a = sonar 11 11 12 prdatasets(mfilename,1,'http://prtools.tudelft.nl/prdatasets/sonar.dat'); 13 user.desc = 'The Sonar dataset from the undocumented databases from UCI. The task is to train a network to discriminate between sonar signals bounced off a metal cylinder and those bounced off a roughly cylindrical rock.'; 14 user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/undocumented/connectionist-bench/sonar'; 15 cl = {'mines' 'rocks'}; 16 a = load('sonar.dat'); 17 18 x = pr_dataset(a(:,1:(end-1)),cl(a(:,end))); 19 x = setname(x,'Sonar'); 20 x = setuser(x,user); 21 12 a = pr_loadmatfile; 13 if isempty(a) 14 opt.labfeat = 61; 15 opt.classnames = {'mines' 'rocks'}; 16 opt.desc = 'The Sonar dataset from the undocumented databases from UCI. The task is to train a network to discriminate between sonar signals bounced off a metal cylinder and those bounced off a roughly cylindrical rock.'; 17 opt.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/undocumented/connectionist-bench/sonar'; 18 a = pr_download('http://prtools.tudelft.nl/prdatasets/sonar.dat',[],opt); 19 end 22 20 23 21 return
Note: See TracChangeset
for help on using the changeset viewer.