Changeset 137 for prdatasets/ecoli.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/ecoli.m

    r127 r137  
    77% This is the 'Ecoli'  dataset of the UCI Machine Learning Repository,
    88% //www.ics.uci.edu/~mlearn/MLRepository.html
    9 function x = ecoli
    109
    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'};
     10function a = ecoli
    1911
    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);
     12a = pr_loadmatfile;
     13if 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);
     24end
    2525
    2626return
Note: See TracChangeset for help on using the changeset viewer.