1 | %BREAST 699 objects with 9 features in 2 classes |
---|
2 | % |
---|
3 | % X = BREAST; |
---|
4 | % |
---|
5 | % Breast cancer Wisconsin dataset obtained from the University of Wisconsin |
---|
6 | % Hospitals, Madison from Dr. William H. Wolberg. |
---|
7 | % |
---|
8 | % REFERENCE |
---|
9 | % O. L. Mangasarian and W. H. Wolberg: "Cancer diagnosis via linear |
---|
10 | % programming", SIAM News, Volume 23, Number 5, September 1990, pp 1 & 18. |
---|
11 | % |
---|
12 | % X = BREAST(VAL); |
---|
13 | % |
---|
14 | % Per default the missing values are replaced by -1. When you want to |
---|
15 | % do something else, use one of the options in missingvalues.m. |
---|
16 | function x = breast(val) |
---|
17 | |
---|
18 | prdatasets(mfilename,1,'http://prtools.org/prdatasets/breastorg.dat'); |
---|
19 | if nargin<1 |
---|
20 | val = -1; |
---|
21 | end |
---|
22 | |
---|
23 | user.desc='The original database of the Wisconsin Breast Cancer Databases from UCI, containing 699 instances, collected between 1989 and 1991. '; |
---|
24 | user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/breast-cancer-wisconsin/'; |
---|
25 | cl = {'benign' 'malignant'}; |
---|
26 | fl = {'Clump Thickness' 'Uniformity of Cell Size' ... |
---|
27 | 'Uniformity of Cell Shape' 'Marginal Adhesion' ... |
---|
28 | 'Single Epithelial Cell Size' 'Bare Nuclei' 'Bland Chromatin' ... |
---|
29 | 'Normal Nucleoli' 'Mitoses'}; |
---|
30 | |
---|
31 | a = load('breastorg.dat'); |
---|
32 | J = find(a==-1); |
---|
33 | a(J) = NaN; |
---|
34 | nlab = a(:,end)/2; % the labels for the classes are (2,4), very strange |
---|
35 | x = pr_dataset(a(:,2:(end-1)), cl(nlab) ); |
---|
36 | x = setfeatlab(x,fl); |
---|
37 | x = setname(x,'Breast Wisconsin'); |
---|
38 | [x,msg] = prmissingvalues(x,val); |
---|
39 | user.desc = [user.desc msg]; |
---|
40 | x = setuser(x,user); |
---|
41 | |
---|
42 | return |
---|