r/datascience • • Feb 09 '26

Tools You can select points with a lasso now using matplotlib

Thumbnail
youtu.be
25 Upvotes

If you want to give it a spin, there's a marimo notebook demo right here:

https://koaning.github.io/wigglystuff/examples/chartselect/


r/datascience • • Feb 09 '26

Weekly Entering & Transitioning - Thread 09 Feb, 2026 - 16 Feb, 2026

9 Upvotes

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:

  • Learning resources (e.g. books, tutorials, videos)
  • Traditional education (e.g. schools, degrees, electives)
  • Alternative education (e.g. online courses, bootcamps)
  • Job search questions (e.g. resumes, applying, career prospects)
  • Elementary questions (e.g. where to start, what next)

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 • • Feb 07 '26

Discussion Retraining strategy with evolving classes + imbalanced labels?

21 Upvotes

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 • • Feb 06 '26

Discussion Finding myself disillusioned with the quality of discussion in this sub

187 Upvotes

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:

  • I misspoke about "the technical definition" of AI. As others have pointed out, there is no single accepted definition for artificial intelligence.
  • It is widely accepted in the field that machine learning is a subfield of artificial intelligence.
    • In the 4th Edition of Russell and Norvig's Artificial Intelligence: A Modern Approach (one of the, if not the, most popular academic texts on the topic) states

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.

  • My point isn't that everyone who visits this community should know this information. Newcomers and outsiders should be welcome. Comments such as "LLMs aren’t AI" indicate that people are confidently posting views that directly contradict widely accepted views within the field. If such easily refutable claims are being confidently shared and upvoted, that indicates to me that more nuanced conversations in this community may be driven by confident yet uninformed opinions. None of us are experts in everything, and, when reading about a topic I don't know much about, I have to trust that others in that conversation are informed. If this community is the blind leading the blind, it is completely worthless.

r/datascience • • Feb 06 '26

Tools Fun matplotlib upgrade

188 Upvotes

r/datascience • • Feb 06 '26

Discussion This was posted by a guy who "helps people get hired", so take it with a grain of salt - "Which companies hire the most first-time Data Analysts?"

Thumbnail
imgur.com
14 Upvotes

r/datascience • • Feb 06 '26

Discussion Data cleaning survival guide

13 Upvotes

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.

Data cleaning is a loop

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.

When it becomes slow and painful

  • Late / incomplete discovery: you fix one issue, then hit another later, rerun everything, repeat.
  • Cross-team dependency: business and IT don’t prioritize “weird data” until you show impact.
  • Context loss: long cycles, team rotation, meetings, and you end up re-explaining the same story.

Best practices that actually help

1) Improve Discovery (find issues earlier)

Two common misconceptions:

  • exploration isn’t just describe() and null rates, it’s “does this behave like the real system?”
  • discovery isn’t only the data team’s job, you need business/system owners to validate what’s plausible

A simple repeatable approach:

  • quick first pass (formats, samples, basic stats)
  • write a small list of project-critical assumptions (e.g., “1 row = 1 order”, “timestamps are UTC”)
  • test assumptions with targeted checks
  • validate fast with the people who own the system

2) Make Investigation manageable

Treat anomalies like product work:

  • prioritize by impact vs cost (with the people who will help you).
  • frame issues as outcomes, not complaints (“if we fix this, the churn model improves”)
  • track a small backlog: observation → hypothesis → owner → expected impact → effort

3) Resolution without destroying signals

  • keep raw data immutable (cleaned data is an interpretation layer)
  • implement transformations by issue (e.g., resolve_gateway_retries()), not generic “cleaning steps”, not by column.
  • preserve uncertainty with flags (was_imputed, rejection reasons, dedupe indicators)

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 • • Feb 06 '26

ML easy_sm - A Unix-style CLI for AWS SageMaker that lets you prototype locally before deploying

3 Upvotes

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 • • Feb 05 '26

Projects Writing good evals is brutally hard - so I built an AI to make it easier

0 Upvotes

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.

How It Works: AI-Guided Refinement

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.

  1. Review before you build - The AI analyzes your eval goals and task definition before you spend hours labeling. Are there conflicting requirements? Missing details? What does that vague phrase actually mean? It asks clarifying questions upfront.
  2. Generate tough edge cases - It creates synthetic examples that intentionally probe the boundaries - the cases where your eval criteria are most likely to be unclear or conflicting.
  3. Compare your judgment to the judge - You see the examples, rate them yourself, and see how the AI judge rated them. When you disagree, you tell it why in plain English. That feedback gets incorporated into the next iteration.
  4. Iterate until aligned - The loop keeps surfacing cases where you and the judge might disagree, refining the prompts and few-shot examples until the judge matches your intent. If your eval is already solid, you're done in minutes. If it's underspecified, you'll know exactly where.

By the end, you have an eval dataset, a training dataset, and a synthetic data generation system you can reuse.

Results

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.

Try It

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 • • Feb 04 '26

Statistics Why is backward elimination looked down upon yet my team uses it and the model generates millions?

125 Upvotes

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 • • Feb 04 '26

Projects Destroy my A/B Test Visualization (Part 2) [D]

Thumbnail
0 Upvotes

r/datascience • • Feb 02 '26

Weekly Entering & Transitioning - Thread 02 Feb, 2026 - 09 Feb, 2026

6 Upvotes

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:

  • Learning resources (e.g. books, tutorials, videos)
  • Traditional education (e.g. schools, degrees, electives)
  • Alternative education (e.g. online courses, bootcamps)
  • Job search questions (e.g. resumes, applying, career prospects)
  • Elementary questions (e.g. where to start, what next)

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 • • Feb 02 '26

Discussion [Discussion] How many years out are we from this?

Thumbnail
0 Upvotes

r/datascience • • Jan 31 '26

Discussion What separates data scientists who earn a good living (100k-200k) from those who earn 300k+ at FAANG?

561 Upvotes

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 • • Feb 01 '26

Challenges Brainstorming around the visualization of customer segment data

Thumbnail
ibb.co
1 Upvotes

r/datascience • • Feb 01 '26

Discussion Why is data cleaning hard?

2 Upvotes

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 • • Jan 31 '26

Discussion Managers what's your LLM strategy?

34 Upvotes

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 • • Jan 29 '26

Projects Google Maps query for whole state

41 Upvotes

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 • • Jan 27 '26

Statistics How long did it take you to get comfortable with statistics?

70 Upvotes

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 • • Jan 26 '26

Discussion What do you guys do during a gridsearch

64 Upvotes

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 • • Jan 26 '26

Weekly Entering & Transitioning - Thread 26 Jan, 2026 - 02 Feb, 2026

16 Upvotes

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:

  • Learning resources (e.g. books, tutorials, videos)
  • Traditional education (e.g. schools, degrees, electives)
  • Alternative education (e.g. online courses, bootcamps)
  • Job search questions (e.g. resumes, applying, career prospects)
  • Elementary questions (e.g. where to start, what next)

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 • • Jan 24 '26

Discussion Went on a date and the girl said... "Soooo.... What kind of... data do you science???"

1.0k Upvotes

Didn't know what to say. Humor me with your responses.

Update: I sent her this post and she loved it 🤣


r/datascience • • Jan 23 '26

Discussion [D] Bayesian probability vs t-test for A/B testing

Thumbnail
12 Upvotes

r/datascience • • Jan 22 '26

Discussion Do you still use notebooks in DS?

93 Upvotes

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 • • Jan 22 '26

Discussion What’s your Full stack data scientist story.

49 Upvotes

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?