Skip to main content

Day 12 – Building My First Machine Learning Models

Published 2 min readMarkdown

Hey everyone πŸ‘‹ Dhairya here,

Today was a huge milestone in my journey β€” I built my first real machine learning models using Scikit-Learn!

Until now, my focus was mostly on math, probability, and preprocessing data. Today, I finally got to see theory come to life with actual algorithms.


πŸ”’ What I Learned Today

1. Logistic Regression (Classification)

  • Used for binary classification problems (e.g., yes/no, spam/ham).

  • Outputs probabilities between 0 and 1 using the sigmoid function.

  • Learned how to fit, predict, and evaluate model performance with accuracy score.


2. Decision Tree Classifier

  • Tree-like structure to make decisions.

  • Splits data based on the most informative features.

  • Easy to visualize and interpret, making it a great starting point.


3. Model Evaluation

  • Confusion Matrix – understand correct vs incorrect predictions.

  • Accuracy Score – overall performance measure.


🌱 Reflections

Seeing models learn patterns from data felt magical.
It’s crazy how just a few lines of Scikit-Learn code can transform a dataset into predictions.

I also realized the importance of evaluation β€” it’s not enough to just train a model; you need to measure how well it’s doing.


πŸ’» Notebook

My Day 12 notebook is available here πŸ‘‰ GitHub Link – Day 12 Notebook


πŸ“š Resources

πŸŽ₯ YouTube

🌐 Websites


🎯 What’s Next?

For Day 13, I’ll explore hyperparameter tuning and improving model performance using techniques like GridSearchCV.

See you tomorrow πŸ‘‹
β€” Dhairya

About the author

  • I'm a student, trying to find experience and develop skills, and I want to log that journey here. πŸ˜€πŸ‘Š

No comments yet. Be the first to comment.

More from this blog