1 | initial version |

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

2 | No.2 Revision |

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

ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.