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

18 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

💼 Resume/Career Day

2 Upvotes

Welcome to Resume/Career Friday! This weekly thread is dedicated to all things related to job searching, career development, and professional growth.

You can participate by:

  • Sharing your resume for feedback (consider anonymizing personal information)
  • Asking for advice on job applications or interview preparation
  • Discussing career paths and transitions
  • Seeking recommendations for skill development
  • Sharing industry insights or job opportunities

Having dedicated threads helps organize career-related discussions in one place while giving everyone a chance to receive feedback and advice from peers.

Whether you're just starting your career journey, looking to make a change, or hoping to advance in your current field, post your questions and contributions in the comments


r/learnmachinelearning • • 15h ago

Some ML exam problems for a class I sat in

Thumbnail
gallery
340 Upvotes

Continuing the dump going on in the sub. These are the exam problems for ML year 3 kids take in my department. I sat for this class as a grad student. twas fun.


r/learnmachinelearning • • 35m ago

Tutorial I hooked my terminal up to Tinder and trained an AI on my taste in women 💀 Then recorded tutorial

3 Upvotes

In 2021 I trained an image classifier on my own Tinder swipes and let a bot swipe for me. That part I wrote by hand, the old way: Python, TensorFlow, Inception v3. Today thanks to AI I brought the project back to life. Full Tutorial on Youtube


r/learnmachinelearning • • 5h ago

Question Quickest resource to learn pytorch if I already know tensorflow?

5 Upvotes

r/learnmachinelearning • • 6h ago

Help Starting ML from CampusX YT

5 Upvotes

I am starting ML from CampusX youtube channel. Those who have completed it or in the middle of the course can advice me something that would help me, also is there any prerequisites or I can learn them in between as well ?


r/learnmachinelearning • • 4h ago Mindblown

Let every Transformer layer reach states at all depths (Paper + Video)

Post image
3 Upvotes

In a standard Transformer, each layer only reads the KV cache from its own depth. A shallow layer cannot use what deeper layers already computed for earlier tokens. When deep layers need to reach shallow ones, that information also has to pass through the residual stream, which has limited bandwidth.

Our recent work, WhiteMatter: All-to-All Cross-Layer Connections via KV Source Mixing, lets every layer read from every depth. Each layer's keys and values are a learned mix of hidden states from all layers. In addition, we can share KV among reader layers to reduce the KV cache size.

Main results:

- WhiteMatter matches a standard Transformer with 50% more layers

- With half the KV cache (or even less), it still beats matched standard Transformers.

The catch: a token's shallow layers now depend on the deep layers of earlier tokens, so training and prefill cannot process all tokens at once. Unless...

We proposed cyclic iteration, which matches token-by-token quality in 4 parallel passes, compared to 53 for the Jacobi method used in prior works (12.5x faster at matched quality). It's still slower than vanilla prefill, which is the main thing we are working on next. However, decoding has the same speed as standard transformer, or can even be faster because of the reduced GPU memory requirement.

Paper: https://arxiv.org/abs/2608.18486

Video: https://www.youtube.com/watch?v=NCjJzBGdgTU

Code: https://github.com/Cy-47/White-Matter

Strongly recommend watching our video. It should feel much easier to follow than text!


r/learnmachinelearning • • 7h ago

Help I tried to prevent catastrophic forgetting in neural networks, here's what went wrong (I need suggestions)

Post image
5 Upvotes

I've been working on a deep learning research project called Predictive Selective Plasticity (PSP) the original idea was pretty simple, what if a neural network could recognize when learning something new might damage what it had already learned, and adjust its updates before that happened? I thought I could build something around that idea, well things didn't exactly go to plan, I started with a simple MNIST experiment Two tasks, a small MLP, and the usual sequential training setup, I trained it on digits 0 and 1, then moved on to 2 and 3, there was some forgetting, but honestly, not much. It wasn't enough to make an interesting case, so I increased it to five tasks, splitting the ten digits into pairs, that changed things quite a bit, the network started forgetting earlier tasks much more severely on average, Task A lost around 26 percentage points of accuracy, and Task B lost around 31, the later tasks were affected much less, i also noticed that the results varied quite a lot between random seeds, at that point, I wanted to understand what was happening inside the network, not just look at the final accuracy, I started looking at gradient conflict and representation drift, my thinking was that if updates for a new task were conflicting with the gradients of an old task, that might give me some warning that forgetting was coming, but it wasn't that straightforward, there were situations where an old task suffered a huge accuracy drop even when the measured gradient conflict was almost zero, so relying on one gradient measurement clearly wasn't enough, representation drift looked more interesting in some of the experiments, but changing internal representations doesn't necessarily mean the network has forgotten its previous knowledge, I then tried to turn these signals into a forgetting predictor, this was probably one of the more disappointing stages, I tested gradient conflict, representation drift, representation similarity, current loss and accuracy, individually and in combination, I used leave one seed out evaluation

