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 • • 1h ago

Question 🧠 ELI5 Wednesday

1 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 • • 5h ago

Help Completed Andrew Ng's ML Course 1, but I don't feel confident about implementing anything independently. Need some guidance.

9 Upvotes

Hey everyone!

I'm currently pursuing an Integrated MSc in Mathematics, and my long-term goal is to become a Machine Learning Engineer.

I've been learning ML for a while now, and I wanted to get some advice from people who are more experienced in this field.

Here's where I currently stand.

What I've learned so far:

I've covered the basics of Python for Data Science, including:

  • NumPy
  • Pandas
  • Matplotlib
  • Seaborn

I learned these through the Udemy course Python for Machine Learning & Data Science Masterclass by Jose Portilla.

After that, I started Andrew Ng's Machine Learning Specialization on Coursera. I've successfully completed Course 1 out of 3 (Supervised Machine Learning: Regression and Classification).

The topics I've covered include Linear Regression, Multiple Linear Regression, Gradient Descent, Vectorization, Feature Scaling, Feature Engineering, Polynomial Regression, Logistic Regression, Cost Functions, Regularization and Overfitting.

I really enjoyed Andrew Ng's explanations. The mathematical intuition and theory were interesting, and I feel like I have a reasonable understanding of the concepts.

But here's where I'm struggling.

Despite completing Course 1, I don't feel confident about implementing these algorithms independently.

The course has programming assignments and optional labs where we're expected to go through the provided Jupyter notebooks, understand the existing code, fill in missing sections and execute everything.

I find this somewhat difficult because the way I learned Python and NumPy is quite different from the coding style used in those notebooks.

Sometimes I understand what the algorithm is doing mathematically, but translating that understanding into actual code is where I get stuck.

I haven't really tried implementing an entire ML algorithm from scratch independently yet.

And honestly, I don't want to keep completing courses without being able to implement what I've learned.

Here's the approach I'm planning to follow.

After discussing this with a few AI tools and considering different suggestions, I've decided to postpone Course 2 temporarily and properly revisit Course 1.

My current plan is:

  1. Rewatch the lectures and understand the theory, mathematics and intuition behind each topic.
  2. Understand how and why each algorithm works, rather than memorising formulas.
  3. Try implementing the algorithms independently using NumPy, writing the code myself instead of copying existing implementations.
  4. Once I've implemented them using NumPy, learn the corresponding scikit-learn implementation.
  5. Compare the results from my NumPy implementation with scikit-learn and investigate any differences.

For example, I'll implement Linear Regression, including its cost function and gradient descent, using NumPy first. Then I'll perform the same task using scikit-learn and compare the results.

My thinking is that if I can independently implement an algorithm and understand why both implementations produce their respective results, I'll have a much better understanding of what I've learned.

My December plan (December 1–21):

I have these three weeks available, and I want to use them to:

  • Revise all the topics from Andrew Ng's Course 1.
  • Strengthen my understanding of the mathematics and theory.
  • Implement the algorithms independently using NumPy.
  • Learn scikit-learn and compare implementations.
  • Revise NumPy, Pandas, Matplotlib and Seaborn.
  • Build 1–2 small projects to apply what I've learned.

I haven't learned scikit-learn yet. The Udemy course I mentioned earlier has dedicated lectures on scikit-learn and ML implementations.

For those familiar with that course, are its scikit-learn lectures sufficient for a beginner? If not, please suggest some good FREE, preferably YouTube-based resources to learn scikit-learn.

A few questions I'd really appreciate your opinions on:

  1. Is my NumPy → scikit-learn → comparison approach actually a good way to learn ML?
  2. Is implementing algorithms from scratch really necessary for someone aiming to become an ML Engineer?
  3. How do you approach learning a new ML algorithm? Do you first understand the theory and then code, or follow an implementation alongside a tutorial?
  4. How much mathematics should I understand before moving towards practical implementation?
  5. What are some good free resources (preferably video-based) to understand ML implementations in depth?
  6. What should I learn after completing Andrew Ng's Machine Learning Specialization?
  7. When should I start building projects, and what kind of projects would genuinely demonstrate my understanding?
  8. How important are GitHub projects, internships, open-source contributions and Kaggle competitions when applying for ML Engineer roles?
  9. What skills, apart from ML algorithms, should I gradually develop to become a good ML Engineer?
  10. What does an actual day-to-day job of a Machine Learning Engineer involve? How different is it from what we learn in courses?
  11. What mistakes should beginners avoid when learning ML?
  12. If you were starting your ML journey again today, what would your learning roadmap look like?

