Train Your First ML Model: Scikit-Learn Spam Classifier Project
EduTechGyan
0:00 / 0:00
Train Your First ML Model: Scikit-Learn Spam Classifier Project
0 просмотров · 6 дн. назад
EduTechGyan
139 подписчиков
0 просмотров · 6 дн. назад
Train your first machine learning model in about ten lines of Python. This beginner-friendly project builds a spam classifier with scikit-learn: you'll label a tiny dataset of messages, split it into train and test sets, turn text into numbers with TfidfVectorizer, classify with MultinomialNB (Naive Bayes), and measure your model with accuracy_score.
What you'll learn:
What scikit-learn is and how to install it (pip install scikit-learn)
The five-step ML workflow every project follows
How train_test_split(test_size=0.2, random_state=42) keeps 20% of data for honest testing
Turning text into numbers: TfidfVectorizer vs CountVectorizer
MultinomialNB: how Naive Bayes classifies text
The complete code: make_pipeline, fit, predict, accuracy_score — and scaling up to the public SMS Spam Collection dataset
Timestamps (bookended video, 6:53 total):
00:00 — Intro bumper
0:06 — Welcome: train your first ML model
0:21 — The plan
0:37 — In this video
1:03 — What is scikit-learn?
1:26 — The five-step ML workflow
1:55 — The project: a spam classifier
2:20 — Train test split
2:48 — Text to numbers: which vectorizer?
3:23 — MultinomialNB: the classifier
3:52 — The code: one pipeline
4:32 — Trying new messages
5:00 — Measuring: accuracy_score
5:25 — Key takeaways
5:55 — Thanks for watching + subscribe
6:10 — Outro end card
If this helped, subscribe to EduTechGyan for daily Azure, AWS, GCP, and AI videos — and turn on the bell so you never miss the next tutorial.
Official scikit-learn sources:
https://scikit-learn.org/1.4/modules/...
https://scikit-learn.org
#ScikitLearn #MachineLearning #Python #MLForBeginners #EduTechGyan