Then comes best model had an AUROC of approximately 0.532 basically, barely better than random ranking, the AUPRC was around 0.169, against a positive event rate of roughly 14.3%, so no, I hadn't built a reliable forgetting predictor, instead of immediately changing everything, I went back and looked more closely at when the forgetting was actually happening, one thing that stood out was the difference between task transitions and updates within a task, in my experiment, 8 out of 18 task boundary transitions had an accuracy drop of at least five percentage points, compared with only 3 out of 120 within task transitions, I then started examining what happened during the actual updates of a new task, the damage wasn't always immediate, on average, old-task probe accuracy had dropped by around 0.23 percentage points after one update, but by around 7.93 points after twenty updates Task C was particularly disruptive to Task A across all three seeds, this made me realize that looking only at the end of an epoch was missing a lot of the story, I tried another early warning experiment, this time predicting whether an old task would lose at least five percentage points by the end of the incoming task's first epoch, some results looked surprisingly good, one combined model reached approximately 0.979 AUROC at the five update checkpoint, I was excited about that result, but then I looked at the sample size again, there were only 30 task transitions and nine forgetting events, with only three seeds, that is nowhere near enough evidence to claim that the predictor generalizes task identity was also a strong signal, so I kept it as an interesting result, not a breakthrough, then came the part I had actually wanted to achieve from the beginning trying to prevent forgetting, I compared the ordinary sequential baseline, EWC, fixed protection and my adaptive PSP approach, and this is where things went wrong, the baseline had mean forgetting of 10.17%, both fixed protection and adaptive PSP also had 10.17%. EWC was around 10.45% my protection mechanism had basically changed nothing, at first I thought something was wrong with the risk calculation, I corrected a numerical threshold issue and ran it again, still the controller wasn't meaningfully reducing updates, so I stopped trying to force the intervention to work and started investigating the risk calculation itself, I separated the parameter update magnitude from Fisher importance and compared the first ten updates with everything that came afterwards, that was probably the most useful thing I found in the final experiment, across all twelve seed and task combinations, the update RMS was lower after the first ten updates, in some cases, it was dramatically lower meanwhile, the stored Fisher importance stayed constant during each incoming task, which was expected because I wasn't updating those memories, the risk estimate depended on both the update magnitude and its importance in the old task parameters, since the update magnitude was shrinking, the estimated risk was shrinking too my threshold had been calibrated using the first ten updates, when updates were much larger, it wasn't representing what was happening during most of the training, that gave me a much better explanation for why the controller wasn't activating, I still can't say exactly why the update magnitudes changed, it could involve Adam's behavior, changing gradients or the batches being processed. I also found a limitation in my implementation I was scaling parameter updates after the Adam step, while Adam's internal optimizer state still reflected the original step, that's something I would need to address before treating this as a proper intervention method

After all these experiments, did I solve catastrophic forgetting? Nope, did I develop a successful PSP mechanism? No not yet, I spent a lot of time trying to make an idea work, and the final intervention produced exactly the result I didn't want: no meaningful improvement over the baseline, but I also don't think the experiments were wasted, I went from simply observing forgetting, to investigating gradients and representations, to testing prediction, looking inside individual training updates, and eventually finding a problem with the way I calibrated my intervention, there is still a lot I haven't tested, I've only used MNIST, one MLP architecture, three seeds and a task incremental setup with separate task heads, I wouldn't claim that these results prove anything about continual learning in general, I wanted to share this because research isn't always a sequence of experiments that work, sometimes you spend weeks building something, run it, realize it hasn't done what you expected, and have to go back through your own results to understand why that's pretty much where my project is right now still not the result I wanted, but at least I understand the failure a little better than I did when I started anyway, I'd love to hear what you guys think, any feedback or suggestions are welcome

