Changeset 137 for prdatasets/sonar.m


Ignore:
Timestamp:
12/18/19 15:46:35 (5 years ago)
Author:
bduin
Message:
 
Location:
prdatasets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • prdatasets

    • Property svn:ignore
      •  

        old new  
        33*.data
        44*.asv
         5data
  • prdatasets/sonar.m

    r127 r137  
    88%metal cylinder and those bounced off a roughly cylindrical rock.
    99
    10 function x = sonar
     10function a = sonar
    1111
    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 
     12a = pr_loadmatfile;
     13if 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);
     19end
    2220
    2321return
Note: See TracChangeset for help on using the changeset viewer.