diff options
author | Hai Liu <hai.liu@huawei.com> | 2016-04-20 15:19:09 +0800 |
---|---|---|
committer | Hai Liu <hai.liu@huawei.com> | 2016-04-20 15:35:01 +0800 |
commit | 538c8e4d65b460db537ab81159f83e1092626275 (patch) | |
tree | 7a310e750be3e1e4071d05a8f3bcef7f7d96a8c6 | |
parent | 0f7b2c048a91cf767ded7bef2417b01530b77595 (diff) |
Add predictor interface
JIRA:PREDICTION-43
Change-Id: I4b044ef2a3c34046014697cd9696254c1461f48a
-rw-r--r-- | src/predictor/PredictorInterface.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/predictor/PredictorInterface.java b/src/predictor/PredictorInterface.java new file mode 100644 index 0000000..03b9052 --- /dev/null +++ b/src/predictor/PredictorInterface.java @@ -0,0 +1,18 @@ +package predictor; + +import java.util.Random; + +import weka.core.*; + +public interface PredictorInterface { + public String getName(); + public void crossValidate(Instances instances, int numFold, Random rand) throws Exception; + //public String getEvaluationSummaryString(); + //public String getEvaluationMatrixString() throws Exception; + public FastVector getEvaluationPredictions(); + public void train(Instances instances) throws Exception; + public int predict(Instance instance) throws Exception; + public int predict(Instances instances) throws Exception; + public String getEvaluationResults() throws Exception; +} + |