I'd especially love to hear from people currently working as Machine Learning Engineers. I want to understand what skills actually matter in the industry and how I should prepare myself from the beginning.

I'm not looking for shortcuts or a quick roadmap to get a job. I genuinely want to develop a strong foundation and become good at implementing, understanding and eventually building ML systems.

Any honest feedback, criticism, resource recommendations or personal experiences would be really helpful.

Thanks!


r/learnmachinelearning • • 5h ago

Completed CampusX ML course but still confused about how to actually build projects

5 Upvotes

Hey guys,

I'm a 3rd-year CSE (AI/ML) student. I've completed CampusX's 100 Days of ML course and learned quite a few things like Pandas, NumPy, EDA, preprocessing, feature engineering and ML algorithms.

But honestly, I still feel confused when it comes to building a project on my own.

When I follow a tutorial, I understand what's happening, but if someone gives me a real problem and asks me to build an ML solution, I don't know where to start or what steps to follow.

For example, how do you decide which features to use, what analysis to perform, which model to try, and what to do next? Basically, how do you approach a project without depending on tutorials at every step?

I also tried building a project earlier but got overwhelmed and couldn't figure out how to proceed independently.

I'm currently at my village for vacation and don't have access to my laptop. I'll be back in my hostel in 3 days, so I want to make a proper plan before starting again.

People who have already crossed this stage, how did you learn to build projects independently? Did you start with small projects, follow tutorials, or just pick a problem and figure things out along the way?

I don't want to just add projects to my resume. I actually want to develop the thinking and problem-solving skills required to work as an ML engineer.

Any genuine advice would be really helpful. Thanks!


r/learnmachinelearning • • 6h ago

building my own LLM from 0

5 Upvotes

i've started around a month ago and i've done a little bit here and there, but usually i'm just scraping a little bit specific every now and then.. because I just want this to be my very own thing that i create and not just a fine-tuning, like a lot of other people have said that I should do but no,

i just want to learn while i do this (and i have learned quite a lot) in the future when i will have more data and more valuable structure i will simply use Kaggle to train it in separate steps.

(and yes, i'm using AI to build this as well because frankly i don't really know how to do such a complex thing)


r/learnmachinelearning • • 2h ago

Project I asked Codex to compare three learning rates. Here’s what I pinned down before it ran

2 Upvotes

I asked Codex to compare 3e-4, 6e-4 and 1e-3 on nanoGPT’s shakespeare_char dataset with the same compute budget.

Codex settles a lot of things my prompts leave open, and I usually found out in the diff. I built an open-source plugin called MarginCue for that. As you write your prompt in Codex CLI, a card under the prompt shows how the agent will read the request, names you wrote that the repo doesn't have (with the closest ones it does) and a control for each open choice.

Enter sends the prompt with the entire plan containing every choice (kept or changed). The table in the clip is the report I’m asking for. The clip ends when I send the prompt.

Code (MIT): https://github.com/fus3r/margincue


r/learnmachinelearning • • 7h ago

Why do attention weights get multiplied by the value matrix in Transformers?

5 Upvotes

Hi, I’ve decided to finally learn how the attention mechanism works by building a very simple Transformer in NumPy.

I have a question that may come from gaps in my linear algebra understanding. I understand that softmax(Q @ K.T / sqrt(d_k)) produces attention weights, but I do not understand why we then multiply those weights by V.

More specifically, I understand what the softmax output represents, but I cannot build an intuition for the meaning of the resulting matrix after multiplying it by the value matrix. Could someone help me understand this?


r/learnmachinelearning • • 3h ago

metric-diff: find out why sklearn, torchmetrics, Keras and others give different numbers for the same metric

2 Upvotes

I kept running into the same problem: the same predictions give a different F1, AUROC or Dice depending on which library computes it, and it's slow to work out whether that's a default, a bug, or my own mistake. So I built a tool that compares them and explains the difference.

metric-diff computes the metric with scikit-learn, torchmetrics, torcheval, Keras 3, Hugging Face evaluate and MONAI (plus sacrebleu, nltk, rouge-score and trec_eval for text and ranking). When they disagree, it finds the setting responsible, re-runs every library with that setting aligned to confirm it, and tells you how to fix your code.

