Example usage for weka.classifiers.functions LinearRegression SELECTION_M5

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

Introduction

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

Prototype

int SELECTION_M5

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

Click Source Link

Document

Attribute selection method: M5 method

Usage

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