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