Some things it turned up on real model predictions:

  • DistilBERT on SST-2: Keras F1Score() gives 0.675 instead of 0.914, because it has no threshold by default.
  • SegFormer on ADE20K: the same masks give Dice 0.284, 0.388 or 0.538 depending on whether you pool pixels, average per image, or use MONAI's ignore_empty=True default.
  • Retrieval: with tied scores, MAP is 0.506 in sklearn, 0.585 in trec_eval and 0.678 in torchmetrics, and torchmetrics' value changes by platform (0.585 on Linux, 0.706 on macOS).
  • BLEU: 39.2 vs 32.9 on the same text, from tokenisation alone.
  • Large logits: torchmetrics AUROC drops to 0.5 when float32 sigmoid saturates them, while sklearn ranks the raw scores (a known open issue, torchmetrics#2819).

It also checks whether a metric logged per batch equals the dataset metric, and there are pytest assertions (assert_metrics_agree) so a library upgrade or a changed default fails CI instead of silently changing a results table.

While building it I reported three issues upstream (torchmetrics, torcheval and Keras); one already has a docs PR.

pip install "metric-diff[all]"

GitHub: https://github.com/DadCoder001/metric-diff

User guide (organised by symptom): https://github.com/DadCoder001/metric-diff/blob/main/docs/USER_GUIDE.md

It's an alpha. The thing I'd most like to hear: if you run it on your own eval and it says "no known cause", please open an issue. Those become new detectors.


r/learnmachinelearning • • 40m ago

Project Built a feed of new ML/AI projects where you can see why each one scored well, down to the code lines

Post image
1 Upvotes

Personally, when I was learning, my problem wasn't finding repos, but it was finding good ones to learn from that weren't just the top of GitHub trending.

That aspired me to create AI-Atlas which has a feature called The Latest Work (getaiatlas.com/latest). It is a wall of AI projects people shipped recently, each scored by an AI judge that reads the code.

Open a project and you see:

  • its score on each rubric part (technical depth, conceptual difficulty, completeness, reproducibility, educational value…);
  • the lines of code the judge pointed to;
  • its tests level by level: exist / can run as committed / CI runs them. So it never claims tests pass, because it reads code and never runs it.

It's been a good way to find well-built implementations: from-scratch transformers, parallelism, data pipelines, agents. And if you're building your own projects, you can map your GitHub for free. You get a roadmap for the project that can improve the most, and your best work can show up on the wall.

Honest caveat: an LLM judge has variance. If you think something is scored wrong, tell me why. That feedback has already fixed whole blind spots :)


r/learnmachinelearning • • 11h ago

**Looking for Machine Learning study partners**

6 Upvotes

I'm starting an in-depth ML learning journey, focusing on mathematics, algorithm intuition, implementations from scratch and practical projects.

Anyone with similar goals interested in learning together, discussing concepts and sharing progress?

Feel free to comment or DM me.


r/learnmachinelearning • • 1h ago

What AI tool has genuinely improved your daily workflow

1 Upvotes

I’m exploring the best AI tools for productivity and coding. What free AI tools do you use regularly, and which ones are actually worth trying?


r/learnmachinelearning • • 1h ago

Lossless compression of LLM weights below their per-tensor entropy: Qwen3.8-27B BF16 at 10.43 bits/weight, bit-identical (open codec + paper)

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 3h ago

Project Turned PowerPoint into a local AI annotation tool for custom YOLO/COCO datasets

Post image
1 Upvotes

When building custom computer vision models (like YOLO), the hardest part for me wasn't the training code—it was setting up labeling tools and teaching non-tech teammates how to use CVAT or LabelImg just to annotate a few dozen images.

Everyone already knows how to use PowerPoint, so I built a local Windows app (OpenURLs App, Python + python-pptx) that turns slides into an annotation canvas:

  • Drop images into a deck (1 image per slide), draw standard rectangles or rotated shapes, and type the class label inside.
  • It reads the PPTX XML / EMU geometry and calculates exact pixel coordinates—handling image cropping, flipping, rotation, and EXIF orientation automatically.
  • Exports YOLO (.txt + data.yaml), YOLO-OBB (oriented bounding boxes), COCO (.json), classification folders, and cropped object patches 100% locally with zero cloud uploads.

For those of you training custom models: What's been your biggest bottleneck in dataset prep, and would a zero-setup workflow like PowerPoint actually make sense for quick experiments or delegating labeling to domain experts?

(Happy to share more details on the coordinate math or a link to try it if anyone is interested!)


r/learnmachinelearning • • 4h ago

Help My coreference model is stuck at 90% on Czech, but the labels are ~98% clean. Where's the missing 8%?

1 Upvotes

hey guys, im trying to make a custom head that groups the words in a text that refer to the same entity (coreference). every mention picks ONE earlier mention, or "none" if it is a new thing.

ive been trying for a day and cant get past about 90 % right picks. could you please look at the architecture?

this is the whole thing: load the dataset, add the head, train on everything twice, test.

