'module' object has no attribute 'svc'

前端 未结 6 424
野性不改
野性不改 2021-01-19 02:14
import pandas as pd
from sklearn import svm

### Read the CSV ###
df = pd.read_csv(\'C:/Users/anagha/Documents/Python Scripts/sampleData.csv\')
df

from sklearn.cros         


        
6条回答
  •  孤街浪徒
    2021-01-19 02:54

    You can try

    from sklearn.svm import SVC
    

    then

    model = SVC(kernel='linear', c=1, gamma=1)
    

    worked fine for me

提交回复
热议问题