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
```
    原文作者:gogoforit
    原文地址: https://www.jianshu.com/p/9b49a97a5f24
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