summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/predictor/PredictorInterface.java18
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;
+}
+