Python Forum

Full Version: SVM error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The following error is due to svm code
clf = svm.SVR()
Error:
C:\Users\Ayaz\AppData\Roaming\Python\Python37\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)
Anybody knows how to fix it?
it's not error, but warning. as it says, specify gamma explicitly
clf = svm.SVR(gamma='auto') # or gamma='scale'