package model;

/**
 * Created by hanxuan on 9/18/15 for machine_learning.
 */
public interface Predictable {
    double predict(double[] feature);
    default double score(double[] feature){
        return predict(feature);
    }
}

@@ -103,16 +103,17 @@
 table %7B%0A
+%0A
     doub
@@ -138,24 +138,25 @@
 %5D feature);%0A
+%0A
     default 
@@ -224,12 +224,191 @@
 e);%0A
-
     %7D%0A
+%0A    default double%5B%5D probs(double%5B%5D feature)%7B%0A        System.out.println(%22default probs method not allowed, exit%22);%0A        System.exit(-1);%0A        return new double%5B0%5D;%0A    %7D%0A%0A
 %7D%0A

add probs method