naive_bayes ValueError: dimension mismatch

X_test = vec.fit_transform(X_test)

换为

X_test = vec.transform(X_test)

原文解答

http://stackoverflow.com/questions/12484310/scipy-and-scikit-learn-valueerror-dimension-mismatch
```

你可能感兴趣的:(naive_bayes ValueError: dimension mismatch)