CountVectorizer- bag of words tool
fit_transform()
functions:
1) Fits the model & learns the vocabulary
2) Transforms training data into feature vectors.
transform()
In machine learning ,you should not use the test set to fit your model,otherwise you run the risk of overfitting.
scikit-learn fit_transform() vs. transform()
最新推荐文章于 2024-08-06 10:39:54 发布