summaryrefslogtreecommitdiffstats
path: root/src/model/ModelInterface.java
diff options
context:
space:
mode:
authorHai Liu <hai.liu@huawei.com>2016-03-18 15:03:47 +0800
committerHai Liu <hai.liu@huawei.com>2016-03-18 15:03:47 +0800
commit4034199deccff41cb6661812d4c4aa7c523d78b4 (patch)
tree3d047da70e1ee6a67e05cf62d3dd58602dad1d72 /src/model/ModelInterface.java
parenta4669a5eff3b0866f9f15346a5a0d4d81af409d7 (diff)
Add data model for predictor
JIRA: PREDICTION-36 Change-Id: I871ce7e3696e7154ee4adb5c83cdb45c02a97d7b Signed-off-by: Hai Liu <hai.liu@huawei.com>
Diffstat (limited to 'src/model/ModelInterface.java')
-rw-r--r--src/model/ModelInterface.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/model/ModelInterface.java b/src/model/ModelInterface.java
new file mode 100644
index 0000000..a4d1b7b
--- /dev/null
+++ b/src/model/ModelInterface.java
@@ -0,0 +1,32 @@
+package model;
+
+import java.util.ArrayList;
+
+import weka.core.Instances;
+
+import predictor.*;
+
+
+public interface ModelInterface {
+ public String getDatapath();
+ public ArrayList<PredictorInterface> getPredictors();
+
+ public void loadTrainingData(String path);
+ public void loadRawLog(String path);
+ public Instances getTrainingInstances();
+ public void setPreprocessedInstances(Instances instances);
+ public Instances getPreprocessedInstances();
+ public void savePreprocessedInstances(String path);
+ public void addPredictor(String shortName);
+ public void crossValidatePredictors(int numFold);
+ public void crossValidatePredictors(int numFold, long seed);
+ public void selectTrainingMethod();
+ public void trainPredictors() throws Exception;
+ public void benchmark(int rounds, String filename) throws Exception;
+
+ public String getPredictorNames();
+ public String toString();
+ public void saveSettings(String filename) throws Exception;
+ public void saveResults(String filename) throws Exception;
+}
+