Python Forum
SVM error - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: SVM error (/thread-14361.html)



SVM error - ayaz786amd - Nov-26-2018

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?


RE: SVM error - buran - Nov-26-2018

it's not error, but warning. as it says, specify gamma explicitly
clf = svm.SVR(gamma='auto') # or gamma='scale'