List of usage examples for weka.classifiers.functions LinearRegression SELECTION_GREEDY
int SELECTION_GREEDY
To view the source code for weka.classifiers.functions LinearRegression SELECTION_GREEDY.
Click Source Link
From source file:wekimini.learning.LinearRegressionModelBuilder.java
public void setFeatureSelectionType(FeatureSelectionType newType) { featureSelectionType = newType;// ww w .j a v a 2s. co m switch (newType) { case NONE: ((LinearRegression) classifier).setAttributeSelectionMethod( new SelectedTag(LinearRegression.SELECTION_NONE, LinearRegression.TAGS_SELECTION)); break; case M5: ((LinearRegression) classifier).setAttributeSelectionMethod( new SelectedTag(LinearRegression.SELECTION_M5, LinearRegression.TAGS_SELECTION)); break; case GREEDY: default: ((LinearRegression) classifier).setAttributeSelectionMethod( new SelectedTag(LinearRegression.SELECTION_GREEDY, LinearRegression.TAGS_SELECTION)); } }