private double Classify(double[] weights, double[] features) { double hypothesis = Logistic.Hypothesis(weights, features); return(hypothesis >= .5 ? 1.0 : 0.0); }
private double Classify(double[] weights, double[] features) { double hypothesis = Logistic.Hypothesis(weights, features); return(hypothesis >= .5 ? 1.0 : 0.0); }