func {method_name}(features []float64) int {{
	var classes [{n_classes}]float64
	{branches}

    var index int = 0
	for i := 0; i < len(classes); i++ {{
	    if classes[i] > classes[index] {{
	        index = i
	    }}
	}}
	return index
}}