Xtra-Computing / thundersvm

ThunderSVM: A Fast SVM Library on GPUs and CPUs
Apache License 2.0
1.56k stars 217 forks source link

Missing attribute for SVC #128

Closed satyajithj closed 5 years ago

satyajithj commented 5 years ago

The coef_ attribute that is available in the SVC module in scikit_learn is missing in thundersvm?

Initialised as clf = SVC(kernel='linear')

Calling clf.coef_ post training results in

AttributeError: 'SVC' object has no attribute 'coef_'

QinbinLi commented 5 years ago

Hi, @fuzzyBatman

We just added the coef_ attribute. You can have a try. Thanks.

satyajithj commented 5 years ago

Hi, @GODqinbin

Thank you for the quick response. It works as it should :D