Package com.bayesserver.data
Class DefaultCrossValidationTestResult
- java.lang.Object
-
- com.bayesserver.data.DefaultCrossValidationTestResult
-
- All Implemented Interfaces:
CrossValidationTestResult
public final class DefaultCrossValidationTestResult extends Object implements CrossValidationTestResult
A simple default implementation ofCrossValidationTestResult
.
-
-
Constructor Summary
Constructors Constructor Description DefaultCrossValidationTestResult(double weightedCaseCount, Object value, Double numericValue)
Initializes a new instance of theDefaultCrossValidationTestResult
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue()
Gets the test result value for this test partitioning.double
getWeightedCaseCount()
Gets the number of records in the test partitioning.Double
numericValue()
Returns the test result as a numeric value if supported, otherwise returns null.void
setValue(Object value)
void
setWeightedCaseCount(double value)
-
-
-
Constructor Detail
-
DefaultCrossValidationTestResult
public DefaultCrossValidationTestResult(double weightedCaseCount, Object value, Double numericValue)
Initializes a new instance of theDefaultCrossValidationTestResult
class.
-
-
Method Detail
-
getWeightedCaseCount
public double getWeightedCaseCount()
Gets the number of records in the test partitioning.- Specified by:
getWeightedCaseCount
in interfaceCrossValidationTestResult
-
setWeightedCaseCount
public void setWeightedCaseCount(double value)
-
getValue
public Object getValue()
Gets the test result value for this test partitioning. This might be the log-likelihood, or the lift, etc...- Specified by:
getValue
in interfaceCrossValidationTestResult
-
setValue
public void setValue(Object value)
-
numericValue
public Double numericValue()
Returns the test result as a numeric value if supported, otherwise returns null.- Specified by:
numericValue
in interfaceCrossValidationTestResult
- Returns:
- The numeric test result if supported.
-
-