Example usage for weka.classifiers.functions LinearRegression SELECTION_GREEDY

List of usage examples for weka.classifiers.functions LinearRegression SELECTION_GREEDY

Introduction

In this page you can find the example usage for weka.classifiers.functions LinearRegression SELECTION_GREEDY.

Prototype

int SELECTION_GREEDY

To view the source code for weka.classifiers.functions LinearRegression SELECTION_GREEDY.

Click Source Link

Document

Attribute selection method: Greedy method

Usage

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));
    }
}