shreyash (@shreycapital) header
shreyash (@shreycapital) profile picture

Lead Data Scientist @Apple . Learning, coding, sharing. One post at a time. Data | AI | ML | Quant

India
Joined April 2025
here we go... Lead Data Scientist at @Apple nitter.cf/shreycapital/status/19…
Career update soon.. this is a good one
1
8
248
Career update soon.. this is a good one
When you know you've cracked the final round of interview and sit in front of the screen waiting for the email from HR.
1
4
384
Slot machines: Pull lever, pray for cherries to align, lose money 99% of time. Vibe coding: Smash keys, pray for code to align, lose sanity 99% of time. Both: Addictive gambling where the house (entropy) always wins. 🎰💻
1
4
109
LLMs didn’t just change coding, they killed Agile. Here’s why your stand-ups, story points and gantt charts don’t matter anymore. Business leaders have seen what AI can do: ✅ Idea today ✅ Feature tomorrow No one wants to wait for sprint reviews, backlogs or planning anymore. Agile ceremonies made sense when humans wrote every line of code. But now? AI ships faster than your team can estimate story points. The new reality: > No project estimations > No endless alignment meetings > No JIRA fields that add zero value Just: ‘Build this.’ And it’s live tomorrow. Speed > Perfection. That’s the new game.
2
73
Telling a kid "you're smart" is like handing them a glass crown. It looks pretty, but it shatters under pressure. Celebrate their effort, their hustle, their courage to fail. That’s how you build a kid who conquers.
1
57
When you know you've cracked the final round of interview and sit in front of the screen waiting for the email from HR.
1
1
241
Here's me thinking I'm being underpaid and then there are companies saying that they can't afford me. 😢
2
135
Naive Bayes is one of the most elegant and deceptively simple classification algorithms. This thread will explain its statistical foundations, practicality, and extensions. 🧵👇 nitter.cf/shreycapital/status/19…
🧵Naive Bayes for Classification Don’t let the word “naive” fool you. It is fast, simple, and surprisingly effective when you need quick, probabilistic classification. Let’s break it down: 📌 What is Naive Bayes? 📌 Why exact Bayes is hard 📌 The naive trick 📌 What about numeric features?
2
161
🧵Naive Bayes for Classification Don’t let the word “naive” fool you. It is fast, simple, and surprisingly effective when you need quick, probabilistic classification. Let’s break it down: 📌 What is Naive Bayes? 📌 Why exact Bayes is hard 📌 The naive trick 📌 What about numeric features?
1
1
4
628
What is Naive Bayes?
1
1
26
Polynomial and Spline regression bridges the gap between linear models and non-linear flexibility. A thread 🧵👇 nitter.cf/shreycapital/status/19…
🧵 Polynomial & Spline Regression + GAMs – Modelling Nonlinear Relationships the Smart Way Real-world data often bends, curves and twists. How do we capture that nonlinearity without losing interpretability? Let’s dive into: > Polynomial Regression > Splines > Generalised Additive Models (GAMs)
1
99
🧵 Polynomial & Spline Regression + GAMs – Modelling Nonlinear Relationships the Smart Way Real-world data often bends, curves and twists. How do we capture that nonlinearity without losing interpretability? Let’s dive into: > Polynomial Regression > Splines > Generalised Additive Models (GAMs)
1
1
3
869
The Problem: Nonlinear Relationships Standard linear regression assumes: y = β₀ + β₁x But what if the relationship is curved? 📉 Linear models underfit. 📈 Nonlinear models overfit. We want a flexible but interpretable middle ground.
1
1
27
Regression Diagnostics is where we stop trusting the summary table and start asking: "Can I trust this model?" This thread will explain what to check after fitting a regression, why it matters, and how to interpret visual and statistical red flags.👇 nitter.cf/shreycapital/status/19…
🧵Regression Diagnostics – How to Know If Your Model Is Lying Your regression ran. You got an R². You checked the p-values. But wait… Did you check if the assumptions are holding? Let’s talk about: 📍 Outliers & influential points 📍 Heteroskedasticity 📍 Non-normality 📍 Correlated errors 📍 Partial residuals & nonlinearity
1
2
4
333
🧵Regression Diagnostics – How to Know If Your Model Is Lying Your regression ran. You got an R². You checked the p-values. But wait… Did you check if the assumptions are holding? Let’s talk about: 📍 Outliers & influential points 📍 Heteroskedasticity 📍 Non-normality 📍 Correlated errors 📍 Partial residuals & nonlinearity
1
1
3
1,527
Diagnostics = Model Health Check Linear regression assumes a lot: ✅ Linear relationship ✅ Homoscedastic errors ✅ Normally distributed residuals ✅ Independent errors ✅ No extreme influence from outliers Let’s unpack each.
1
1
39
Moving from fitting lines to thinking deeply about what those lines mean. Misinterpreting regression coefficients, especially with correlated predictors, is one of the most common mistakes. A thread on Interpreting the Regression Equation 👇 nitter.cf/shreycapital/status/19…
🧵 Interpreting the Regression Equation - Beyond the Coefficients You’ve run the regression. You’ve got the equation. But do you really know what the coefficients mean? Let’s talk: ✅ Correlated predictors ✅ Confounding variables ✅ Main effects vs. interactions 👇
1
5
204
Factor (categorical) variables in regression are often overlooked. Many get stuck on dummy variable encoding, interpreting coefficients and what to do when categories explode in size or are ordinal. A thread on Factor Variables in Regression 👇🏻 nitter.cf/shreycapital/status/19…
🧵Factor Variables in Regression: Everything You Need to Know Regression loves numbers. But the real world? Full of categories. How do we include: ✅ Gender, region, product type ✅ Education level (ordered) ✅ Or 100+ categories? Let’s dive in 👇 #Regression #MachineLearning
1
3
219
🧵 Interpreting the Regression Equation - Beyond the Coefficients You’ve run the regression. You’ve got the equation. But do you really know what the coefficients mean? Let’s talk: ✅ Correlated predictors ✅ Confounding variables ✅ Main effects vs. interactions 👇
1
1
2
575
A Quick Refresher In a multiple linear regression: y = b₀ + b₁x₁ + b₂x₂ + ... + bᵥxᵥ Each bⱼ represents: The expected change in y for a one-unit increase in xⱼ, holding all other variables constant. That last part is crucial.
1
2
26
🧵Factor Variables in Regression: Everything You Need to Know Regression loves numbers. But the real world? Full of categories. How do we include: ✅ Gender, region, product type ✅ Education level (ordered) ✅ Or 100+ categories? Let’s dive in 👇 #Regression #MachineLearning
2
1
3
715
What Are Factor Variables? Factor variables (aka categorical variables) are variables that take on a limited set of discrete values > gender = Male, Female > region = East, West, North > education = High School, Bachelors, Masters, PhD They’re not numeric but we can’t just leave them out!
1
2
46
An essential topic for practitioners, Regression is often used for prediction. A thread on Prediction Using Regression, covering extrapolation dangers, confidence intervals, and prediction intervals 👇🏻 nitter.cf/shreycapital/status/19…
🧵 Prediction Using Regression: What You Need to Know (but Most People Don’t) Regression is a powerful tool for prediction but also easy to misuse, especially when: > You extrapolate > You ignore uncertainty > You confuse confidence and prediction intervals Let’s dive in 👇🏻
1
6
190
🧵 Prediction Using Regression: What You Need to Know (but Most People Don’t) Regression is a powerful tool for prediction but also easy to misuse, especially when: > You extrapolate > You ignore uncertainty > You confuse confidence and prediction intervals Let’s dive in 👇🏻
1
1
1
4
894
Prediction Using Regression Once you’ve fit a regression model: ŷ = β₀ + β₁x You can plug in a new x to get a predicted ŷ. Sounds simple, right? But there’s a catch…
1
1
38
Exception handling is not just try/except. In real-world Python apps, error handling is architecture. ✅ Custom exceptions 🔗 Exception chaining 🧼 Graceful fallback logic Let’s go beyond basics and handle errors like a pro 🧵👇
1
1
6
474
🚨 Why custom exceptions? > Clearer intent > Better granularity > Easier debugging > Cleaner error messages in APIs / CLI tools Instead of raising ValueError or RuntimeError everywhere... define your own.
1
2
31