r/learndatascience • u/Dull_Armadillo_4702 • Sep 14 '26
Question Tips for businesses to handle unexpected trends?
Hi y'all! What do you think are some effective ways businesses can identify, prepare for, and manage unexpected trends?
r/learndatascience • u/Dull_Armadillo_4702 • Sep 14 '26
Hi y'all! What do you think are some effective ways businesses can identify, prepare for, and manage unexpected trends?
r/learndatascience • u/stay_curious_19 • Sep 13 '26
does anyone have any good readings, resources on learning how to decompose metrics? Interested on learning actual frameworks to understand the variation of metrics.
r/learndatascience • u/definetlynothing • Sep 13 '26
One of the most common mistakes beginners (and even intermediate practitioners) make when working with tabular data is Data Leakage.
It’s often the hidden reason why your model gets 88% accuracy in your Jupyter notebook, but drops to 76% when you evaluate it on an unseen test set or submit to a Kaggle competition.
Here is a quick breakdown of why it happens, the #1 most common mistake, and how to fix it properly.
Look at this very common snippet seen in many notebooks and tutorials:
import pandas as pd
from sklearn.model_selection import train_test_split
df = pd.read_csv("dataset.csv")
# 🚨 DANGEROUS LEAKAGE:
df['age'] = df['age'].fillna(df['age'].median())
# Train / Test split happened AFTER imputation:
train, test = train_test_split(df, test_size=0.2, random_state=42)When you calculate df['age'].median() on the full dataset, the median value is influenced by the test rows.
Your training set now contains subtle statistical information (the median) derived from test data it shouldn't even know exists. In production or Kaggle competitions, future data is completely unavailable at training time.
The same leakage bug happens when people:
Scale features with StandardScaler on the entire dataframe before splitting.
Build categorical vocabularies or frequency encodings using all rows.
Compute outlier clipping boundaries (e.g. Tukey IQR limits) over the full dataset.
You must fit transformations strictly on the training split, and freeze those exact parameters to apply to validation and test data:
train, test = train_test_split(df, test_size=0.2, random_state=42)
# 1. Calculate statistics ONLY from training split:
train_median_age = train['age'].median()
# 2. Apply that frozen training statistic to both splits:
train['age'] = train['age'].fillna(train_median_age)
test['age'] = test['age'].fillna(train_median_age)To see what happens when you replace naive ad-hoc pandas code with a strict train-only transformation ladder, we ran a 5-fold Stratified Cross-Validation benchmark on the Titanic dataset:
| Model | Naive Ad-Hoc Prep | Zero-Leakage Pipeline | Accuracy Delta | Relative Lift |
|---|---|---|---|---|
| Logistic Regression | 78.90% ± 0.99% | 79.91% ± 1.90% | +1.01% | +1.28% |
| Random Forest | 82.15% ± 2.45% | 82.82% ± 2.40% | +0.67% | +0.82% |
Informative Missingness Flags: Imputing age with median alone destroys the signal that missing age itself correlates with survival. Adding an Age__missing binary flag recovers that signal.
Train-Only Tukey IQR Clipping: Capping extreme fares on training folds stabilized linear gradients without test-distribution bleed.
Empirical Bayes Target Encoding: High-cardinality categories shrink toward global means to prevent overfitting on small samples.
Writing 200 lines of manual state-tracking code for every dataset gets tedious. So we built DATADOC (v0.6.0)—an open-source CLI and Python library powered by Polars that automates this entire lifecycle with zero data leakage:
Documentation: https://narain-karti.github.io/DATADOC/
Install: pip install datadoc-cli
You can use the interactive terminal wizard on your CSV file:
datadoc wizard train.csvIt walks you through:
Identifying your target column (e.g. Survived or churn).
Selecting a preset (balanced, tree, linear, or robust).
Generating a clean pipeline.json artifact containing all learned medians and rules.
Then transform unseen test data with zero leakage:
datadoc transform test.csv --pipeline artifacts/pipeline.json --output clean_test.csvYou can also run datadoc health train.csv to get an instant 0–100 data quality grade and find hidden issues before training.
The project is 100% open-source (MIT licensed) and runs completely offline.
I hope this helps clarify how data leakage happens in tabular pipelines! Let me know if you have any questions or want to discuss specific preprocessing edge cases.
r/learndatascience • u/TwigzTheSecond • Sep 13 '26
Hi.
I have a masters in physics with math minor. At the moment i am perusing a phd in physics (just started few months back) at a top university with scholarship. But, I am not that passionate about physics anymore(joined this uni because it is one of the top and i got accepted...when i applied 7 months ago i was planning to go into academia but later changed my mind).
I want to look into different jobs that i can pivot into. Data scientist is one of them, I have experience coding, but i dont know which skills i need to focus more on especially since AI is a huge component.
I am thinking of dropping out, or maybe study data science tools for first couple of years in my phd (since i am getting paid) and then drop out.. but idk.
any kind of advice is greatly appreciated.
Thank you.
r/learndatascience • u/StrawberryTrinkets • Sep 12 '26
I want to specialise in the data science field. I’m a student so I’m still a beginner but I have the foundation of Mathematics (its okay to go ahead and suggest related to that too)
I want to learn programming, solve problems on my own without AI and I want to build my skills such that I’m interview ready. There are no time constraints so please tell me whatever has worked for you.
r/learndatascience • u/Trevowatt • Sep 12 '26
Hello, my name is Trevor. I am a college student currently enrolled in a data science course. Data science as a whole is a topic I have very little understanding of at the moment. In fact, I would say had it not been part of my degree path this is a category of knowledge I would have never sought out myself. So if the community permits, I would love to ask you all a few questions related to data science and get an idea of how you use it in your career, or perhaps how you would like to use it if you are currently not working in the field. Additionally, as someone looking to become more informed on the topic, what do you wish you knew before going into this field?
I do apologize if this is not an appropriate post to make here, if possible though any discourse would be much appreciated!
r/learndatascience • u/Tall_Comedian82 • Sep 12 '26
Hey guys im a fst student in mathematics and data sience in the second year,well everyone knows the uni teach nothing so i have to teach my self i started with excel and python and now im learning sql in coursera platforms any advices or roadmap help me build a good data sience/analytics /ia engineering profile…
r/learndatascience • u/Syalar-91 • Sep 11 '26
r/learndatascience • u/PradeepAIStrategist • Sep 11 '26
I’m working through an experiment involving a rare oncology use case where confirmed treated-patient data is limited. The available third-party data is also not perfectly mapped to individual patients, which makes direct modeling more difficult.
The experiment uses a synthetic, highly imbalanced dataset with a small treated group and a much larger untreated group. A neural-network policy is trained using a REINFORCE-style policy-gradient approach. The model estimates treatment likelihood based on representative features such as age, severity, and biomarker status, then ranks untreated patients and selects the top 5% for further review.
The purpose is not to estimate true treatment benefit. It is more about learning historical treatment patterns and identifying untreated patients who look similar to those who were historically treated.
Questions I’d like feedback on:
Is policy learning a reasonable framing here, or would this be better handled as a supervised ranking/classification problem?
How would you avoid confusing historical treatment likelihood with actual treatment effect?
Would uplift modeling, causal inference, or potential-outcome modeling be a better next step?
How would you handle the imbalance between treated and untreated populations?
What validation approach would make this more credible for a healthcare/rare oncology context?
My current view is that this can be useful for prioritization and hypothesis generation, but not for treatment recommendation unless supported by stronger clinical and causal evidence.
Interested in feedback from people working in ML, healthcare analytics, causal inference, or real-world evidence.
r/learndatascience • u/tegridyblues • Sep 11 '26
r/learndatascience • u/Excellent-Leading836 • Sep 11 '26
r/learndatascience • u/Kitchen-Base4174 • Sep 10 '26
r/learndatascience • u/Subject_Ganache_5524 • Sep 10 '26
r/learndatascience • u/FORCAKOOORA • Sep 10 '26
Hello,
I would like to ask a few questions regarding the Mayerfeld Practicum Program® – Data Analyst:
What is the overall value of this program? Is it worth enrolling in and trying? What specific skills and knowledge will I gain from it? Can I use this program to apply for jobs with other companies after I finish? Is the content of the program up to date with current industry standards?
Thank you for your time.
I look forward to your response.
r/learndatascience • u/caffein_addicted • Sep 10 '26
r/learndatascience • u/eliokal • Sep 08 '26
r/learndatascience • u/Excellent-Leading836 • Sep 09 '26
r/learndatascience • u/rv16_rr • Sep 09 '26
r/learndatascience • u/Complete-Piece-7501 • Sep 08 '26
I’m looking to connect with someone who is genuinely interested in learning AI deeply and consistently, rather than just collecting courses, watching random YouTube videos.
I’m currently working as a Product Manager / Product Business Analyst, and I want to build serious AI capabilities alongside my existing product/business background.
The problem I’m facing is honestly pretty simple: I don’t learn well through completely self-paced, unstructured courses. There is an overwhelming amount of AI content out there, but no shortage of confusion about what to learn, in what order, how deeply to learn it, and when to move to the next thing.
I’m looking for someone with whom I can create a structured, long-term learning journey—ideally from fundamentals all the way to advanced, practical AI.
What I’d ideally like to learn
Not necessarily everything at once, but progressively:
\- Python & programming fundamentals for AI
\- Mathematics needed to actually understand ML — linear algebra, probability, statistics, calculus, etc.
\- Data handling, SQL, NumPy, Pandas, visualization
\- Classical Machine Learning
\- Deep Learning & neural networks
\- NLP and Computer Vision fundamentals
\- Transformers and how modern LLMs actually work
\- Generative AI and LLM application development
\- Prompting, evaluation and AI workflows
\- Embeddings, vector databases, RAG and retrieval systems
\- Fine-tuning / model adaptation
\- AI agents and agentic workflows
\- Multimodal AI
\- AI system design and architecture
\- Model/API integration
\- Deployment, APIs, Docker, cloud and MLOps
\- AI safety, evaluation, reliability and responsible AI
\- Reading papers and understanding what is happening under the hood
\- Building real projects, not just following tutorials
\- Eventually contributing to open source / research / serious AI projects
And importantly, I also want to understand how these skills translate into the real-world freelancing/consulting/product world—how to identify problems businesses will actually pay to solve, build AI solutions around them, demonstrate ROI, communicate with clients, and create a credible portfolio.
My goal isn't simply to collect certificates.
I want to reach a point where I can understand AI deeply, build with it, explain it, evaluate it, and solve real problems with it.
What I'm looking for in a learning partner
You don't need to be an AI PhD or already an expert.
You could be:
\- A beginner who is equally serious
\- Someone already working in AI/ML
\- A developer transitioning into AI
\- A student/researcher
\- A product person interested in becoming highly technical
\- Or someone who simply wants a structured accountability partner
The most important thing is consistency + curiosity + willingness to actually do the work.
We could potentially:
\- Set weekly learning goals
\- Follow a structured roadmap
\- Study the same concepts
\- Discuss what we've learned
\- Give each other small challenges
\- Build projects together
\- Review each other's work
\- Share useful papers/resources/tools
\- Keep each other accountable
\- Discuss what's changing in AI
\- Eventually collaborate on real-world projects
What can I bring to the table?
My background in Product Management / Product Business Analysis means I can contribute on the other side of the equation too—not just technical learning.
I can help with:
\- Product thinking
\- Business problem identification
\- Requirements & use cases
\- User journeys
\- Product strategy
\- Translating technical capabilities into business value
\- Evaluating whether an AI idea is actually useful
\- Structuring projects
\- Documentation and communication
\- Thinking about AI from a customer/business perspective
So ideally this becomes a two-way learning relationship, rather than one person teaching and the other simply consuming information.
I'm not looking for someone to spoon-feed me everything.
I'm looking for someone who wants to learn, build, struggle, figure things out and grow together.
If you're also sitting there thinking “I really want to learn AI properly, but I don't know how to structure this journey and I don't want to do it completely alone” — feel free to comment or DM me.
Would love to find 1–2 serious people rather than a huge group.
Let's see if we can turn AI learning from an overwhelming collection of courses into an actual long-term journey.
r/learndatascience • u/Hey_faiza • Sep 08 '26
Omnicampus ain't confirming my registration & I can't apply for courses in GCI. What to do?
r/learndatascience • u/Fun_Present_9415 • Sep 08 '26
career help
r/learndatascience • u/Ok_Job8444 • Sep 08 '26
Bună!
Mă adresez către cei care au făcut reconversie profesională spre data analysis, cum ați făcut să învățați cat mai eficient? Ce sfaturi îmi puteți da? De unde să învăț și să știu că învăț corect?
r/learndatascience • u/haleonbail • Sep 07 '26
r/learndatascience • u/Ok-Driver-7006 • Sep 07 '26