Heshan Sanjuka (@hexsyro) header
Heshan Sanjuka (@hexsyro) profile picture

Applied ML Developer | Building practical prediction tools and data-science SaaS products.

Joined October 2024
Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)Photo by Heshan Sanjuka (@hexsyro)
Mapped musical mood (valence) trends across genres using a decade+ of Billboard chart data merged with Spotify audio features. Rolling averages, z-score outliers, correlation analysis — pandas + NumPy. #Python #DataScience #DataAnalysis
3
2
8
451
Messy data? 😩 HonestyPipeline v0.2 runs 8 audits in one command, then hands you a traceable, documented package. 🧾 New: run.json manifests, result schema 1.1, CI regression gates, SHA-256 checksums + PROV-O provenance. Open source: github.com/hexsyro/HonestyPi…
7
4
51
What's inside? 🔍 Eight tools that each check one thing: DecayWatch, EnrichAudit, FilterGap, LinguaCheck, NuanceBench, SourceLock, WhyChanged and ReadyPack. In v0.2 they all share result schema 1.1 and say when they skipped.
5
I tuned a model for 50 rounds against a fake Kaggle "public leaderboard", then tested it on a hidden "private" set. Public AUC: 0.839, flat after 20 trials Private AUC: 0.844, same as the CV-picked model More tuning, no real gain. 👇 #MachineLearning #DataScience #kaggle
6
2
51
Same data. Same seed. Different splitter. 👇 KFold: positive share swings 25.3% → 27.5% across folds. StratifiedKFold: 26.5% → 26.6%. Validating an imbalanced classifier? Your folds matter. #MachineLearning #DataScience #scikitlearn
5
1
48
Why? KFold cuts by row position only. It never looks at your labels, so a fold can end up with too many or too few churners by pure luck.
3
What I learned comparing 3 churn prediction models: ⚡ LightGBM trained fastest: 2.7s vs XGBoost 4.1s, CatBoost 11.9s 🌳 Shallow trees (depth 3) beat deep ones (depth 50): 0.81 vs 0.75 AUC 🎯 All models catch only ~half of churners github.com/hexsyro/churn-boo… #DataScience
2
50
🤖 XGBoost vs LightGBM vs CatBoost on the same customer churn data (7,043 customers). Test ROC-AUC: XGBoost 0.847 CatBoost 0.848 LightGBM 0.838 Basically a tie. Tuning moved the score far less than I expected. #MachineLearning #ChurnPrediction #XGBoost
5
4
65
How to read my chart: each line shows how wrong a model is as it adds trees. Solid = new customers, dashed = training data. LightGBM kept improving on training data (0.33) but not on new data (0.44). That gap is overfitting: memorizing, not learning. 📉
9
📉 One step in my customer churn project: tracking XGBoost log loss as trees are added. It drops from ~0.52 to ~0.45 by tree 16, then levels off, a useful hint for when to stop adding trees. Built with Python, pandas & Matplotlib. #ChurnPrediction #XGBoost #MachineLearning
4
4
76
Why log loss? It scores predicted probabilities, not just right or wrong, so a model that is confidently wrong gets punished more. That suits churn, where a risk score per customer is often more useful than a yes/no. 📊
2
2
Scrapers getting blocked? 😩 Anti-Scraping Playwright makes your bots browse like real people, with human-like clicks and typing, rotating proxies and stealth mode. Built for authorized data collection. repo link in the comments 👇
12
5
140
I trained the same model on 4 versions of bike-share data to predict hourly rides 🚲 Typical error (RMSE): Raw data: 952 + time of day & encoded weather: 250 + scaling: 250 (no change) + date features: 221 Project link is in the comments 👇
5
5
44
Three environment managers fighting over who breaks local setup first.
🤖 Made with AI
1
2
7
How many package managers does one project really need?
2
Wanted one simple metric. Built a $12,000 cloud monster instead.
🤖 Made with AI
1
2
6
What simple script in your stack turned into a $10k cloud bill?
1
3
Local 7B model on your own box beats renting bloated cloud APIs.
🤖 Made with AI
1
3
23
Why rent what you can easily run locally for free?
1
5
Sam Altman calls big RAM “QUITE TERRIBLE” 😤 Me training a 3-layer net on 500 rows with 64GB 💀 @grok, is RAM really the AI bottleneck, or is it the cloud bill? 🤔#MachineLearning #OpenAI #SamAltman
1
2
33
Influencers claim AI killed coding. Meanwhile, the backlog is 400 tickets deep.
🤖 Made with AI
1
4
61
How many 'dead' technologies are still running the entire world?
6
$50k/mo cloud RAG pipeline to search Dave’s manual spreadsheet.
🤖 Made with AI
3
1
6
56
How much cloud tax are you paying to query a spreadsheet?
2
12
Bike-share demand looks completely different on weekdays vs weekends. Weekdays: two sharp commute peaks. Weekends: one smooth midday hump. Average rides by hour of day 👇
4
5
23
Weekdays have two clear peaks at commute hours, around 8am and 5-6pm. Riders are heading to work and back on a schedule.
2
5
98% accuracy sounds great. Here's why I don't fully trust it. My complaint-router reuses the same few dozen phrases in train and test. On 12 fresh complaints I wrote, it got 9 right. High scores can mislead. Always test on fresh data. #DataScience #MachineLearning
2
3
15
What I did about it: wrote 12 complaints in my own words. 9 routed correctly. The 3 misses had low confidence (24-28%), so a "needs human review" rule would catch them. Next up: training on longer complaint narratives.
1
2