package onsc;
import org.debellor.base.evaluator.TrainAndTest;
import org.debellor.core.Cell;
import org.debellor.weka.ArffReader;
import org.debellor.weka.WekaClassifier;
public class Test {
public static void main(String[] args) throws Exception
{
Cell arff = new ArffReader();
arff.set("filename", "/home/marcin/Desktop/ONSDataNumeric.arff");
arff.set("decisionAttr", "last");
Cell model = new WekaClassifier("onsc.SolubilityModel");
TrainAndTest tt = new TrainAndTest(model);
tt.set("trainPercent", 0);
tt.set("score", "RMSE");
tt.setSource(arff);
tt.learn();
System.out.println(tt.report());
}
}