package Learners; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import Exceptions.UnsupportedFileTypeException; import Experiment.Dataset; public class BasicLearner implements Learner { @Override public void learn(String trainingData, String testingData, String output) throws IOException, UnsupportedFileTypeException { Dataset temp = new Dataset(testingData); ArrayList scores = temp.effortValues(); FileWriter writer = new FileWriter(output); for (String score : scores) { writer.write(score + ",1\n"); } writer.close(); } @Override public void setSettings(String settings) { // TODO Auto-generated method stub } @Override public String getSettings() { // TODO Auto-generated method stub return null; } @Override public String getName() { return "BasicLearner"; } @Override public double estimate(String trainingData, String testingData) { return 3; } }