Last change
on this file since 80 was
80,
checked in by dtax, 11 years ago
|
Creator files for prtools datasets.
|
File size:
916 bytes
|
Line | |
---|
1 | %SONAR 208 objects with 60 features in 2 classes |
---|
2 | % |
---|
3 | % X = SONAR |
---|
4 | % |
---|
5 | %This is the data set used by Gorman and Sejnowski in their study of the |
---|
6 | %classification of sonar signals using a neural network. The task is to |
---|
7 | %train a network to discriminate between sonar signals bounced off a |
---|
8 | %metal cylinder and those bounced off a roughly cylindrical rock. |
---|
9 | |
---|
10 | function x = sonar |
---|
11 | |
---|
12 | prdatasets(mfilename,1,'http://prtools.org/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 = prdataset(a(:,1:(end-1)),cl(a(:,end))); |
---|
19 | x = setname(x,'Sonar'); |
---|
20 | x = setuser(x,user); |
---|
21 | |
---|
22 | |
---|
23 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.