Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SVM error
The following error is due to svm code
clf = svm.SVR()
C:\Users\Ayaz\AppData\Roaming\Python\Python37\site-packages\sklearn\svm\ 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'
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs


Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020