StackMetaLearnerType Class

public final class StackMetaLearnerType
extends ExpandableStringEnum<StackMetaLearnerType>

The meta-learner is a model trained on the output of the individual heterogeneous models. Default meta-learners are LogisticRegression for classification tasks (or LogisticRegressionCV if cross-validation is enabled) and ElasticNet for regression/forecasting tasks (or ElasticNetCV if cross-validation is enabled). This parameter can be one of the following strings: LogisticRegression, LogisticRegressionCV, LightGBMClassifier, ElasticNet, ElasticNetCV, LightGBMRegressor, or LinearRegression.

Field Summary

Modifier and Type Field and Description
static final StackMetaLearnerType ELASTIC_NET

Static value ElasticNet for StackMetaLearnerType.

static final StackMetaLearnerType ELASTIC_NET_CV

Static value ElasticNetCV for StackMetaLearnerType.

static final StackMetaLearnerType LIGHT_GBMCLASSIFIER

Static value LightGBMClassifier for StackMetaLearnerType.

static final StackMetaLearnerType LIGHT_GBMREGRESSOR

Static value LightGBMRegressor for StackMetaLearnerType.

static final StackMetaLearnerType LINEAR_REGRESSION

Static value LinearRegression for StackMetaLearnerType.

static final StackMetaLearnerType LOGISTIC_REGRESSION

Static value LogisticRegression for StackMetaLearnerType.

static final StackMetaLearnerType LOGISTIC_REGRESSION_CV

Static value LogisticRegressionCV for StackMetaLearnerType.

static final StackMetaLearnerType NONE

Static value None for StackMetaLearnerType.

Constructor Summary

Constructor Description
StackMetaLearnerType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of StackMetaLearnerType value.

Method Summary

Modifier and Type Method and Description
static StackMetaLearnerType fromString(String name)

Creates or finds a StackMetaLearnerType from its string representation.

static Collection<StackMetaLearnerType> values()

Gets known StackMetaLearnerType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ELASTIC_NET

public static final StackMetaLearnerType ELASTIC_NET

Static value ElasticNet for StackMetaLearnerType.

ELASTIC_NET_CV

public static final StackMetaLearnerType ELASTIC_NET_CV

Static value ElasticNetCV for StackMetaLearnerType.

LIGHT_GBMCLASSIFIER

public static final StackMetaLearnerType LIGHT_GBMCLASSIFIER

Static value LightGBMClassifier for StackMetaLearnerType.

LIGHT_GBMREGRESSOR

public static final StackMetaLearnerType LIGHT_GBMREGRESSOR

Static value LightGBMRegressor for StackMetaLearnerType.

LINEAR_REGRESSION

public static final StackMetaLearnerType LINEAR_REGRESSION

Static value LinearRegression for StackMetaLearnerType.

LOGISTIC_REGRESSION

public static final StackMetaLearnerType LOGISTIC_REGRESSION

Static value LogisticRegression for StackMetaLearnerType.

LOGISTIC_REGRESSION_CV

public static final StackMetaLearnerType LOGISTIC_REGRESSION_CV

Static value LogisticRegressionCV for StackMetaLearnerType.

NONE

public static final StackMetaLearnerType NONE

Static value None for StackMetaLearnerType.

Constructor Details

StackMetaLearnerType

@Deprecated
public StackMetaLearnerType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of StackMetaLearnerType value.

Method Details

fromString

public static StackMetaLearnerType fromString(String name)

Creates or finds a StackMetaLearnerType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding StackMetaLearnerType.

values

public static Collection<StackMetaLearnerType> values()

Gets known StackMetaLearnerType values.

Returns:

known StackMetaLearnerType values.

Applies to