func (svc {class_name}) {method_name}(features []float64) int {{
	classIdx := 0
	classVal := math.Inf(-1)
	outerCount, innerCount := len(svc.coefficients), len(svc.coefficients[0])
	for i := 0; i < outerCount; i++ {{
		var prob float64
		for j := 0; j < innerCount; j++ {{
			prob = prob + svc.coefficients[i][j] * features[j]
		}}
		if prob + svc.intercepts[i] > classVal {{
			classVal = prob + svc.intercepts[i]
			classIdx = i
		}}
	}}
	return classIdx
}}