public int {method_name}(double[] features) {{
    double prob = 0.;
    for (int i = 0, il = this.coefficients.length; i < il; i++) {{
        prob += this.coefficients[i] * features[i];
    }}
    if (prob + this.intercepts > 0) {{
        return 1;
    }}
    return 0;
}}