Package com.bayesserver.data
Enum CrossValidationCombineMethod
- java.lang.Object
-
- java.lang.Enum<CrossValidationCombineMethod>
-
- com.bayesserver.data.CrossValidationCombineMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<CrossValidationCombineMethod>
public enum CrossValidationCombineMethod extends Enum<CrossValidationCombineMethod>
Ways of combining cross validation test results to form an overall cross validation score.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description R_SQUARED
Combines R-squared statistics calculated on different partitions of data.UNWEIGHTED_SUM
Simply sums the numeric test results.WEIGHTED_AVERAGE
Calculates the average of the numeric test results weighted by the number of records in each test partitioning.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CrossValidationCombineMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static CrossValidationCombineMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEIGHTED_AVERAGE
public static final CrossValidationCombineMethod WEIGHTED_AVERAGE
Calculates the average of the numeric test results weighted by the number of records in each test partitioning. This would be appropriate when combining lift scores.
-
UNWEIGHTED_SUM
public static final CrossValidationCombineMethod UNWEIGHTED_SUM
Simply sums the numeric test results. This assumes that the weight has already been incorporated. This would be appropriate when combining log-likelihoods, which for each test partitioning are the sum of the log-likelihoods for each test case.
-
R_SQUARED
public static final CrossValidationCombineMethod R_SQUARED
Combines R-squared statistics calculated on different partitions of data.
-
-
Method Detail
-
values
public static CrossValidationCombineMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CrossValidationCombineMethod c : CrossValidationCombineMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CrossValidationCombineMethod valueOf(String name)
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
-
-