Enum MetricReduction
- All Implemented Interfaces:
Serializable, Comparable<MetricReduction>
Defines the different types of metric reductions
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionScalar sum of weighted values.Scalar sum of weighted values divided by number of elements.Scalar sum of weighted values divided by sum of weights. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricReductionReturns the enum constant of this type with the specified name.static MetricReduction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUM
Scalar sum of weighted values. -
SUM_OVER_BATCH_SIZE
Scalar sum of weighted values divided by number of elements. -
WEIGHTED_MEAN
Scalar sum of weighted values divided by sum of weights.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-