Loading tutorials
TfidfVectorizer and read a sparse document-term matrix, as covered in the previous chapters on bag-of-words and TF-IDF. It also assumes you know why a vectorizer must be fit on training data only. Here you will see how the vocabulary is built, how n-grams enlarge7 min readPipeline with TfidfVectorizer and LogisticRegression. It also assumes you know how logistic regression turns a weighted sum of features into a probability, and that you know why a held-out set matters. The goal is to explain what the C paramete6 min readPipeline from the previous chapters. You should also know what a train/test split is, what ngram_range and C do, and how to read a classification report. Here you will tune those settings without leaking validation data and7 min readcoef_ 6 min readPipeline, as in the earlier chapters. You should know precision, recall, F1, and the confusion matrix, and how stratified cross-validation splits data. Here you will see how skewed labels distort that workflo6 min read