Package org.tribuo.regression.baseline
Enum Class DummyRegressionTrainer.DummyType
java.lang.Object
java.lang.Enum<DummyRegressionTrainer.DummyType>
org.tribuo.regression.baseline.DummyRegressionTrainer.DummyType
- All Implemented Interfaces:
Serializable
,Comparable<DummyRegressionTrainer.DummyType>
,Constable
- Enclosing class:
- DummyRegressionTrainer
Types of dummy regression model.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReturns the specified constant value.Samples from a Gaussian using the means and variances from the training data.Returns the mean of the training data outputs.Returns the median of the training data outputs.Returns the training data output at the specified fraction of the sorted output. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DummyRegressionTrainer.DummyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MEAN
Returns the mean of the training data outputs. -
MEDIAN
Returns the median of the training data outputs. -
QUARTILE
Returns the training data output at the specified fraction of the sorted output. -
CONSTANT
Returns the specified constant value. -
GAUSSIAN
Samples from a Gaussian using the means and variances from the training data.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-