Thank you so much for reading this :)


r/learnmachinelearning • • 3h ago

Project I built a local LLM training lab to help people learn how to train models on their own hardware

Thumbnail gallery
2 Upvotes

r/learnmachinelearning • • 23m ago

Advanced Prompt Engineering: Chain-of-Thought, Security, and Scaling Str...

Thumbnail
youtube.com
0 Upvotes

Stop getting generic AI answers. 🛑 Master Chain-of-Thought and defensive prompting to scale your results. Watch the full guide now!
#AI #PromptEngineering #Tech #Programming


r/learnmachinelearning • • 24m ago

Ran serverless ML locally in Module 9 of #mlzoomcamp.

1 Upvotes

✅ Reproduced ONNX preprocessing
✅ Tested the Lambda-compatible handler
✅ Invoked the container locally

My repo: https://github.com/huyyhoangtr-boop/ML_zoomcamp_homework


r/learnmachinelearning • • 52m ago

Class imbalance in players injury prediction

1 Upvotes

So i was working on this project where we try to estimate the probability of the injury in nba players , the issue is the class is imbalanced only 4% of the data have class where player gets injured and 70% of these injuries tend to happen mid game ,
Results f1 on next game injury 0.285
On next 5 games 0.6
Rest of season 0.75
Auc next game 0.7 , next 5 0.75 , rest of season 0.815
I need your opinion on these results and what metrics matter most on this type of problem


r/learnmachinelearning • • 1d ago

Discussion IIT Patna ML midsem paper

Thumbnail
gallery
177 Upvotes

Saw some clgs sharing their ML qn papers so here is iitp's . Avg was 15ish/60 on this paper. So our prof decided to give an easier paper for endsem. Rate or roast this question paper


r/learnmachinelearning • • 1h ago

Help Finance in AI

1 Upvotes

I want to get into learning fine-tuning open-weight models or RAG for the below use case. What’s the best way to start?

“Financial data such as macroeconomics thats infused or supplied to the ai model for deterministic advisory.”

(Any project recs or even workflows would be helpful)


r/learnmachinelearning • • 1h ago

Project I'm building an interactive platform to make Machine Learning easier to understand. Would love your feedback!

Post image
1 Upvotes

Hey everyone!

I've been learning Machine Learning and working on a project called MLinMotion.

One thing I've noticed while studying ML is that understanding an algorithm theoretically and actually understanding how it works are two very different things.

You can read about K-Means, memorize the steps of Gradient Descent, or study how a Decision Tree makes decisions.

But sometimes you still struggle to visualize what's happening behind the mathematics.

That's the problem I'm trying to solve.

I'm building MLinMotion, an interactive learning platform where the idea is to bring together:

- Visual explanations of ML algorithms.

- Mathematical intuition behind concepts.

- Interactive sandboxes to experiment with algorithms.

- Practical code examples connecting theory with implementation.

The goal isn't to create another platform full of video courses.

I want learners to actually interact with algorithms, change parameters, observe what happens, and develop an intuition for how things work.

I'm still building and improving it, and I'd genuinely appreciate feedback from people who are learning or working in Machine Learning.

A few things I'd love to hear your thoughts on:

  1. What's the most difficult part of learning Machine Learning for you?
  2. Would interactive algorithm visualizations make learning easier?
  3. What would you expect from an ideal hands-on ML learning platform?
  4. What features do you think are missing from existing ML learning resources?

Here's the project if you'd like to explore it:

https://mlinmotion.vercel.app/

I'm building this independently, so honest criticism, suggestions, and ideas are very welcome.

Thanks!


r/learnmachinelearning • • 2h ago

When real humans get fair visibility and economic rewards for their authentic creations, people thrive—and AI gets the clean, living data it needs to stay healthy. What do you think? Could a silent "data nutrition" weighting actually solve both the dead internet problem and model collapse?

0 Upvotes

r/learnmachinelearning • • 3h ago

