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 theDefaultCrossValidationTestResultclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetValue()Gets the test result value for this test partitioning.doublegetWeightedCaseCount()Gets the number of records in the test partitioning.DoublenumericValue()Returns the test result as a numeric value if supported, otherwise returns null.voidsetValue(Object value)voidsetWeightedCaseCount(double value)
-
-
-
Constructor Detail
-
DefaultCrossValidationTestResult
public DefaultCrossValidationTestResult(double weightedCaseCount, Object value, Double numericValue)Initializes a new instance of theDefaultCrossValidationTestResultclass.
-
-
Method Detail
-
getWeightedCaseCount
public double getWeightedCaseCount()
Gets the number of records in the test partitioning.- Specified by:
getWeightedCaseCountin 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:
getValuein 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:
numericValuein interfaceCrossValidationTestResult- Returns:
- The numeric test result if supported.
-
-