List of usage examples for weka.classifiers.functions LinearRegression SELECTION_M5
int SELECTION_M5
To view the source code for weka.classifiers.functions LinearRegression SELECTION_M5.
Click Source Link
From source file:wekimini.learning.LinearRegressionModelBuilder.java
public void setFeatureSelectionType(FeatureSelectionType newType) { featureSelectionType = newType;/* w w w .j av a 2s .c om*/ 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)); } }