Project I built an interactive open RL course around a tactical hex wargame (EfficientZero V2) + a live in-browser neural net — looking for feedback

0 Upvotes

Hi everyone,

Most Reinforcement Learning tutorials stop at CartPole or GridWorld, so I built Steppe RL Academy — an interactive bilingual (EN/ES) course that teaches RL from scratch up to Model-Based RL using a tactical hex-and-counter wargame (Steppe in Flames, POMDP with Fog of War, 3D Line of Sight, and polyhedral combat) as the running reference.

What's inside (interactive, no login required):

  • Wargame Architecture & Labs (EfficientZero V2): PUCT & MCTS sandbox, Two-Hot distributional value/reward, World Model Dreamer, PCGrad gradient surgery, Symmetric 16/16 Binomial Variance Lab, and XAI Saliency / Counterfactuals.
  • Live Browser Workshop: a real 4 -> 32 -> 3 ReLU MLP trained with mini-batch REINFORCE + Adam in JS (with live softmax probabilities, learning curves, and AI-vs-AI Self-Play) paired with the matching PyTorch script.

I'll drop the direct link in the first comment below so Reddit's spam filter doesn't eat the post. Would love honest feedback from learners and practitioners!


r/learnmachinelearning • • 3h ago

Can we make an AI system that checks whether its own physical reasoning actually makes sense?

Thumbnail
gallery
0 Upvotes

Can we make an AI system that checks whether its own physical reasoning actually makes sense?

I've been working on a small project around an idea that's been interesting me for a while:

Instead of having an AI system simply produce an answer to a physics problem, what if it could examine the physical assumptions behind that answer, identify inconsistencies, and attempt to correct its reasoning?

I'm currently developing an experimental physics reasoning system around this idea.

The project isn't intended to be another physics chatbot or a conventional simulation tool. The broader objective is to build a system that can translate a physical scenario into a structured representation, derive its consequences, validate those consequences, and identify when something doesn't add up.

What I've been working on

I've recently moved into the second milestone of development, focusing on physical grounding and consistency.

The current direction involves:

  • Physical representation: Representing objects, properties, forces, conditions and assumptions in a structured form.
  • Consequence analysis: Deriving what should physically follow from the given conditions.
  • Consistency checking: Identifying contradictions, underdetermined situations and conditions the current model cannot adequately represent.
  • Assumption awareness: Distinguishing between what was explicitly provided, what was inferred, and what would require an additional hypothesis.
  • Self-correction: Exploring a bounded correction loop where the system diagnoses a problem, proposes a correction or requests missing information, and validates the result again.

I'm using symbolic mathematics and numerical simulation as validation mechanisms rather than treating the generated reasoning as automatically correct.

An important distinction I'm trying to establish

For example, suppose a physical scenario provides a force and mass combination that cannot produce a valid finite acceleration under the stated assumptions.

I don't want the system to simply generate an equation, obtain a result, and move on.

I want it to recognise that the problem exists, explain why the current representation cannot support a valid conclusion, and distinguish between a genuine contradiction and insufficient information.

That's the kind of behaviour I'm trying to develop.

Where I am currently

This is still an early-stage prototype. The current experiments are primarily focused on classical mechanics, particularly projectile motion and physical consistency.

There are still limitations in how certain conditions are represented. For example, non-uniform gravity requires a spatially varying model, and air resistance requires an actual drag model and parameters. Simply accepting those conditions as inputs doesn't mean the system understands their consequences.

I'm deliberately trying to establish a reliable reasoning foundation before expanding into more complicated physics or introducing heavier AI/ML components.

I'd genuinely appreciate some technical perspectives.

There are a few things I'd particularly like to hear opinions on:

  1. Physical reasoning: What are some important edge cases or physical inconsistencies that you think such a system should be able to identify?
  2. Validation: Is combining symbolic verification with numerical simulation a reasonable foundation for testing physical reasoning? What am I potentially overlooking?
  3. Self-correction: How would you distinguish a system genuinely correcting its reasoning from one simply changing assumptions until it obtains a valid result?
  4. Architecture: Are there existing approaches, research papers or projects I should study that tackle similar problems?

I'm not claiming to have solved any of these problems. I'm trying to understand where my current approach is strong, where it's fundamentally limited, and what I might be overlooking.

