Hi Emeline.

>
> I would like to use SVM in scikit-learn with a RBF kernel K(x,y)= exp( 
> -gamma *d(x,y)^2 ) with d that is not the usual distance but a 
> weighted sum of other distances.
> How can I do so? Do I have to precompute the kernel on my own?
Yes, you have to precompute the whole kernel.
> Moreover, to determine gamma, I would like to perform cross-validation 
> on a grid-search but I'm not sure if it's possible with a precomputed 
> kernel ...
>
This is supported at least since 0.11, maybe earlier.
The code is not very mature yet so if you run into any troubles, please 
let us know.

Cheers,
Andy


------------------------------------------------------------------------------
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