[142] | 1 | %ANNEALING Steel annealing data
|
---|
| 2 | %PRTools UCI dataset import, 798+100 objects, 38 features, 2 classes
|
---|
| 3 | %
|
---|
| 4 | % [TRAIN,TEST] = ANNEALING(VAL)
|
---|
| 5 | % TRAIN_TEST = ANNEALING(VAL)
|
---|
| 6 | %
|
---|
| 7 | %DESCRIPTION
|
---|
| 8 | %This command downloads one of the UCI data sets, converts it into PRTools
|
---|
| 9 | %format and stores it locally for future use. Consult the <a href="http://archive.ics.uci.edu/ml/datasets/Annealing">related website</a>
|
---|
| 10 | %for further information. Please make the appropriate references in
|
---|
| 11 | %publications that make use of this dataset.
|
---|
| 12 | %
|
---|
| 13 | %This dataset contains a number of categorical features with N > 2
|
---|
| 14 | %categories. They may be converted to N new real features by CAT2REAL.
|
---|
| 15 | %
|
---|
| 16 | %Dataset has missing values. By default all features with missing values are
|
---|
| 17 | %removed. Use VAL=NaN to avoid this. For other options see MISVAL.
|
---|
| 18 | %
|
---|
| 19 | %SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a>
|
---|
| 20 | %PRTOOLS, DATASETS, SETFEATDOM, FEATTYPES, CAT2REAL, MISVAL
|
---|
| 21 |
|
---|
| 22 | % Copyright: R.P.W. Duin, r.p.w.duin@37steps.com
|
---|
| 23 |
|
---|
| 24 | function varargout = annealing(val)
|
---|
| 25 |
|
---|
| 26 | if nargin<1
|
---|
| 27 | val = 'f-remove';
|
---|
| 28 | end
|
---|
| 29 |
|
---|
| 30 | varargout = cell(1,nargout);
|
---|
| 31 | [varargout{:}] = pr_loadmatfile;
|
---|
| 32 | if isempty(varargout{1})
|
---|
| 33 | opt.format = 'cccnncccncccccccccccccccccccccccnnncncc';
|
---|
| 34 | opt.dsetname = 'Steel Annealing Data';
|
---|
| 35 | [varargout{:}] = pr_download_uci('annealing',{'anneal.data','anneal.test'},opt);
|
---|
| 36 | end
|
---|
| 37 | varargout = varargout*misval(val);
|
---|
| 38 |
|
---|
| 39 |
|
---|
| 40 |
|
---|