Hi Jose.
I think the Gaussian Process in sklearn is only meant for regression at the 
moment.
It can be used for classification but making it work with the multi-class 
module is
non-trivial I think (someone correct me if I'm wrong).

The Gaussian Process module is still pretty much in it's infancy, I think.
If there are no external requirements, I'd advise you to use another classifier.
For SVMs btw you don't have to use the multi-class module. All classifiers in
sklearn have multi-class support built in.

Cheers,
Andy

----- Ursprüngliche Mail -----
Von: "Jose Gomez-Dans" <[email protected]>
An: [email protected]
Gesendet: Donnerstag, 16. August 2012 16:35:54
Betreff: [Scikit-learn-general] Newbie and GaussianProcess classification


Hi, 
(Newbie alert, first of all!) 


I was wondering whether I could use scikit-learn for GaussianProcess multiple 
class classification. I guess that this has to go through a one vs rest 
algorithm (example here: < http://gist.github.com/3371088 >) but this fails 
with the following error: 



ValueError: The base estimator should implement decision_function or 
predict_proba! 


So, the GaussianProcess class does not have a decision_function or 
predict_proba. Using e.g. svm.SVC works as expected: 


classif = OneVsRestClassifier(svm.SVC(gamma=0.001)) #say 


as this method implements eg the predict_proba method 




Or am I missing something really basic here? 


Thanks! 
J 
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to