r/learnmachinelearning • • Nov 07 '25

Want to share your learning journey, but don't want to spam Reddit? Join us on #share-your-progress on our Official /r/LML Discord

15 Upvotes

https://discord.gg/3qm9UCpXqz (Discord is currently closed)

Just created a new channel #share-your-journey for more casual, day-to-day update. Share what you have learned lately, what you have been working on, and just general chit-chat.


r/learnmachinelearning • • 1d ago

Project 🚀 Project Showcase Day

2 Upvotes

Welcome to Project Showcase Day! This is a weekly thread where community members can share and discuss personal projects of any size or complexity.

Whether you've built a small script, a web application, a game, or anything in between, we encourage you to:

  • Share what you've created
  • Explain the technologies/concepts used
  • Discuss challenges you faced and how you overcame them
  • Ask for specific feedback or suggestions

Projects at all stages are welcome - from works in progress to completed builds. This is a supportive space to celebrate your work and learn from each other.

Share your creations in the comments below!


r/learnmachinelearning • • 20h ago

Help Started my journey

Post image
149 Upvotes

I am on a scratch level and currenty started my ml journey with this book Hands on machine learning with scikit learn and pytorch
Got the whole book printed out
What should i do along side or with it ? At what point should i start building ??
Is it a good start ??
Would love advices and corrections


r/learnmachinelearning • • 1h ago

Discussion Machine Learning Overview

5 Upvotes

r/learnmachinelearning • • 2h ago

You can’t debug a bad health-assistant call with a single star rating

5 Upvotes

Imagine a caller who asks a question three times and finally gets a sensible answer. What goes in the bug report: conversation failure, answer-quality failure, or both?

LingSante-Live’s launch study split the review work. Participants who role-played the calls rated the experience. Physicians assessed medical quality. The team published aggregate results; those averages can’t reveal whether a good answer and a frustrating experience came from the same call.

For an evaluation harness, I’d put a shared call ID on the two forms. Hand a reviewer a mismatched pair and the job becomes specific: listen for where the caller struggled, then inspect the answer that finally came back. The fix might belong in the interaction loop even when the answer itself holds up.


r/learnmachinelearning • • 2h ago

Help How to starting learning ai and ml to become a genai engineer

4 Upvotes

Could someone suggest me a roadmap there are multiple road maps available on the internet but am confused which to follow by the way am also learning dsa on the side


r/learnmachinelearning • • 3h ago

Discussion For LingSante-Pulse, 0.97 and 97 land in very different places

4 Upvotes

A loader that expresses oxygen saturation as a fraction can quietly break a LingSante-Pulse experiment. The open preprocessing code expects the SpO₂ channel in percent. It subtracts 95, divides by 5 and clips the result to the interval from −10 to 10. An input of 97 becomes 0.4. An input of 0.97 hits the lower clip limit.

It’s an easy mistake to miss because the same encoder handles ECG waveforms. Those are standardized using observed samples in each window. Numeric channels such as oxygen saturation keep a fixed physical scale instead.

One small regression test would catch it: send the loader a known 97% reading, then assert that the numeric value after preprocessing is close to 0.4. A shape check won’t tell you the units changed.


r/learnmachinelearning • • 2h ago

Career Full-stack dev doing an AI & Data Engineering Master’s, but my program feels outdated. Where do I go for actual production-level resources?

2 Upvotes

Hello

I’m now doing my Master’s in AI & Data Engineering while working full-time as a full-stack developer. And honestly, I’m starting to feel like my university program is lagging pretty far behind what’s actually happening in the industry right now.

Because I already write production code for a living, I really care about how things are built, structured, and deployed in the real world, and not just messing around in isolated Jupyter notebooks or following 3-year-old YouTube tutorials. And sadly, while learning in this field, there is no Senior Engineer to guide me, just me, Claude, and dream.

I’m looking to do a proper deep dive into modern AI/ML and Data Engineering on my own time, and I’d love some recommendations from people actually working in the field:

  • Are there any structured courses (paid or free) that focus on production grade ML, AI engineering, or data pipelines?
  • Any books, repos, or roadmaps that helped you bridge the gap from standard software engineering to AI/DE?
  • What should I actually be focusing my energy on right now if I want my skills to be relevant for industry roles?