# Czech coreference as a CHOICE: every mention picks ONE earlier mention, or "none" (= a new thing).
# mmBERT-base (all of it trains) + a tiny head, 2 passes over the training data.     pip install torch transformers datasets
import random, torch, torch.nn as nn, torch.nn.functional as F
from datasets import load_dataset
from transformers import AutoModel, AutoTokenizer

dev = "cuda" if torch.cuda.is_available() else "mps"
random.seed(0); torch.manual_seed(0)
tok = AutoTokenizer.from_pretrained("jhu-clsp/mmBERT-base")
bert = AutoModel.from_pretrained("jhu-clsp/mmBERT-base").to(dev)
head = nn.Sequential(nn.Linear(3 * 768, 256), nn.ReLU(), nn.Linear(256, 1)).to(dev)
data = load_dataset("lattice-nlp/corefud-1-4").filter(lambda lang: lang == "cs", input_columns="language")   # CorefUD 1.4, the Czech part

def prep(doc):
    """-> tokens, the token of every mention's head word (in text order), the entity id of every mention"""
    enc = tok(doc["text"], return_offsets_mapping=True, return_tensors="pt")
    off = enc.pop("offset_mapping")[0].tolist(); end = max(e for s, e in off)
    m = sorted((m["head_onset"], max(i for i, (s, e) in enumerate(off) if e > s and s < m["head_offset"]), m["COREF"])
               for m in doc["mentions"] if m["type"] == "entity" and m["head_offset"] <= end)
    return enc.to(dev), torch.tensor([t for _, t, _ in m], device=dev), torch.tensor([g for _, _, g in m], device=dev)

def scores(enc, t):
    """-> table (n, n + 1). one row per mention. column 0 = "none", column j + 1 = "the same thing as mention j" """
    v = bert(**enc).last_hidden_state[0][t]; n = len(t)                       # one vector per mention
    A, B = v[:, None].expand(n, n, -1), v[None].expand(n, n, -1)
    pair = head(torch.cat([A, B, A * B], dim=2)).squeeze(2)                   # the score of "mention i is the same thing as mention j"
    pair = pair.masked_fill(~torch.ones(n, n, dtype=torch.bool, device=dev).tril(-1), float("-inf"))   # only EARLIER mentions can be picked
    return torch.cat([torch.zeros(n, 1, device=dev), pair], dim=1)            # "none" always has the score 0

def right(g):
    """True where an option is a right answer: every earlier mention of the same entity, or "none" when there is no such mention"""
    same = (g[:, None] == g[None, :]).tril(-1)
    return torch.cat([~same.any(dim=1, keepdim=True), same], dim=1)

def test():
    """the dev documents, which the model never trains on -> share of mentions whose top pick is right"""
    bert.eval(); hit = total = 0
    with torch.no_grad():
        for doc in data["dev"]:
            enc, t, g = prep(doc)
            if len(t) > 1:
                hit += right(g)[torch.arange(len(t)), scores(enc, t).argmax(dim=1)].sum().item(); total += len(t)
    bert.train()
    return f"right picks on {total:,} unseen mentions: {hit / total:.2%}"

EPOCHS, N = 2, len(data["train"])                            # 1 step = 1 document. 5,679 documents, seen twice
opt = torch.optim.AdamW([{"params": head.parameters(), "lr": 1e-4}, {"params": bert.parameters(), "lr": 2e-5}], fused=True)
sched = torch.optim.lr_scheduler.LinearLR(opt, 1.0, 0.0, EPOCHS * N)          # both learning rates fall in a straight line to 0
bert.train()
for step, i in enumerate([i for _ in range(EPOCHS) for i in random.sample(range(N), N)], 1):
    enc, t, g = prep(data["train"][i])
    if len(t) > 1:
        logp = F.log_softmax(scores(enc, t), dim=1)
        loss = -torch.logsumexp(logp.masked_fill(~right(g), float("-inf")), dim=1).mean()   # minus log of the probability that sits on the right options
        opt.zero_grad(); loss.backward(); opt.step()
    sched.step()
    if step % 100 == 0:
        print(f"step {step} of {EPOCHS * N} | loss {loss.item():.3f}", flush=True)
        if dev == "mps": torch.mps.empty_cache()             # hands unused GPU memory back (Apple only)
    if step % N == 0: print(f"epoch {step // N} done | " + test(), flush=True)

on my mac mini (M4 pro, 24 GB) it takes about 38 minutes and prints 88.4 % after epoch 1 and 89.7 % after epoch 2.

