|
I'm looking to use scikit-learn's SVM libraries with a custom string kernel. I have a string kernel function that computes the distance between strings, like so:
(Essentially, it's just a function that takes two strings as input and returns a float.) And I have some test data:
I want to train a SVM classifier on this data, like so:
However, this returns the error:
As far as I can tell, scikit-learn's implementation of SVM is the root cause of the error because it tries to coerce all attributes to numpy.float64 (but I'm not completely sure that this is the case). So, what exactly is going on, and can the problem be avoided? |
|
I'm not sure I can answer your question but I do have a couple links worth checking out.
Also I'm currently using the scikit-learn library and am learning about it and SVM for my thesis research. I could sure use a friend to bounce ideas off of and discuss sci-kit learn. If you would like to talk you can add me on Goole+, Facebook, or via email. My website is www.ConradSykes.com and my email is [email protected] |