manual prediction of ovr SVC with polynomial kernel

I am using scikit-learn 0.22. After searching the net, I found this answer. I’ve added the polynomial case to kernel function and did not touch decision_function & predict def kernel(params, sv, X): if params[‘kernel’] == ‘linear’: return [np.dot(vi, X) for vi in sv] elif params[‘kernel’] == ‘poly’: return [(params[‘gamma’] * np.dot(vi, X)) ** params[‘degree’] for…

Details