[PYTHON] FutureWarning

svc_poly = svm.SVC(kernel='poly', degree=3, C = C); svc_poly.fit(X, y)

/opt/conda/lib/python3.6/site-packages/sklearn/svm/base.py:196: FutureWarning: The default value of gamma will change from 'auto' to 'scale' in version 0.22 to account better for unscaled features. Set gamma explicitly to 'auto' or 'scale' to avoid this warning. "avoid this warning.", FutureWarning)

svc_poly = svm.SVC(gamma="scale", kernel='poly', degree=3, C = C); svc_poly.fit(X, y)

L'avertissement a disparu.

Recommended Posts

FutureWarning