'module' object has no attribute 'svc'

前端 未结 6 426
野性不改
野性不改 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 03:04

    Im using sklearn version 0.18

    my problem was solved

    from sklearn import svm
    

    change for

    from sklearn.svm import SVC
    

提交回复
热议问题