im vibe coding most of this, so please let me know if i overlooked something critical. what i found so far:

  • a gentle LR for the head (1e-4, not 1e-3) keeps its neurons alive, but the score stays the same
  • the head doesnt really matter. wider, deeper, a transformer block inside it: same score
  • a bigger base barely helps, which is puzzling. XLM-RoBERTa-large with 4 epochs gets 90.75 %, and EuroBERT-610m is far worse (it never saw czech)
  • a 3rd epoch gives nothing
  • when both models are wrong, they pick the very same wrong option 80 % of the time

the dataset is public (CorefUD 1.4, the czech part), so this is perfectly reproducible. and the labels look about 98 % right, according to a blind check i ran with opus on the wrong picks.

could you guys help me reach 98 % on this dataset? thanks!


r/learnmachinelearning • • 4h ago

Advice for reinforcement learning

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 4h ago

Looking for teammates for LLM Post-Training Competition

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 8h ago

Question How much to study

2 Upvotes

Hey everyone

I recently started learning Machine Learning and want to know how much I should study before applying for ML internships.

So far, I've completed Python and the mathematics required for ML. Statistics is still left.

I have a few questions:

What ML topics should I cover to become internship-ready?

Which algorithms and concepts should I know thoroughly?

How many projects should I build to make my resume stand out?

What additional skills (SQL, Git, etc.) are important?

At what point should I start applying?

My goal is to build enough knowledge and skills to get shortlisted for interviews without spending months learning unnecessary theory.

I'd appreciate advice from people who have landed ML internships or have experience in this field


r/learnmachinelearning • • 5h ago

Help AI Pace in learning makes it difficult for me to adjust.

1 Upvotes

Hello everyone. So here is my problem.

I graduated from a university Computer Engineering and now I do my Masters on Big Data and AI. The thing is that I find the course material really troubling.

For some reasons the professors in the current uni are to AI-pro, that said, they want us to do stuff with AI but for compensation have doubled the assignment material. I find the terms and knowledge they give me too chaotic, especially separating terms on my own in Computer Vision and ML/DNN. I cannot physically catch up to the course material if the difficulty accelerates week after week and have even more assignments to catch up.

I am not against AI. I understand that it accelerates work, but not learning(for me at least). I want to start something from 0 to fully grasp the idea.

Now why I write all this? I want your opinion on how to tackle it. One solution is to do and try assignments as much as I can solo and fill the gaps with AI, BUT (because I really want to understand everything) do later online courses and read docs on the specifics.

If you have a better idea, please tell me. Feel free to engage to the post.


r/learnmachinelearning • • 9h ago

Help Possible road from supply chain intern to ai/ml engineer

2 Upvotes

I know basic pyhton, intermediate sql for now, got a scm internship, the question is i want to go from here to ai/ml engineer, i have a cs degree

i'm cant find discussion related to this

claude ssuggestions

- scm intern >> supply chain analyst >> inventory/demand forecasting planner >> ai/ml engineer

i want to ask if this route is viable and if there is any other route


r/learnmachinelearning • • 6h ago

Campusx LLMOps Notes

1 Upvotes

I am a student and if anyone have the campusx LLmops notes that would be really helpful ready to pay also !!


r/learnmachinelearning • • 6h ago

Free AI learning resources from Microsoft for beginners

1 Upvotes

For anyone looking to start learning AI, Microsoft has a dedicated learning hub covering artificial intelligence, generative AI and practical applications.

It could be a useful starting point before investing in paid courses.

https://learn.microsoft.com/ai/?wt.mc_id=studentamb_693885

Disclosure: The link contains my Microsoft Student Ambassadors registration tracking ID.

What other free AI learning resources would you recommend for beginners?


r/learnmachinelearning • • 2h ago

Help How can I tell which part of the mouth someone is brushing from a phone camera?

0 Upvotes

I built an AR toothbrushing prototype. Right now, the brushing area is selected manually because I haven’t found a reliable way to detect it from the camera feed. The attached clip shows how it works today.

I’d like to detect the general area being brushed in real time. Even distinguishing left, front, and right would be a good start. The toothbrush moves quickly, the hand covers much of the handle, and the brush head often disappears behind the lips.

Has anyone tackled a similar tracking problem? Would you start by tracking the visible part of the toothbrush relative to the face, or by estimating the brushing area from hand and face landmarks? I’m curious what held up in practice when the brush head was out of view.


r/learnmachinelearning • • 6h ago

Alternative Approaches to Symbolic Regularization of Neural Training

Thumbnail
youtube.com
0 Upvotes

r/learnmachinelearning • • 6h ago

Looking for Real-World ANN (Artificial Neural Network) Project Ideas

Thumbnail reddit.com
1 Upvotes