[80] | 1 | %BREAST 699 objects with 9 features in 2 classes |
---|
| 2 | % |
---|
[94] | 3 | % X = BREAST |
---|
[80] | 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 | % |
---|
[94] | 12 | % X = BREAST(VAL) |
---|
[80] | 13 | % |
---|
[94] | 14 | % By default objects with missing values are removed. When something else |
---|
| 15 | % is desired, use one of the options in MISVAL. |
---|
| 16 | % |
---|
| 17 | % SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a> |
---|
| 18 | % PRTOOLS, DATASETS, MISVAL |
---|
| 19 | |
---|
| 20 | % Copyright: R.P.W. Duin, r.p.w.duin@prtools.org |
---|
| 21 | |
---|
[80] | 22 | function x = breast(val) |
---|
| 23 | |
---|
| 24 | prdatasets(mfilename,1,'http://prtools.org/prdatasets/breastorg.dat'); |
---|
| 25 | if nargin<1 |
---|
[94] | 26 | val = 'remove'; |
---|
[80] | 27 | end |
---|
| 28 | |
---|
| 29 | user.desc='The original database of the Wisconsin Breast Cancer Databases from UCI, containing 699 instances, collected between 1989 and 1991. '; |
---|
| 30 | user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/breast-cancer-wisconsin/'; |
---|
| 31 | cl = {'benign' 'malignant'}; |
---|
| 32 | fl = {'Clump Thickness' 'Uniformity of Cell Size' ... |
---|
| 33 | 'Uniformity of Cell Shape' 'Marginal Adhesion' ... |
---|
| 34 | 'Single Epithelial Cell Size' 'Bare Nuclei' 'Bland Chromatin' ... |
---|
| 35 | 'Normal Nucleoli' 'Mitoses'}; |
---|
| 36 | |
---|
| 37 | a = load('breastorg.dat'); |
---|
| 38 | J = find(a==-1); |
---|
| 39 | a(J) = NaN; |
---|
| 40 | nlab = a(:,end)/2; % the labels for the classes are (2,4), very strange |
---|
[81] | 41 | x = pr_dataset(a(:,2:(end-1)), cl(nlab) ); |
---|
[80] | 42 | x = setfeatlab(x,fl); |
---|
| 43 | x = setname(x,'Breast Wisconsin'); |
---|
[94] | 44 | [x,msg] = misval(x,val); |
---|
[80] | 45 | user.desc = [user.desc msg]; |
---|
| 46 | x = setuser(x,user); |
---|
| 47 | |
---|
| 48 | return |
---|