source: prdatasets/annealing.m @ 152

Last change on this file since 152 was 150, checked in by bduin, 5 years ago
File size: 1.4 KB
RevLine 
[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%
[150]19%SEE ALSO <a href="http://prtools.tudelft.nl/prtools/">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a>
[142]20%PRTOOLS, DATASETS, SETFEATDOM, FEATTYPES, CAT2REAL, MISVAL
21
[150]22% Copyright: R.P.W. Duin
[142]23
24function varargout = annealing(val)
25
26if nargin<1
27        val = 'f-remove';
28end
29
30varargout = cell(1,nargout);
31[varargout{:}] = pr_loadmatfile;
32if isempty(varargout{1})
33  opt.format   = 'cccnncccncccccccccccccccccccccccnnncncc';
34  opt.dsetname = 'Steel Annealing Data';
35  [varargout{:}] =  pr_download_uci('annealing',{'anneal.data','anneal.test'},opt);
36end
37varargout = varargout*misval(val);
38
39
40
Note: See TracBrowser for help on using the repository browser.