Changeset 123 for prdatasets
- Timestamp:
- 03/05/18 00:14:20 (7 years ago)
- Location:
- prdatasets
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/arrhythmia.m
r96 r123 11 11 % 12 12 % By default features with missing values are removed. When something else 13 % is desired, use one of the options in MISVAL .13 % is desired, use one of the options in MISVAL for VAL. 14 14 % 15 15 % SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a> … … 18 18 % Copyright: R.P.W. Duin, r.p.w.duin@prtools.org 19 19 20 function x = arrhythmia(val); 20 function x = arrhythmia(val) 21 if nargin < 1, val = 'f-remove'; end 22 a = pr_getdata('http://prtools.org/prdatasets/arrhythmia.dat',1); 21 23 22 prdatasets(mfilename,1,'http://prtools.org/prdatasets/arrhythmia.dat');23 if nargin<124 val = 'f-remove';25 end26 24 27 user.desc='The Arrhymthmia database from UCI. The aim is to distinguish between the presence and absence of cardiac arrhythmia and to classify it in one of the 16 groups.'; 25 user.desc=['The Arrhymthmia database from UCI. The aim is to ' ... 26 'distinguish between the presence and absence of cardiac ' ... 27 'arrhythmia and to classify it in one of the 16 groups.']; 28 28 user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/arrhythmia'; 29 29 … … 48 48 strcat('V4-',fl2) strcat('V5-',fl2) strcat('V6-',fl2)]; 49 49 50 a = load('arrhythmia.dat');51 50 x = pr_dataset(a(:,1:(end-1)),a(:,end)); 52 51 x = setfeatlab(x,fl); 53 52 x = setname(x,'Arrhythmia normal'); 54 53 x = setuser(x,user); 55 %x(:,14) = []; % there are so many missing values, that I just remove this56 % % don't do this, nice but confusing57 54 x = misval(x,val); 58 % user.desc = [user.desc msg]; 59 % x = setuser(x,user); 60 x = setlablist(x); 55 61 56 return -
prdatasets/biomed.m
r94 r123 10 10 % 11 11 % By default objects with missing values are removed. When something else 12 % is desired, use one of the options in MISVAL .12 % is desired, use one of the options in MISVAL for VAL. 13 13 % 14 14 % This is the ''biomed' dataset of the <a href="http://lib.stat.cmu.edu/datasets/">StatLib Datasets Archive</a>. 15 % Just the original features 3, 5, 6, 7 and 8 are used. 15 16 % 16 17 % SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a> … … 21 22 function x = biomed(val) 22 23 23 prdatasets(mfilename,1,'http://prtools.org/prdatasets/biomed.dat'); 24 if nargin<1 25 val = 'remove'; 26 end 24 if nargin < 1, val = 'remove'; end 25 a = pr_getdata('http://37steps.com/data/prdatasets/biomed.dat',1); 27 26 28 27 user.desc = 'The purpose of the analysis is to develop a screening procedure to detect carriers and to describe its effectiveness. '; … … 31 30 fl = {'age' 'measurement 1' 'measurement 2' 'measurement 3' 'measurement 4'}; 32 31 33 a = load('biomed.dat');34 32 x = pr_dataset(a(:,[3 5 6 7 8]),cl(a(:,end))); 35 33 x = setfeatlab(x,fl); 36 34 x = setname(x,'Biomed'); 37 [x,msg] = misval(x,val);38 user.desc = [user.desc msg];39 35 x = setuser(x,user); 36 x = misval(x,val); 40 37 41 38 return -
prdatasets/breast.m
r94 r123 13 13 % 14 14 % By default objects with missing values are removed. When something else 15 % is desired, use one of the options in MISVAL .15 % is desired, use one of the options in MISVAL for Val. 16 16 % 17 17 % SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a> … … 22 22 function x = breast(val) 23 23 24 prdatasets(mfilename,1,'http://prtools.org/prdatasets/breastorg.dat'); 25 if nargin<1 26 val = 'remove'; 27 end 24 if nargin < 1, val = 'remove'; end 25 %prdatasets(mfilename,1,'http://prtools.org/prdatasets/breastorg.dat'); 26 27 a = pr_getdata('http://37steps.com/data/prdatasets/breastorg.dat',1); 28 28 29 29 user.desc='The original database of the Wisconsin Breast Cancer Databases from UCI, containing 699 instances, collected between 1989 and 1991. '; … … 35 35 'Normal Nucleoli' 'Mitoses'}; 36 36 37 a = load('breastorg.dat'); 37 %a = load('breastorg.dat'); % Octave cannot find it 38 %a = load(fullfile(fileparts(which(mfilename)),'breastorg.dat')); 38 39 J = find(a==-1); 39 40 a(J) = NaN; … … 42 43 x = setfeatlab(x,fl); 43 44 x = setname(x,'Breast Wisconsin'); 44 [x,msg] = misval(x,val); 45 user.desc = [user.desc msg]; 45 x = misval(x,val); 46 46 x = setuser(x,user); 47 47 -
prdatasets/car.m
r116 r123 8 8 % 1(1), pp. 145-157, 1990.). All 6 features are nominal. 9 9 % The instances completely cover the attribute space. 10 10 11 function x = car 11 12 … … 16 17 user.desc = 'Car Evaluation Database was derived from a simple hierarchical decision model originally developed for the demonstration of DEX (M. Bohanec, V. Rajkovic: Expert system for decision making. Sistemica 1(1), pp. 145-157, 1990.).'; 17 18 fl = {'buying price' 'maintenance price' 'nr of doors' 'nr of persons' 'luggage boot' 'safety'}; 18 19 x = pr_readdataset('car.data',0,',',[],'ccccccc',7); 19 20 datfile = fullfile(fileparts(which(mfilename)),'car.data'); 21 x = pr_readdataset(datfile,0,',',[],'ccccccc',7); 20 22 x = setfeatlab(x,fl); 21 23 x = setuser(x,user); -
prdatasets/chromo.m
r81 r123 13 13 14 14 prdatasets(mfilename,1); 15 a = pr_dataset('chromo'); 15 datfile = fullfile(fileparts(which(mfilename)),'chromo'); 16 a = pr_dataset(datfile); 16 17 a = setname(a,'Chromosome Features');
Note: See TracChangeset
for help on using the changeset viewer.