{methods}
public static function {method_name}($features) {{
    $n_classes = {n_classes};
    $classes = array_fill(0, $n_classes, 0);
    {method_calls}
    $class_idx = 0;
    $class_val = $classes[0];
    for ($i = 0; $i < $n_classes; $i++) {{
        if ($classes[$i] > $class_val) {{
            $class_idx = $i;
            $class_val = $classes[$i];
        }}
    }}
    return $class_idx;
}}