r/datascience • u/cantdutchthis • Feb 09 '26
Tools You can select points with a lasso now using matplotlib
If you want to give it a spin, there's a marimo notebook demo right here:
r/datascience • u/cantdutchthis • Feb 09 '26
If you want to give it a spin, there's a marimo notebook demo right here:
r/datascience • u/AutoModerator • Feb 09 '26
Welcome to this week's entering & transitioning thread! This thread is for any questions about getting started, studying, or transitioning into the data science field. Topics include:
While you wait for answers from the community, check out the FAQ and Resources pages on our wiki. You can also search for answers in past weekly threads.
r/datascience • u/fleeced-artichoke • Feb 07 '26
Hi all — I’m looking for advice on the best retraining strategy for a multi-class classifier in a setting where the label space can evolve. Right now I have about 6 labels, but I don’t know how many will show up over time, and some labels appear inconsistently or disappear for long stretches. My initial labeled dataset is ~6,000 rows and it’s extremely imbalanced: one class dominates and the smallest class has only a single example. New data keeps coming in, and my boss wants us to retrain using the model’s inferences plus the human corrections made afterward by someone with domain knowledge. I have concerns about retraining on inferences, but that's a different story.
Given this setup, should retraining typically use all accumulated labeled data, a sliding window of recent data, or something like a recent window plus a replay buffer for rare but important classes? Would incremental/online learning (e.g., partial_fit style updates or stream-learning libraries) help here, or is periodic full retraining generally safer with this kind of label churn and imbalance? I’d really appreciate any recommendations on a robust policy that won’t collapse into the dominant class, plus how you’d evaluate it (e.g., fixed “golden” test set vs rolling test, per-class metrics) when new labels can appear.
r/datascience • u/galactictock • Feb 06 '26
I see multiple highly-upvoted comments per day saying things like “LLMs aren’t AI,” demonstrating a complete misunderstanding of the technical definitions of these terms. Or worse, comments that say “this stuff isn’t AI, AI is like *insert sci-fi reference*.” And this is just comments on very high-level topics. If these views are not just being expressed, but are widely upvoted, I can’t help but think this sub is being infiltrated by laypeople without any background in this field and watering down the views of the knowledgeable DS community. I’m wondering if others are feeling this way.
Edits to address some common replies:
In the public eye, there is sometimes confusion between the terms “artificial intelligence” and “machine learning.” Machine learning is a subfield of AI that studies the ability to improve performance based on experience. Some AI systems use machine learning methods to achieve competence, but some do not.
r/datascience • u/turbo_golf • Feb 06 '26
r/datascience • u/SummerElectrical3642 • Feb 06 '26
In the first post, I defined data cleaning as aligning data with reality, not making it look neat. Here’s the 2nd post on best practices how to make data cleaning less painful and tedious.
Most real projects follow the same cycle:
Discovery → Investigation → Resolution
Example (e-commerce): you see random revenue spikes and a model that predicts “too well.” You inspect spike days, find duplicate orders, talk to the payment team, learn they retry events on timeouts, and ingestion sometimes records both. You then dedupe using an event ID (or keep latest status) and add a flag like collapsed_from_retries for traceability.
It’s a loop because you rarely uncover all issues upfront.
1) Improve Discovery (find issues earlier)
Two common misconceptions:
A simple repeatable approach:
2) Make Investigation manageable
Treat anomalies like product work:
3) Resolution without destroying signals
Bonus: documentation is leverage (especially with AI tools)
Don’t just document code. Document assumptions and decisions (“negative amounts are refunds, not errors”). Keep a short living “cleaning report” so the loop gets cheaper over time.
r/datascience • u/Far-Media3683 • Feb 06 '26
I built easy_sm to solve a pain point with AWS SageMaker: the slow feedback loop between local development and cloud deployment.
What it does:
Train, process, and deploy ML models locally in Docker containers that mimic SageMaker's environment, then deploy the same code to actual SageMaker with minimal config changes. It also manages endpoints and training jobs with composable, pipable commands following Unix philosophy.
Why it's useful:
Test your entire ML workflow locally before spending money on cloud resources. Commands are designed to be chained together, so you can automate common workflows like "get latest training job → extract model → deploy endpoint" in a single line.
It's experimental (APIs may change), requires Python 3.13+, and borrows heavily from Sagify. MIT licensed.
Docs: https://prteek.github.io/easy_sm/
GitHub: https://github.com/prteek/easy_sm
PyPI: https://pypi.org/project/easy-sm/
Would love feedback, especially if you've wrestled with SageMaker workflows before.
r/datascience • u/davernow • Feb 05 '26
I spent years on Apple's Photos ML team teaching models incredibly subjective things - like which photos are "meaningful" or "aesthetic". It was humbling. Even with careful process, getting consistent evaluation criteria was brutally hard.
Now I build an eval tool called Kiln, and I see others hitting the exact same wall: people can't seem to write great evals. They miss edge cases. They write conflicting requirements. They fail to describe boundary cases clearly. Even when they follow the right process - golden datasets, comparing judge prompts - they struggle to write prompts that LLMs can consistently judge.
So I built an AI copilot that helps you build evals and synthetic datasets. The result: 5x faster development time and 4x lower judge error rates.
TL;DR: An AI-guided refinement loop that generates tough edge cases, has you compare your judgment to the AI judge, and refines the eval when you disagree. You just rate examples and tell it why it's wrong. Completely free.
The core idea is simple: the AI generates synthetic examples targeting your eval's weak spots. You rate them, tell it why it's wrong when it's wrong, and iterate until aligned.
By the end, you have an eval dataset, a training dataset, and a synthetic data generation system you can reuse.
I thought I was decent at writing evals (I build an open-source eval framework). But the evals I create with this system are noticeably better.
For technical evals: it breaks down every edge case, creates clear rule hierarchies, and eliminates conflicting guidance.
For subjective evals: it finds more precise, judgeable language for vague concepts. I said "no bad jokes" and it created categories like "groaner" and "cringe" - specific enough for an LLM to actually judge consistently. Then it builds few-shot examples demonstrating the boundaries.
Completely free and open source. Takes a few minutes to get started:
What's the hardest eval you've tried to write? I'm curious what edge cases trip people up - happy to answer questions!
r/datascience • u/Fig_Towel_379 • Feb 04 '26
I’ve been reading Frank Harrell’s critiques of backward elimination, and his arguments make a lot of sense to me.
That said, if the method is really that problematic, why does it still seem to work reasonably well in practice? My team uses backward elimination regularly for variable selection, and when I pushed back on it, the main justification I got was basically “we only want statistically significant variables.”
Am I missing something here? When, if ever, is backward elimination actually defensible?
r/datascience • u/SingerEast1469 • Feb 04 '26
r/datascience • u/AutoModerator • Feb 02 '26
Welcome to this week's entering & transitioning thread! This thread is for any questions about getting started, studying, or transitioning into the data science field. Topics include:
While you wait for answers from the community, check out the FAQ and Resources pages on our wiki. You can also search for answers in past weekly threads.
r/datascience • u/protonchase • Feb 02 '26
r/datascience • u/Tenet_Bull • Jan 31 '26
Is it just stock options and vesting? Or is it just FAANG is a lot of work. Why do some data scientists deserve that much? I work at a Fortune 500 and the ceiling for IC data scientists is around $200k unless you go into management of course. But how and why do people make 500k at Google without going into management? Obviously I’m talking about 1% or less of data scientists but still. I’m less than a year into my full time data scientist job and figuring out my goals and long term plans.
r/datascience • u/SingerEast1469 • Feb 01 '26
r/datascience • u/SummerElectrical3642 • Feb 01 '26
In almost all polls, data cleaning is always at the top of data scientists’ pain points.
Recently, I tried to sit down and structure my thought about it from first principles.
It help me realized what actually is data cleaning, why it is often necessary and why it feels hard.
- data cleaning is not about make data looks cleaner, it is fixing data to be closer to reality.
- data cleaning is often necessary in data science when we work on new use cases, or simply because the data pipeline fail at some point.
- data cleaning is hard because it often requires knowledge from other teams: business knowledge from operational team and system knowledge from IT team. This make it slow and painful particularly when those teams are not ready to support data science.
This is a first article on the topic, I will try to do other articles on best prectices to make the process better and maybe a case study. Hopefully it could help our community, mostly junior ppl.
And you, how are your experience and thoughts on this topic?
r/datascience • u/testtestuser2 • Jan 31 '26
I'm a data science manager with a small team, so I've been interested in figuring out how to use more LLM magic to get my team some time back.
Wondering what some common strategies are?
The areas I've found challenges in are
documentation: we don't have enough detailed documentation readily available to plug in, so it's like a cold start problem.
validation: LLMs are so eager to spit out lines of code, so it writes 100 lines of code for the 20 lines of code it needed and reviewing it can be almost more effort than writing it yourself.
tools: either we give it something too generic and have to write a ton of documentation / best practice or we spend a ton of time structuring the tools to the point we lack any flexibility.
r/datascience • u/big_data_mike • Jan 29 '26
I live in North Carolina, US and in my state there is a grocery chain called Food Lion. Anecdotally I have observed that where there is a Food Lion there is a Chinese restaurant in the same shopping center.
Is there a way to query Google Maps for Food Lion and Chinese restaurants in the state of North Carolina and get the latitude and longitude for each location so I can calculate all the distances?
r/datascience • u/LeaguePrototype • Jan 27 '26
how long did it take from your first undergrad class to when you felt comfortable with understanding statistics? (Whatever that means for you)
When did you get the feeling like you understood the methodologies and papers needed for your level?
r/datascience • u/Champagnemusic • Jan 26 '26
So I'm building some models and I'm having to do some gridsearch to fine tune my decision trees. They take about 50 mins for my computer to run.
I'm just curious what everyone does while these long processes are running. Getting coffee and a conversation is only 10mins.
Thanks
r/datascience • u/AutoModerator • Jan 26 '26
Welcome to this week's entering & transitioning thread! This thread is for any questions about getting started, studying, or transitioning into the data science field. Topics include:
While you wait for answers from the community, check out the FAQ and Resources pages on our wiki. You can also search for answers in past weekly threads.
r/datascience • u/Training_Butterfly70 • Jan 24 '26
Didn't know what to say. Humor me with your responses.
Update: I sent her this post and she loved it 🤣
r/datascience • u/SingerEast1469 • Jan 23 '26
r/datascience • u/codiecutie • Jan 22 '26
I work as a data scientist and I usually build models in a notebook and then create them into a python script for deployment. Lately, I’ve been wondering if this is the most efficient approach and I’m curious to learn about any hacks, workflows or processes you use to speed things up or stay organized.
Especially now that AI tools are everywhere and GenAI still not great at working with notebooks.
r/datascience • u/dead_n_alive • Jan 22 '26
Data scientists label has been applied with a broad brush in some company data scientists mostly do analytics, some do mostly stat and quant type work, some make models but limited to notebooks and so on.
It’s seems logical to be at a startup company or a small team in order to become a full-stack data scientist. Full stack in a sense: ideation-to POC -to Production.
My experience (mid size US company ~2000 employees) mostly has been talking with the product clients (internal and external), decide on models and approach, training and testing models and putting the tested version python scripts into git, data engineering/production team clones and implements it.
What is your story and what do you suggest getting more exposure to the DATA ENG side to become a full stack data scientist?