ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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, Now all is well.
--patrick