Sonal Mishra·Jul 20Naive Bayes: A Probabilistic Classifier Built on Bayes’ TheoremInspiration from Probability: Why Naive Bayes Works
Sonal Mishra·May 22I Fine-Tuned DistilBERT Twice. It Humbled Me Both Times.Same model. Same three epochs. Weighted F1 of 0.9070 on one. Weighted F1 of 0.7261 on the other. Here’s why — and what the gap actually…
Sonal Mishra·May 22How I Fine-Tuned DistilBERT to Classify Complaints — And What I Learned Along the WayThe Setup: AI Wrote the Code — I Made Sure I Could Explain Every Line
Sonal Mishra·Mar 3I Fine-Tuned DistilBERT for Sentiment Analysis — Here’s What I Actually LearnedNot just the code. The thinking behind every single decision.
Sonal Mishra·Mar 3I Fine-Tuned a 1.1BTraining only 0.5% of weights was the easy part. Knowing what to measure was the hard part.
Sonal Mishra·Feb 13How TF-IDF Turns Noise Into SignalPicture this: you’re combing through thousands of emails, trying to detect fraud. A natural first idea is to count words — a Bag-of-Words…
Sonal Mishra·Feb 13Implementing Naive Bayes in Python: A Hands-On ApproachBuilding a Naive Bayes Classifier From Scratch (with Laplace Smoothing)
Sonal Mishra·Jan 19Regularization: Taming Variance for Better GeneralizationIn the previous post, we discovered the bias–variance tradeoff. We saw how:
Sonal Mishra·Jan 19The Bias–Variance Tradeoff: Why Models Struggle to GeneralizeWhen we train a machine learning model, we often celebrate if the training error is low. But a painful reality hits when the model is…
Sonal Mishra·Jan 16Logistic Regression from Scratch in PythonIn the earlier parts of this series, we explored the intuition and mathematical foundation of Logistic Regression. We discussed why it’s…