def {method_name} (features)
	classVal = -1.0/0.0
	classIdx = -1
	for i in 0 ... @intercepts.length
		prob = 0
		for j in 0 ... @coefficients[i].length
			prob += @coefficients[i][j] * features[j].to_f
		end
		if prob + @intercepts[i] > classVal
			classVal = prob + @intercepts[i]
			classIdx = i
		end
	end
	return classIdx
end