Scikit-learn GridSearch giving “ValueError: multiclass format is not supported” error

后端 未结 3 1386
-上瘾入骨i
-上瘾入骨i 2021-02-07 12:06

I\'m trying to use GridSearch for parameter estimation of LinearSVC() as follows -

clf_SVM = LinearSVC()
params = {
          \'C\': [0.5, 1.0, 1.5],
          \         


        
3条回答
  •  再見小時候
    2021-02-07 12:48

    Remove scoring='roc_auc' and it will work as roc_auc curve does not support categorical data.

提交回复
热议问题