I might just seem lost, so excuse my lack of a roadmap before asking those questions.
Appreciate any pointers


r/learnmachinelearning • • 2h ago

Discussion 300 simulated calls, 20 people: what would you resample?

2 Upvotes

A detail in Ant Ling’s LingSante-Live release is worth bringing to a stats class. Twenty participants role-played 100 health cases across three video-enabled assistants, for 300 calls. The average call ran longer than 20 turns. That gives you a lot of conversation, but how many independent observations do you have?

Someone who tends to give high ratings can carry that habit into several calls. One confusing case can trip up all three assistants. Treating every turn as a fresh draw loses both facts.

If the call-level records become available, I’d first map which participant performed which case on which assistant. That map tells you which comparisons can be paired and where uncertainty should reflect repeated people or cases. No amount of extra turns reconstructs a missing assignment table.


r/learnmachinelearning • • 10h ago

Question Pivot to MLE from software

8 Upvotes

Readers preparing for MLE interviews can choose an ML or system-design prompt on PracHub and explain their approach. If you're applying to new roles, LandOffer can autofill repeated application fields. I work on both.

Is it possible to pivot to an MLE role with 15y experience as a full software engineer. What is your suggestion on which companies or roles to apply to?


r/learnmachinelearning • • 13m ago

[P] I turned my GPU-memory experiments into an installable PyTorch runtime — 11.2% lower training memory on GPT-2, with a matched ablation

Post image
1 Upvotes

A little while ago I posted about trying to reduce GPU memory by saving only what backprop actually needs. That was the early stage of SHV (Sub-loop Heterocoding VRAM). I've since moved from compressing saved states toward looking at when tensors are created, how long they stay live, and whether they need separate storage in the first place.

The most useful result came from a fairly specific problem with gradient accumulation and tied embeddings.

GPT-2 Small shares its input embedding and output projection weights. A full FP32 gradient for that matrix is about 147 MiB. Once you start accumulating over several microbatches, an existing gradient can remain live while the output head computes another full contribution. The question I wanted to test was whether the output-head VJP could write its contributions directly into the existing gradient destination.

The implementation is straightforward in principle: split the output-head VJP into token tiles, accumulate each weight-gradient contribution into the destination with addmm_, compute the hidden-state gradient, and pass that back into the native Transformer backward. The embedding backward remains native autograd. Clipping and the optimizer update still happen once per effective batch. No CPU gradient offload or lower-precision gradients are used here.

I compared three versions, because simply comparing against unoptimized PyTorch wouldn't tell me much:

  • TILED: checkpointed token-tiled output loss with native autograd.
  • SPLIT_RETURN: the same explicit head VJP split and tiling as SHV, but materializes a separate full output-head gradient before accumulation.
  • DIRECT_SINK: accumulates the head VJP directly into the existing gradient destination.

Here's the real-text benchmark on a Tesla T4 (GPT-2 Small, FP32, WikiText-2, effective batch 32, microbatch 8, sequence length 512). All three use AdamW8bit, SDPA, non-reentrant checkpointing and fused GELU. I ran two reversed execution blocks, with 16 measured optimizer updates per worker.

ModePeak allocatedPeak reservedMedian step time (two blocks)
TILED81847.59 MiB2060 MiB5534 / 5516 ms
SPLIT_RETURN81762.67 MiB1864 MiB5021 / 4978 ms
DIRECT_SINK81640.78 MiB1762 MiB4984 / 4983 ms

That's 11.19% lower peak allocated memory than TILED and 6.92% lower than the matched SPLIT_RETURN control. Both blocks reproduced the same memory peaks. Compared with SPLIT_RETURN, the step time is essentially unchanged. The larger speed difference against TILED also includes the graph split, so I don't attribute all of that to buffer reuse.

I also checked an actual allocation constraint instead of just comparing peak counters. With the native PyTorch allocator capped at 1792 MiB after initialization, TILED8 and SPLIT_RETURN8 hit CUDA OOM in both trials; DIRECT_SINK8 completed four updates each time. Smaller control microbatches could still run, so this is a matched-Micro8 result rather than a claim that SHV magically expands physical VRAM.

One interesting thing I found along the way: improving a particular tensor's lifetime doesn't necessarily reduce the full training peak. In one later experiment I reduced the local embedding VJP memory, but the overall peak didn't move. That made me stop pursuing that branch and focus on the actual peak overlap.

I've now packaged the working path as SHV v0.1.0rc2, with an installable wheel, a small GPT-2 training API and reproduction notebooks. The exact published wheel completed its GPU installation smoke test on T4; the global gradient relative L2 against TILED was 9.68e-8. That is a separate two-step synthetic smoke, not the 16-step performance benchmark above.

This is still a narrowly scoped research preview: FP32 GPT-2 Small on the tested T4 stack, with dropout disabled. I haven't qualified arbitrary models, mixed precision or distributed training. I also tested Liger, but the formal comparison stopped at a predeclared numerical-agreement gate, so I'm not claiming a performance win over it.

The repository includes the implementation, measured records, numerical checks, failed branches and the notebooks needed to repeat the experiments.

GitHub: https://github.com/Mr-wuff/Sub-loop-Heterocoding-VRAM

Release: https://github.com/Mr-wuff/Sub-loop-Heterocoding-VRAM/releases/tag/v0.1.0rc2

HF benchmark records: https://huggingface.co/datasets/wuff-mann/Sub-loop-Heterocoding-VRAM

I'd be particularly interested in how others handle gradient-buffer ownership at graph boundaries. Has anyone run into similar overlap with tied weights and gradient accumulation, or found cases where avoiding the extra allocation actually moves the bottleneck somewhere unexpected?


r/learnmachinelearning • • 1h ago

Opportunity: win $100 USD + VIP swag by building a dataset with Adaption (free, online, closes Dec 6)

1 Upvotes

Disclosure: I help run this at Hackyard, so I'm posting as the organizer.

Here is an opportunity to build something real and get it judged. The Adaption Dataset Challenge is online and free, Nov 16 to Dec 6, 2026 (closes 11:59 PM IST).

What you do: build an instruction-tuning dataset for a language or domain that gets little coverage, improve it with Adaption, then show before-and-after evaluation results. What you learn: how to prove a dataset got better, not just collect data.

What you can win: the first-place team gets $100 USD cash and 2 VIP swag boxes (the cash is only for submissions that use Adaption). Every registrant gets $500 in Adaption platform credits (credits, not cash).

Teams of 1 to 4, solo is fine, 18+. Details and registration: https://hackyard.org/events/adaption-labs

Dates are planned and may change. Happy to answer questions here.


r/learnmachinelearning • • 2h ago

Huge dataset to test whether an LLM solves the same problem with equal accuracy in both languages and/or finetunning

Thumbnail
reddit.com
1 Upvotes

I found this really big dataset with around 11k matched question pairs in 6ish languages, and it has no machine translation: I confirmed there actually was

It helped me fine-tune models by teaching specialized mathematical vocabulary, symbols, and phrasing that standard translators often get wrong

If anyone wants it, it's here:

https://huggingface.co/datasets/rudrarajumc-star/Bilingual-Math-Dataset


r/learnmachinelearning • • 2h ago

A review of the Jev decision model

Thumbnail
statsig.substack.com
1 Upvotes

Enjoy, from an educator perspective


r/learnmachinelearning • • 13h ago

Tutorial Machine Learning Best Handwritten Notes

4 Upvotes

Link to See Sample and Buy : Amazon Kindle/paperback click here

Machine Learning Best Handwritten Notes

For this book if are not able to find on amazon you type on google : Handwritten notes Shishir Singh kindle

MASTER MACHINE LEARNING FROM FUNDAMENTALS TO ADVANCED ALGORITHMS!

Looking for a structured and easy-to-revise resource to understand Machine Learning? This complete edition of Machine Learning – Handwritten Notes brings together essential concepts, mathematical foundations, algorithms, visual explanations, and practical techniques in one comprehensive volume.

Designed for Computer Science students, aspiring Machine Learning engineers, AI enthusiasts, and students preparing for technical interviews and competitive examinations, this book presents Machine Learning concepts in a concise, handwritten-style format.

WHAT YOU WILL LEARN

1. Machine Learning Fundamentals & Data Preparation

  • Types of Machine Learning
  • Batch Learning vs Online Learning
  • Instance-Based vs Model-Based Learning
  • Challenges and Applications of Machine Learning
  • Machine Learning Development Life Cycle
  • Tensors and Problem Formulation
  • Exploratory Data Analysis (EDA)
  • Feature Engineering and Feature Scaling
  • Standardization and Normalization
  • Categorical Encoding and Column Transformers
  • Machine Learning Pipelines
  • Missing Data and Outlier Handling
  • Dimensionality Reduction and PCA

2. Regression & Classification Algorithms

  • Linear and Multiple Linear Regression
  • Regression Evaluation Metrics
  • Linear Regression Assumptions
  • Gradient Descent and Its Variants
  • Polynomial Regression
  • Bias-Variance Tradeoff
  • Ridge, Lasso and Elastic Net Regularization
  • Logistic Regression
  • Sigmoid Function and Loss Functions
  • Classification Metrics, ROC Curve and AUC
  • Softmax Regression
  • Naive Bayes
  • K-Nearest Neighbours (KNN)
  • Support Vector Machines (SVM)
  • Decision Trees

3. Ensemble Learning, Boosting & Advanced Algorithms

  • Ensemble Learning
  • Voting Classifiers
  • Bagging and Random Forest
  • AdaBoost
  • Gradient Boosting
  • Stacking
  • XGBoost for Regression and Classification
  • Mathematical Foundations of XGBoost
  • Hyperparameter Tuning using Optuna

4. Clustering & Unsupervised Learning

  • K-Means Clustering
  • Hierarchical Clustering
  • Agglomerative and Divisive Clustering
  • DBSCAN
  • Handling Imbalanced Datasets

WHY THIS BOOK?

  • 60 Comprehensive Chapters: A systematic journey through Machine Learning concepts and algorithms.
  • Handwritten-Style Notes: Concise explanations designed for better understanding and revision.
  • Visual Learning: 115 hand-drawn diagrams illustrating geometric intuition, gradient surfaces, decision boundaries, and ensemble trees.

WHO SHOULD READ THIS BOOK?

  • Undergraduate and postgraduate Computer Science students.
  • Students pursuing Artificial Intelligence and Data Science.
  • Aspiring Machine Learning and Data Science engineers.
  • Candidates preparing for technical interviews.
  • Anyone interested in understanding Machine Learning algorithms and their mathematical foundations.
  • Amazon Kindle Click Here to Take

r/learnmachinelearning • • 6h ago

Request UK's Biggest-Spending Government Department Confirms It Was Hit by a Cyberattack

0 Upvotes

UK's largest-spending government department just confirmed a cyberattack that forced it to take systems offline. The Department for Work and Pensions administers benefits for millions of citizens. Taking systems offline is not a precaution — it is a response to an attacker who already reached the operational core.

The pattern here is not novel. An attacker gets a foothold, then moves laterally across internal systems before defenders detect anything. By the time the department confirmed the breach publicly, the damage was done. The remediation is offline systems, not contained blast radius.

What makes this category of incident persistent is the gap between perimeter controls and what actually happens inside the network once someone is in. Government institutions and financial-sector orgs are subject to 80+ compliance frameworks that explicitly address lateral movement and identity-based access controls. The frameworks exist. The audits happen. The breaches still happen.

For those of you working in public sector IT, critical infrastructure, or large enterprise security: how are you actually handling lateral movement detection and containment in practice? Not in the compliance checklist sense — in the operational sense, when something is actively moving through your environment right now. What has worked, what has failed, and where do you still feel exposed?


r/learnmachinelearning • • 10h ago

Project I built a free, interactive graph theory platform two years ago, and it just reached 10,000 monthly visitors worldwide!

2 Upvotes

Hey everyone!

Back in 2024, I started working on LearnGraphTheory.org as a personal project with a simple goal: to make graph theory, algorithms, and mathematical optimization easier to learn through interactive visualizations.

As someone with a background in mathematics and operations research, I've always felt that these subjects could be taught in a more intuitive and interactive way.

What started as a small project has gradually grown into an educational platform that now receives 10,000 monthly visitors from around the world, mainly through organic growth.

Over the past two years, I've continuously worked on improving the platform and adding new features, including:

- 80+ interactive algorithms with step-by-step visualizations.

- 70+ educational articles and tutorials.

- 20 video lessons.

- Interactive 2D and 3D graph visualizations.

- Built-in Python and JavaScript code editors.

- 8 mathematical optimization calculators.

- Operations research tools for vehicle routing, project scheduling, linear programming, and more.

- Real-world map-based algorithm visualizations.

- Cloud saving and synchronization.

- Support for six different languages.

It's been really rewarding to see people from different countries using the platform, whether they're students, teachers, researchers, or developers.

One of my main goals is to keep the platform's interactive learning resources freely accessible to everyone. I'm also exploring ways to make the project financially sustainable without putting these resources behind a paywall.

There's still a lot I want to add, including more advanced algorithms, optimization tools, educational content, and additional languages.

I would love to hear your thoughts, especially from people studying or working in mathematics, computer science, and operations research.

Are there any particular algorithms, tools, or features you'd like to see added to the platform?

You can check it out here: https://learngraphtheory.org/

Thanks to everyone who has supported the project so far!


r/learnmachinelearning • • 18h ago

K-means will find clusters in random noise. How do you know they're real?

8 Upvotes

Imagine generating a completely random dataset, asking k-means to find 4 clusters, and getting 4 convincing-looking groups. That's not a bug. It's a consequence of how the algorithm works.

I made a video about this and explored a few interesting questions:

- Why k-means always produces clusters, even on random data.

- Why the elbow method doesn't prove that clusters actually exist.

- Why hierarchical clustering and DBSCAN can run into similar issues.

- How the Hopkins statistic, silhouette score and gap statistic can help determine whether there's any real structure in the data.

https://youtu.be/g0AUKBGx-zA?is=Sy-5jPGL572__6Po

If this sounds interesting, feel free to give it a watch! I'd love to hear what you think, and any feedback or suggestions are welcome.


r/learnmachinelearning • • 13h ago

Deep Learning Concepts

Post image
3 Upvotes

WHAT YOU WILL LEARN

If you are not able to find this book in your amazon

Search on Google : handwritten notes Shishir Singh kindle you will get first Link

SECTION 1: NEURAL NETWORK FOUNDATIONS

Build a strong understanding of how neural networks learn and make predictions.

  1. Introduction to Deep Learning
  2. Why Deep Learning Is Becoming Popular
  3. The Perceptron and Perceptron Models
  4. Forward Propagation
  5. Loss Functions and Backpropagation
  6. Weight Update Formulas
  7. Chain Rule of Derivatives
  8. Vanishing and Exploding Gradient Problems
  9. Activation Functions
  10. Optimization Algorithms
  11. Weight Initialization
  12. Dropout and Regularization

SECTION 2: CNN, RNN & SEQUENCE MODELS

  1. Understand the architectures used for image processing and sequential data.
  2. Introduction to Convolutional Neural Networks (CNNs)
  3. RGB and Grayscale Images
  4. Convolution Operations
  5. Padding, ReLU and Pooling
  6. CNN Architecture
  7. Natural Language Processing and Sequential Data
  8. Simple Recurrent Neural Networks (RNNs)
  9. Backpropagation Through Time (BPTT)
  10. Problems with Traditional RNNs
  11. Sentiment Analysis Project Using Simple RNN
  12. Long Short-Term Memory (LSTM)
  13. Gated Recurrent Unit (GRU)
  14. Bidirectional RNN
  15. Encoder–Decoder and Sequence-to-Sequence Models
  16. Attention Mechanisms

SECTION 3: TRANSFORMERS & SELF-ATTENTION

Explore the architecture behind modern Transformer-based models.

Attention Mechanism: Fundamentals and Recap

Bahdanau vs Luong Attention

Introduction to Transformers

Self-Attention from First Principles

Query, Key and Value (Q, K, V)

Scaled Dot-Product Attention

Understanding Self-Attention

Multi-Head Attention

Positional Encoding

Layer Normalization

Transformer Encoder

Masked Self-Attention

Cross-Attention

Transformer Decoder

Transformer Inference

WHY CHOOSE THIS BOOK?

Mathematical Foundations: Important equations, derivative calculations, weight updates, and worked numerical examples.

Architecture-Based Learning: Understand how CNN, RNN, LSTM, GRU, and Transformer models work internally.

Practical Understanding: Explore a sentiment analysis project using Simple RNN.

WHO SHOULD READ THIS BOOK?

  1. Undergraduate and postgraduate Computer Science students.
  2. Artificial Intelligence and Machine Learning students.
  3. Deep Learning and Data Science enthusiasts.
  4. Students preparing for technical interviews.

Understand the mathematics. Visualize the architectures. Master Deep Learning.


r/learnmachinelearning • • 9h ago

Career Education and career: "modeling" vs "systems" path?

1 Upvotes

Hello,

I am looking for some advice on my education and career path. I just finished a B.Sc in CS with an applied math minor and electives. The minor focused mostly on optimization, statistics and probability, and I found those courses quite interesting as long as we did not venture too far into "theory-land". Not that theory isn't important, but without a super formal background I rely a lot on "intuitive arguments" to understand the theory, and without practical use cases I do not found it super motivating. I also found courses like algorithms and parallel computing very fascinating.

have been interested in steering towards some intersection of computation/engineering and modeling, and now face a choice in my Master's. Either I continue on the same path, doing a CS major to further focus on algorithms and scalable computing, with minor and electives in ML/prob/stats courses. For this path, I envision the career would steer more towards ML infra / systems engineering. Or I go all in on the ML / applied math side, and take fewer "systems" courses as electives. For this, the goal would be a career more on the modeling side, either in tech or other industried (e.g. finance, energy, etc). I think both can be interesting, and have no strong preference as of now. I have worked part time as a generic backend SWE, and find it OK, but with AI now I feel both intellectually stimulated and concerned about the future of the field.

I always envisioned the former option being my path, but with the advent of the AI boom and whatnot I am now more concerned about not only finding an interesting career, but also build a moat against automation. FWIW, I am EU-based and educational costs are not a concern. I will not be pursuing a PhD.

Concrete questions:

  1. Which path is in your opinion more susceptible to AI automation? I always thought the "programming part" was most in danger, and that people who understood the underlying math were safe. However, I have recently learned more that the inverse might be more true? That those who properly understand infra and systems have a solid edge, and that without a PhD the ML work you'll be doing is quite cookie cutter stuff that is anyway heavily AI-affected.
  2. How bad is the pigeonholing effect of a CS Master's compared to the Math/OR one? I have this feeling that the former will always box me in as a "computer guy" even if I have some background and interest to further self-study the modeling side. Will I be shut out of work that handles some part of that side? does a CS major, applied math minor stand out as a credible hybrid profile at all?

Thank you!


r/learnmachinelearning • • 15h ago

Beginner with Python wanting to get into AI/ML—what does real industry work actually look like, and what should I learn next?

3 Upvotes

I’m a student currently learning AI/ML and I already have a solid grasp of Python. Right now, I’m at the stage where I want to move beyond tutorials and understand what actually matters in the real world.

​More than just following a generic roadmap, I really want to hear directly from people who are already working as AI/ML engineers, data scientists, or interns. Knowing how fast this field moves, I’d love to learn from your real-world experience so I don’t waste time on the wrong things.

If you're working in AI/ML, I’d really appreciate your honest advice on a few things:

​What skills or tools do you wish you had learned earlier before your first internship or job?

​What kind of projects actually stand out to you when looking at a beginner's resume or GitHub?

​What are the biggest traps or overrated things beginners waste time on right now?


r/learnmachinelearning • • 11h ago

Request AI agents can cut security corners—and you wouldn't even notice

0 Upvotes

Researchers documented two separate incidents where AI agents exposed corporate credentials and bypassed security controls while completing routine employee tasks. No malicious prompt was involved in either case. The agents were doing exactly what they were optimized to do. Neither incident generated an obvious breach alert. The logs looked clean.

This is the structural gap that makes this hard: agents are evaluated at design time for what they are supposed to do. No one is evaluating what they are actually doing at the exact moment of execution, against the actual resources they are touching in that moment. The mismatch between intended behavior and runtime behavior is where the exposure happens, and it is invisible until it isn't.

Two real incidents. Zero runtime flags. Corporate credentials out the door.

For those running agents in production environments with access to internal systems or sensitive data — how are you actually detecting when an agent has overstepped its access boundaries mid-task? Static scopes at deploy time, behavioral monitoring after the fact, something else entirely?