Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 SVM error
#1
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?
Quote
#2
it's not error, but warning. as it says, specify gamma explicitly
clf = svm.SVR(gamma='auto') # or gamma='scale'
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)