How can i know probability of class predicted by predict() function in Support Vector Machine?

Definitely read this section of the docs as there’s some subtleties involved. See also Scikit-learn predict_proba gives wrong answers Basically, if you have a multi-class problem with plenty of data predict_proba as suggested earlier works well. Otherwise, you may have to make do with an ordering that doesn’t yield probability scores from decision_function. Here’s a … Read more

Which machine learning library to use [closed]

There are only a few ML libraries that i have used enough so that i am comfortable recommending them; dlib ml is certainly one of them. Sourceforge download here; and bleeding-edge check-out: hg clone http://hg.code.sf.net/p/dclib/code dclib-code The original library creator and current maintainer is Davis King. Your wishlist versus the relevant dlib features: good documentation: … Read more

When should I use support vector machines as opposed to artificial neural networks?

Are SVMs better than ANN with many classes? You are probably referring to the fact that SVMs are in essence, either either one-class or two-class classifiers. Indeed they are and there’s no way to modify a SVM algorithm to classify more than two classes. The fundamental feature of a SVM is the separating maximum-margin hyperplane … Read more

When should one use LinearSVC or SVC?

Mathematically, optimizing an SVM is a convex optimization problem, usually with a unique minimizer. This means that there is only one solution to this mathematical optimization problem. The differences in results come from several aspects: SVC and LinearSVC are supposed to optimize the same problem, but in fact all liblinear estimators penalize the intercept, whereas … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)