You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @thieu1995
I am attempting to implement a GWO optimized SVM and I run into an error
"y contains previously unseen labels: [4]" as seen in the third image
However, when the standalone SVM codes run with any error. I have attached snips of both codes to this issue.
The text was updated successfully, but these errors were encountered:
@MaameBoamahPoku
Make sure you set a good lower bound and upper bound. The shown error is too obvious that you are missing a value in KERNEL_ENCODER. It should be:
KERNEL_ENCODER = LabelEncoder()
KERNEL_ENCODER.fit( ['linear', 'poly', 'rbf', 'sigmoid', 'precomputed'] )
# domain range ==> 5 values, index start from 0 ==> (lb, ub) = (0, 4.99)
Hi @thieu1995
I am attempting to implement a GWO optimized SVM and I run into an error
"y contains previously unseen labels: [4]" as seen in the third image
However, when the standalone SVM codes run with any error. I have attached snips of both codes to this issue.
The text was updated successfully, but these errors were encountered: