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

17 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 • • 14h ago

Question 🧠 ELI5 Wednesday

10 Upvotes

Welcome to ELI5 (Explain Like I'm 5) Wednesday! This weekly thread is dedicated to breaking down complex technical concepts into simple, understandable explanations.

You can participate in two ways:

  • Request an explanation: Ask about a technical concept you'd like to understand better
  • Provide an explanation: Share your knowledge by explaining a concept in accessible terms

When explaining concepts, try to use analogies, simple language, and avoid unnecessary jargon. The goal is clarity, not oversimplification.

When asking questions, feel free to specify your current level of understanding to get a more tailored explanation.

What would you like explained today? Post in the comments below!


r/learnmachinelearning • • 10h ago

Discussion I built ml coding problems thinking beginners would use them. my most active user is an AI safety researcher

Post image
154 Upvotes

This project started as a private repo for myself. I made small problems where you implement ML algorithms from scratch, like attention, optimizers, backprop by hand, like leetcode for ML.
Once other people started using it, I assumed it would mostly be students trying to break into ML.

Surprisingly, the top ranked person on the site is an AI safety researcher. he's been on it since almost day one and is close to 1,000 problems now.

He's not the only one like that either. a lot of the people who stick around already work in ml, and they keep coming back to write things from scratch that they could import in one line.

I used to think these coding problems would mostly be useful for people trying to get into ML but seeing who actually sticks around has changed my mind quite a bit.

Edit: too many comments asking the name, it's called TensorTonic


r/learnmachinelearning • • 15h ago

Project I rebuilt PyTorch's core to understand how it works, and wrote a series that explains each piece

Thumbnail
gallery
66 Upvotes

Hey all!

I use PyTorch almost every day, and for a long time the engine underneath was a black box to me: what actually happens when you add two tensors, and how is it so fast on so many CPUs and GPUs? Three and a half years ago, in my free time, I started trying to answer that.

How I made it. I started small, writing my own versions of the parts I thought I understood (an autograd engine in Python, then one in C++ on top of libtorch), and each one showed me how much I was still missing. In the end the only way forward was reading PyTorch's own source. It's huge, and part of the path from Python to the kernels is generated at build time, so it isn't even in the repo: it took me a long time just to find my way around. What made it click was rebuilding each piece myself, in C++ with Python bindings: the tensor and its strides, the loop behind almost every operation (TensorIterator), SIMD kernels, reductions and threads, autograd and, in the end, CUDA. Every operation is tested against PyTorch and timed next to it, so I knew when I had understood something and when I had not.

Piece by piece, that rebuild became Raxis, a library you can use much like PyTorch: it's about as fast, it's on PyPI (pip install raxis), and it trains real models like CNNs, Vision Transformers and nanoGPT. At some point it stopped being just for me, and I wanted it to be the code I would have liked to find when I started: it keeps the techniques that make PyTorch fast and little else, with no generated code and far fewer layers, so you can follow a call from Python to the kernel in your editor. It doesn't try to replace PyTorch: there's no distributed training, no torch.compile, no float16/bfloat16, and only NVIDIA GPUs. Much of what makes PyTorch's source hard to read exists because of exactly those features.

Code: https://github.com/pgmesa/raxis

I also wrote "Rebuilding PyTorch", a series that explains what I learned, in the order I learned it, for anyone as curious as I was who opened PyTorch's codebase and didn't know where to start:

  • What a tensor really is, and why slicing it costs nothing
  • How PyTorch walks a tensor of any shape
  • TensorIterator, the loop behind almost every operation
  • SIMD kernels for every CPU
  • Reductions and threads
  • The autograd engine
  • The same operations on a GPU

Each article starts from a question and walks through PyTorch's code step by step, with Raxis and measurements side by side: https://blog.pgmesa.com/series/rebuilding-pytorch/

It's dense material, more to study than to read in one sitting: it took me years to understand all of it and to let it sink in, and I hope it takes you much less. To start you only need to have written some PyTorch (some C/C++ helps), and the rest is curiosity and going one piece at a time. Feedback and questions are more than welcome, and I hope it helps you learn as much as it helped me!


r/learnmachinelearning • • 3h ago

Discussion Two patients, the same 15.2% rise, and one detail that should flip the answer

5 Upvotes

Two fictional patients had the same rise in creatinine, a blood test used to assess kidney function. Neither patient’s result was flagged on the lab report. In one handover a nurse called the result stable. In the other the nurse called it a real increase worth flagging. A creator asked a medical model to check each note.

The lab in the questions supplied its own rule: a rise above 14% counted as meaningful if the same lab had done both tests. If the earlier reading came from a different lab, the cutoff was 20%. Both patients’ results went up about 15.2%. LingSante-3.1-flash corrected both notes. The rise cleared the same-lab threshold for the first patient and fell below the different-lab threshold for the second. Each answer earned 5/5.

I’d like to see a version where the nurse just writes down the readings. Then give the model a fictional lab with the two cutoffs reversed. If it follows the supplied rule, its classification of each rise should flip again. That would tell me more than asking it to explain the original answers twic


r/learnmachinelearning • • 15m ago

Lost in Theory - Need Help Grounding to Reality

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 4h ago

Discussion Same dataset, same LightGBM, one line changed: RMSE jumped 4.53x (0.723 C to 3.274 C) and R^2 dropped from 0.993 to 0.688

2 Upvotes

When a time-series model crushes offline cross-validation and falls apart in production, the bug is rarely the model architecture. Most of the time, the evaluation code quietly turned forecasting (extrapolating into the future) into interpolation (filling in a blank between yesterday and tomorrow).

To quantify how big that illusion gets on real data, I ran a controlled test on a single public file: 2024 hourly temperatures from the NOAA NCEI Central Park weather station (72505394728).

Fixed setup across all runs:

  • Raw CSV: 11,590 UTC rows. Cleaned 13 duplicate timestamps and 419 9999 placeholders, aligned to all 8,784 hourly slots of 2024 (41 missing hours / 0.47%, longest consecutive gap 24h).
  • No backfilling or interpolation. Purely causal features only: 1/3/6/12/24/48/168h lagged temperatures, causal 6/24/168h rolling mean and std, and calendar sin/cos. That leaves 7,082 clean samples.
  • Target: mean temperature over the next 24 hours ([t+1, t+24]).
  • Model: identical LightGBM (seed = 42).

Only the split protocol changed:

Evaluation ProtocolTrain / Test RowsTest RMSETest R2What It Actually Measures
Random 80/20 split (shuffle=True)5,665 / 1,4170.723 C0.993Interpolation between neighboring hours
Chronological last 20% + 24h Purge5,641 / 1,4173.274 C (4.53x)0.688Honest forward forecasting
168h seasonal naive baseline (same hour last week)1,417 test6.182 C-0.113Zero-training baseline

A few details worth keeping in mind when auditing forecasting code:

  1. The model itself is still genuinely useful (3.274 C beats the 6.182 C seasonal naive baseline by almost half). What hurts teams in production is the fake +0.305 R2 bonus from random shuffling creating false confidence.
  2. A plain chronological cut still leaks at the seam. Because the target at timestamp t averages [t+1, t+24], the last 24 rows of the training slice have target windows that physically overlap the test period. Train rows dropped from 5,665 to 5,641 after purging those 24 overlapping rows.
  3. Purge vs. Embargo are distinct mechanisms (Lopez de Prado 2018):

    • Purge drops training rows whose label horizon [t+1, t+H] overlaps the test block. Needed even on a single forward holdout.
    • Embargo adds a buffer after the test fold in multi-fold time-series CV, when another training fold follows in time and serial autocorrelation can leak backwards.
  4. Three silent zero-exception leaks to grep for before shipping:

    • StandardScaler().fit_transform(df) or bfill() applied before splitting.
    • rolling(..., center=True) or forgetting .shift(1) on rolling statistics.
    • Training on offline reanalysis or post-hoc corrected tables that are not available at live forecast origin t_0.

One guardrail that has saved me repeatedly: add assert (feature_timestamp < forecast_origin).all() at the end of feature generation, and always report RMSE in physical units next to a naive baseline rather than R2 alone.

What is the sneakiest time-series leakage bug you have caught in real projects? Centered rolling stats and pre-split target encoding seem to slip through code review most often.


r/learnmachinelearning • • 1h ago

Project I made a browser tool that shows a classifier before and after training: each picture is a dot that moves to its class corner

1 Upvotes

I'm the developer. This is a free page for learning what a classifier does, aimed at students and at teachers who want one lesson on it. No account, nothing uploaded, the training runs in the tab.

What it actually trains: a frozen image encoder (CLIP ViT-B/32, int8, running with onnxruntime-web) turns each picture into 512 numbers, and the only thing trained is a small softmax classifier on top (optionally one hidden layer of 64). So this is transfer learning with a linear probe, not a network trained from pixels. The page says that too.

The part I'd like feedback on is "Look inside the network": it draws the real classifier before training (small random weights from a fixed seed, so the four shape classes read 23%, 27%, 27%, 22%) and after. A slider replays training from weight snapshots. On the answer map every example is a dot placed by its class probabilities: the middle is "not sure", a corner is "sure". Test pictures show up as diamonds, including some picked to be ambiguous: a square with round corners comes out Square 49%, Circle 44% and lands between the two corners.

Five demos open without any model download (the features are bundled), and three are built to fail first:

- "Something it never saw": it knows sun, tree, house. A fish gets "Tree", 94%. One click adds a "Something else" class; after retraining, 8 of 8 new pictures are right.

- "Background trap": every circle on red, every square on blue. 4 of 4 on its own held-out test, 3 of 6 when the backgrounds are swapped. Mixed backgrounds fix it (6 of 6).

- "Too few examples": four of each digit in one handwriting. 5 of 5 on its own held-out test, 5 of 10 on new handwriting; more varied examples bring it to 10 of 10.

The point the demos are built to land: a model is only as good as its examples, enough of them and a good mix, including examples of what it should say no to.

Limits: the demo datasets are tiny (20 to 80 examples) and the held-out tests are 4 to 15 pictures, so the scores are rough, and the page says so. Most answers read "99%+" because the classes are easy and the head trains until it saturates; it never rounds up to 100%. Your own project (webcam or photos) downloads the encoder once: 89 MB, or 26 MB for a ResNet-50 option. English only.

https://image-trainer.skillsafe.ai/?utm_source=reddit-learnml

Question: for someone meeting softmax for the first time, is the "dot between corners" picture a fair way to show probability, or does it hide something I should show instead?


r/learnmachinelearning • • 1h ago

Hey! Learner Learning AI/ML , drop your answer

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 1h ago

Discussion Starting LLMOps CampusX

1 Upvotes

I will be starting LLMOps for CampusX from 10th dec. Planning to complete this within a month. Anyone wants to join for competitive study / discussion are welcome.

If more people join we can form a group.

Please DM if anyone is interested.

To be precise I am planning for a job switch.


r/learnmachinelearning • • 2h ago

Need campusx dsmp lecture number 269

1 Upvotes

Data leakage


r/learnmachinelearning • • 1d ago

We grouped what ~72k recent ML papers admit they couldn't solve into ~5,000 open problems

Thumbnail
atlas.scime.ai
137 Upvotes

The most honest part of a paper is usually the limitations section, but nobody reads those across papers. So we did. We went through about 72k papers from 2024 to 2026 and grouped the walls that kept coming up into 1,138 topics and just under 5,000 open problems. Each problem links back to the papers that state it, and each topic also shows what's already been tried.

It's free and there's no sign-up, so dig around and steal ideas. If a page gets your area wrong, please tell us.


r/learnmachinelearning • • 6h ago

Created a platform for reading papers and learning AI/ML

Thumbnail
brainjuice.club
1 Upvotes

Hi folks,

Wanted to share a recent project I’ve been working on, as someone in the industry I found it hard to be continuously learning and keep track of everything.

I’m building and updating as I go to fit my personal use case, hope it can help serve your learning journey as well! Please try it out and let me know if you have a particular feature request.


r/learnmachinelearning • • 6h ago

Request âš¡ Weekly Recap: 1Password Breach, iPhone Attacks, Drupal Exploits, and the Encryption Backdoor Battle

1 Upvotes

AI is compressing the timeline for classical cryptography failures faster than most security teams have adjusted for.

The concern isn't theoretical. Harvest-now-decrypt-later attacks are already happening at scale: adversaries are capturing encrypted traffic and storing it today, waiting for the compute to crack it. The 1Password breach and the ongoing encryption backdoor debate brought this back into focus this week. When AI speeds up cryptanalysis, the question is no longer 'will classical crypto break' but 'how much of the data already captured is now within reach, and when.'

The encryption backdoor legislative push compounds this. Any mandated backdoor in a classical scheme is a surface that AI-assisted cryptanalysis can now approach faster than the policy framers assumed when they drafted the mandate.

Most production systems — including services handling credentials, financial data, and health records — are still signing and encrypting with RSA or ECC. The data sealed with those schemes today may be readable inside a window that is shrinking faster than most migration roadmaps account for.

For teams actually working through this: how are you prioritizing which data stores and signing operations to migrate first? And are you doing anything at the infrastructure level to enforce algorithm choices, or is it still driven by developer convention?


r/learnmachinelearning • • 6h ago

Project Built a ML debugging platform to practice production debugging and reliability labs for AI and systems engineers. Investigate broken retrieval, agent workflows, and evaluation code, then verify the repair.

0 Upvotes

I always build whatever im trying to learn so this time i built this platform to get better at debugging. As the coding agents are getting more capable we are relying on them solve most of the bugs.But someone who is just entering the software industry may not get the chance to go through the levels of debugging to get better.For progressing through your skills at debugging there are many practice questions inspired from real OSS contributions.


r/learnmachinelearning • • 10h ago

What separates a great AI engineer from someone who simply builds with LLM APIs?

2 Upvotes

I’ve been studying AI engineering, and one question keeps coming to mind.

With the availability of powerful LLM APIs, agent frameworks and AI coding assistants, building AI-powered applications has become increasingly accessible.

However, I want to develop a deeper understanding of the engineering behind these systems rather than simply knowing how to integrate existing tools.

I’m currently focusing on Python, LLM fundamentals, embeddings, retrieval systems and backend engineering.

For experienced AI engineers:

  • What fundamentals have made the biggest difference in your career?
  • How deeply should an AI engineer understand model architecture and mathematics?
  • What skills distinguish an exceptional AI engineer from an average one?
  • What would you learn differently if you were starting today?

I’m interested in building long-term engineering competence, not just keeping up with the latest AI frameworks.

I’d love to hear your perspectives.


r/learnmachinelearning • • 7h ago

Request November 2026: AI agents went from target to attacker — root in 11 minutes, 948 Linux exploits in one 30-hour run (103 incidents)

Thumbnail
gallery
1 Upvotes

I pulled together every AI-security incident from November. The shift that stood out: autonomous AI agents are now doing the attacking, not just getting attacked.

The month in numbers: 103 incidents, 28 critical and 74 high severity, across 27 named organizations, 18M+ records exposed. 40 incidents involved AI as the weapon or the target. Attack vectors broke down as: zero-days (22), AI-agent exploits (22), credential theft/reuse (20), supply chain (19), phishing (9), data exfiltration (6), ransomware (5).

The stories that stood out:

- AI agents reached root access in 11 minutes, and separately exploited a previously unknown zero-day in medical-imaging AI (MONAI Label).

- An OpenAI pipeline generated 948 Linux privilege-escalation exploits in a 30-hour automated run.

- A jailbroken DeepSeek agent kept hacking after antivirus blocked every tool it tried.

- CERT-In flagged a backdoored ARTEX AI Docker image exposing 62 developer consoles to root access.

- Supply chain: a poisoned Microsoft Agent Framework PyPI package, 7,600+ GitHub repos poisoned by PolinRider, the Optimizely attack reaching CNN/BBC/Fox News, and 1Password source code exposed via a GitHub employee account.

- Largest named record exposures: YouHack (7.2M), Careers360 (3.6M), SberSpasibo (3.3M).

Most of the affected organizations run mainstream security stacks. The common thread is that those tools don't sit at the point where an agent actually acts — mid-call, with legitimate credentials, before the second action. Detection after the fact doesn't help when an agent gets from foothold to root in minutes.

Curious how others here are handling agent identity and tool-call enforcement.


r/learnmachinelearning • • 18h ago

Beginner in AI — What should I focus on to become an AI Engineer?

7 Upvotes

Hi everyone!

I'm a second-year Computer Science student from India, and I'm currently learning AI and Machine Learning.

My long-term goal is to become an AI Engineer, especially in areas like LLMs, Generative AI, RAG, and AI Agents.

I've started learning the fundamentals of Machine Learning and have also built a small ML project. However, I'm still trying to understand how all these concepts connect to real-world AI applications.

I'd love to hear from people who are already working in AI or learning it themselves.

My questions:

  1. What concepts should a beginner focus on before diving deep into LLMs and Generative AI?
  2. How important are Machine Learning and Deep Learning fundamentals for building real-world AI applications?
  3. What projects would you recommend for someone who wants to become an AI Engineer?

Any advice, personal experiences, or learning resources would be greatly appreciated.

Thanks for reading!


r/learnmachinelearning • • 12h ago

Model size lessons

2 Upvotes

What's the largest model size you've trained?

If you're training very large models (100B-1T+), what was your journey to get there? Can you share learnings on how the skills differ from training smaller models?


r/learnmachinelearning • • 8h ago

🚀 [Open Source] Veltn-Core v1.1.3 – Sovereign AI Inference Engine & Serving Runtime

Thumbnail gallery
1 Upvotes

r/learnmachinelearning • • 9h ago

Title: Random Forest vs. Ant Colony Optimization (ACO) for Feature Selection in Clinical Data

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 9h ago

GitHub - Mauitron/How-to-read-a-model-weights: Parts of my research compiled into a guide.

Thumbnail
github.com
1 Upvotes

Hope this can be of value to you.


r/learnmachinelearning • • 15h ago

Looking to connect with people interested in ML, DL, AI, and Mathematics!

3 Upvotes

Hey everyone!

I'm a 21-year-old Computer Science student interested in Machine Learning, Deep Learning, Mathematics, and AI.

I'd love to connect with people who share these interests, exchange ideas, discuss research, work on projects together, and hopefully build genuine friendships along the way.

You don't have to be an expert. I'm always happy to meet curious people who love learning and exploring new ideas!

Feel free to say hi! :)


r/learnmachinelearning • • 10h ago

Project I trained a 326M language model from scratch on one 3060 Ti

0 Upvotes

i wanted to train a model from random weights on the card i already had. Lyra ended up at 326M params. it took about a week to get through 6.4B tokens on my 8 GB 3060 Ti, then i did a separate instruction-tuning run on about 78k examples.

my dumbest mistake was resuming from the best checkpoint. it only saved when validation improved, so a restart sent me back 20k steps. now i save the latest checkpoint separately and resume from that. i wrote up that bug and the others in the architecture walkthrough.

Lyra itself is still kinda dumb. it can answer a simple question and then make up a date. i built it to learn the whole pipeline and might keep tinkering. the data prep and trainer are open source (Apache 2.0), so you can retrain it. both checkpoints are open weights under CC BY-NC 4.0 for noncommercial use.

base weights · instruct weights · training code on GitHub · architecture walkthrough