I have been using the scikit-learn library. I\'m trying to use the Gaussian Naive Bayes Module under the scikit-learn library but I\'m running into the following error. Type
It looks like your 'trainData' is a list of strings:
['-214' '-153' '-58' ..., '36' '191' '-37']
Change your 'trainData' to a numeric type.
import numpy as np np.array(['1','2','3']).astype(np.float)