# Revision history [back]

OK, it only took me about 5 hours of trial and error to finally figure this out. Turns out the SVM class requires the training data to be of type numpy.float32. Since my training data was in regular Python arrays, I had to convert them like this:

training_data = np.array(python_training_data, dtype=np.float32) responses = np.array(python_responses, dtype=np.float32)

Now all is well.

--patrick

OK, it only took me about 5 hours of trial and error to finally figure this out. Turns out the SVM class requires the training data to be of type numpy.float32. Since my training data was in regular Python arrays, I had to convert them like this:

training_data = np.array(python_training_data, dtype=np.float32)
responses = np.array(python_responses, dtype=np.float32)dtype=np.float32)


Now all is well.

--patrick