If you work in physics, scientific computing, AI/ML or mathematical modelling, I'd particularly appreciate your perspective.

I'm also interested in criticism of the underlying idea itself, not just suggestions for implementation.

Thanks!


r/learnmachinelearning • • 4h ago

From Welding Data to AI Agents: How? 🤔

0 Upvotes

Hi Reddit 👋 I'm Ramesh. I started out applying neural networks to welding and machining data during my PhD and research days. Today I train IT teams to build with Generative AI and Agentic AI, using tools like Claude, ChatGPT, LangGraph, CrewAI and MCP.

One thing I keep seeing is that many teams say "we use ChatGPT sometimes" and call it an AI strategy. It isn't one.

Each week I'll share practical AI ideas here, and on weekends I'll post AI job tips covering GenAI, agentic AI, AI engineering and forward deployed engineering roles.

What's the biggest thing stopping your team from using AI beyond chat? Happy to answer questions in the comments.


r/learnmachinelearning • • 11h ago

what career field to choose data analyst or Ai engineering for 2027 and coming years?

3 Upvotes

hello everyone, i'm 24 now and got messed up about what to choose for my career. i have graduated with a bachelors degree in mathematics and it's been 2 years gap . what should i go for as a newbie in this field , should i choose data analytics or ai engineering as i don't have any knowledge about both. what courses , resources, projects should i go for , i know experienced guys like you would probably help


r/learnmachinelearning • • 5h ago

Advice on the right AI

1 Upvotes

My manager at my new job gave me the task to create a comparative analysis for all the AI's available - to see which one is good - the cost, the model, the chatbot based on out companies work - as they want to use that analysis to later buy an AI platform for the company. It is a big company.

How should I go about it ? I am reading about it, but just want to know how can I make it easier.


r/learnmachinelearning • • 6h ago

modern route full stack generativeai and agentic ai bootcamp Krish naik

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 6h ago

modern route full stack generativeai and agentic ai bootcamp Krish naik

1 Upvotes

Does anyone have this course. I have complete maths, machine learning and Deep learning now I want to learn generative ai,llm,and supervised fine tuning


r/learnmachinelearning • • 6h ago

Tutorial A Unicode preprocessing bug in a Kokoro port: nasal vowels vanished before inference

1 Upvotes

I help maintain speech-swift, which runs speech models in Swift. We recently fixed an input-tokenization bug in its Core ML port of Kokoro, the text-to-speech model.

Swift iterates a string by Character, which is an extended grapheme cluster. Kokoro has separate vocabulary entries for a vowel such as ɔ and its combining nasal tilde, U+0303. In bɔ̃bɔ̃, Swift sees four characters. Looking up each character as a single vocabulary entry dropped both vowel-plus-tilde groups, leaving only the two b tokens.

This small example reproduces the issue and the lookup strategy we use now. It runs with the Swift standard library; no model download is needed:

let vocab: [String: Int] = ["b": 44, "ɔ": 76, "\u{0303}": 17, "ç": 78]
let phonemes = "bɔ\u{0303}bɔ\u{0303}"

func tokenIDs(_ text: String) -> [Int] {
    text.flatMap { character -> [Int] in
        let symbol = String(character)
        if let id = vocab[symbol] { return [id] }
        let scalars = symbol.unicodeScalars
        let ids = scalars.compactMap { vocab[String($0)] }
        return scalars.count > 1 && ids.count == scalars.count ? ids : []
    }
}

print(phonemes.compactMap { vocab[String($0)] })
// [44, 44]
print(tokenIDs(phonemes))
// [44, 76, 17, 44, 76, 17]

Trying the full symbol first matters too: Swift's string dictionary treats ç and c\u{0327} as canonically equivalent. If that lookup fails, we split the cluster only when every scalar has a vocabulary entry. That preserves the nasal vowel without keeping half of an unsupported symbol.

Our regression tests cover nasal vowels, canonical equivalence and unsupported combining marks. The change is on the library's main branch; the v0.0.30 release predates it. This example checks token IDs, rather than measuring generated speech quality.

Tokenizer source · Regression tests

When validating a model port, how do you check that its preprocessing emits the same token IDs as the reference?