18
18
* LinearForwardSelection.java
19
* Copyright (C) 2007 Martin Gütlein
19
* Copyright (C) 2007 Martin Guetlein
22
23
package weka.attributeSelection;
24
25
import weka.core.Instances;
25
26
import weka.core.Option;
26
27
import weka.core.OptionHandler;
27
28
import weka.core.Range;
29
import weka.core.RevisionUtils;
28
30
import weka.core.SelectedTag;
29
31
import weka.core.Tag;
30
32
import weka.core.Utils;
41
43
<!-- globalinfo-start -->
42
* LinearForwardSelection:<br/>
43
* Class for performing a linear forward selection (Extension of
44
* LinearForwardSelection:<br/>
46
* Extension of BestFirst. Takes a restricted number of k attributes into account. Fixed-set selects a fixed number k of attributes, whereas k is increased in each step when fixed-width is selected. The search uses either the initial ordering to select the top k attributes, or performs a ranking (with the same evalutator the search uses later on). The search direction can be forward, or floating forward selection (with opitional backward search steps).<br/>
48
* For more information see:<br/>
50
* Martin Guetlein (2006). Large Scale Attribute Selection Using Wrappers. Freiburg, Germany.
46
52
<!-- globalinfo-end -->
48
54
<!-- options-start -->
52
* <pre> -P <start set>
53
* Specify a starting set of attributes.
56
* <pre> -D <0 = forward selection | 1 = floating forward selection>
57
* Forward selection method of the search. (default = 0).</pre>
59
* <pre> -N <num>
60
* Number of non improving nodes to consider before terminating search. (default = 5).</pre>
63
* Perform initial ranking to select top-ranked attributes. </pre>
65
* <pre> -K <num>
66
* Number of top-ranked attributes that are taken into account.</pre>
68
* <pre> -T <0 = fixed-set | 1 = fixed-width>
69
* Type of Linear Forward Selection (default = 0).</pre>
71
* <pre> -S <num>
72
* Size of lookup cache for evaluated subsets. Expressed as a multiple of the
73
* number of attributes in the data set. (default = 1).</pre>
76
* verbose on/off. </pre>
55
* Valid options are: <p/>
57
* <pre> -P <start set>
58
* Specify a starting set of attributes.
61
* <pre> -D <0 = forward selection | 1 = floating forward selection>
62
* Forward selection method. (default = 0).</pre>
64
* <pre> -N <num>
65
* Number of non-improving nodes to
66
* consider before terminating search.</pre>
69
* Perform initial ranking to select the
70
* top-ranked attributes.</pre>
72
* <pre> -K <num>
73
* Number of top-ranked attributes that are
74
* taken into account by the search.</pre>
76
* <pre> -T <0 = fixed-set | 1 = fixed-width>
77
* Type of Linear Forward Selection (default = 0).</pre>
79
* <pre> -S <num>
80
* Size of lookup cache for evaluated subsets.
81
* Expressed as a multiple of the number of
82
* attributes in the data set. (default = 1)</pre>
85
* verbose on/off</pre>
80
89
* @author Martin Guetlein (martin.guetlein@gmail.com)
81
* @version $Revision: 1.1 $
90
* @version $Revision: 1.4 $
83
92
public class LinearForwardSelection
187
196
result.setValue(Field.AUTHOR, "Martin Guetlein");
188
197
result.setValue(Field.YEAR, "2006");
189
198
result.setValue(Field.TITLE, "Large Scale Attribute Selection Using Wrappers");
190
result.setValue(Field.SCHOOL, "Albert-Ludwigs-Universitat");
199
result.setValue(Field.SCHOOL, "Albert-Ludwigs-Universitaet");
191
200
result.setValue(Field.ADDRESS, "Freiburg, Germany");