Package com.bayesserver.data
Interface CrossValidationActions
-
public interface CrossValidationActions
Actions which the caller must implement to use Cross Validation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CrossValidationScore
combine(int metric, CrossValidationTestResult[] testResults)
A user supplied function to combine the test results over multiple partitioning.CrossValidationNetwork
learn(DataPartitioning trainingPartitioning)
A user supplied function to learn a network based on a training partitioning of the data.CrossValidationTestResult[]
test(DataPartitioning testPartitioning, CrossValidationNetwork crossValidationNetwork)
A user supplied function to test the network on a test partitioning of the data.
-
-
-
Method Detail
-
learn
CrossValidationNetwork learn(DataPartitioning trainingPartitioning)
A user supplied function to learn a network based on a training partitioning of the data.- Parameters:
trainingPartitioning
- The training data partitioning to learn a network from.- Returns:
- The network learnt from the data partitioning and any other relevant information.
-
test
CrossValidationTestResult[] test(DataPartitioning testPartitioning, CrossValidationNetwork crossValidationNetwork)
A user supplied function to test the network on a test partitioning of the data.- Parameters:
testPartitioning
- The test data partitioning to learn a network from.crossValidationNetwork
- The network learnt from the associated training data partitioning.- Returns:
- The test results for this test data partitioning.
-
combine
CrossValidationScore combine(int metric, CrossValidationTestResult[] testResults)
A user supplied function to combine the test results over multiple partitioning.- Parameters:
metric
- The metric to combine.testResults
- The test results associated with the metric.- Returns:
- The score which is a result of combining the test results for this metric.
-
-