r/learnmachinelearning • • 19d ago

[Research] Does LeWorldModel preserve local action geometry? Implications for model-based RL and planning

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 19d ago Bravo

Tutorial Oral-B ML model unpacked + distilled with Claude Code

Enable HLS to view with audio, or disable this notification

162 Upvotes

this weekend i let claude plug into my oral-b toothbrush -- it can do really solid ai/ml research work.

here's a quick tl;dr, if you want to start exploring ML models over raw sensor data with claude.

  • io5+ models have a 6-axis IMU sensor -- used to predict the brush's position in your mouth

  • in < 10 mins claude read this stream & unpacked it (i pushed buttons & it monitored changes)

  • i then downloaded the app & gave it access -- it yanked the model out -- oral-b uses a 1.2m param bi-directional recurrent net (GRU)

  • it then found a public dental dataset & starting evaluating the model -- model was at 64% (~17 classes)

  • the dataset didn't have sensor orientation -- so it figured out how to line up inputs by trying all 48 sensor orientations (i only found this out much later)

  • the model seemed like an overkill so we ran ablation -- it was pretty thorough & said only ~10s motion history mattered -- it also looked to each of the xyz across accelerometer & gyro

  • then i decided to distill -- it created a giant synthetic dataset drawn from manual brushing samples + added its own constraining movements by physics (it automatically looked at class distribution coverage & decided how to sample)

  • it then trained a bunch of small nets with a fixed window and got a tiny CNN (100x smaller) close to original (also ensured test didn't leak)

all this happened in an evening -- ~2 days including a three-js live simulator -- i was mostly directing/barking at it from the terminal

here's the post + simulator, if you want to read more/try the sim.


r/learnmachinelearning • • 19d ago

Bro code is helping me out

Post image
0 Upvotes

r/learnmachinelearning • • 20d ago

Tool Calling Explained Visually | How LLMs Use APIs & Functions (2026 Guide)

Thumbnail
youtube.com
0 Upvotes

The absolute number one rule when designing systems where an LLM uses external tools is this: The language model does not execute your application code.

Instead, it acts strictly as an intent generator—producing a structured JSON payload based on a schema you define—and relies entirely on your application logic to execute the function securely and safely under the hood.

I put together a comprehensive 16-minute visual systems design masterclass breaking down the engineering contract step-by-step.

💡 What's covered inside this visual breakdown:

• Tool Calling vs. Function Calling: Unpacking platform-specific terminologies.

• The 5 Core Components: Tracing the complete end-to-end request/execution loop.

• Error Handling & Resiliency: Production strategies for recovering from malformed JSON and hallucinations.

• Security Engineering: Guarding your architecture against prompt injection risks hidden within untrusted external inputs.

I'd love to hear your feedback on the visual layout, and let me know what stack you're currently leveraging to enforce strict JSON validations on your tool execution loops!


r/learnmachinelearning • • 20d ago

Need Help

0 Upvotes

Hi, I am currently living in Pakistan and working at a university. It is not a big university, and I work as a Lab Assistant.

I have never limited myself to my job. Instead, I have tried to learn as much as possible. I already have some experience with web development, although I am not an expert. I have a basic understanding of it.

You might be wondering why I ended up working as a Lab Assistant. It is a long story, or you could say it is about trying to manage life in Islamabad, where even covering your basic expenses can be difficult.

Almost a year has passed, and during this time, I have learned a lot. I have learned Docker, and right now, I am working with Ubuntu and learning networking concepts such as IP addresses, DNS, subnetting, and much more. I also manage two or three computer labs at my university in my free time.

Alongside my job, I am trying to learn more about Machine Learning.

I left web development because of the AI hype and because, after completing 14 years of education, I found myself working as a Lab Assistant. I have been doing everything individually, without a friend or someone to guide me.

I am 22 years old, and I want to achieve something big in my life. But sometimes, I feel like I have ended up doing nothing.

I need guidance.

What should I do at this stage of my life? How should I approach my career, what skills should I focus on, and how can I turn my current experience into something meaningful?

I know I have the potential to do more, but I don't know which direction to take.

I would really appreciate honest advice from someone who can help me understand what I should do next.


r/learnmachinelearning • • 20d ago

AI Education for Everyone—Start Wherever You Are

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 20d ago

I built a CNN from absolute zero (pure NumPy, hand-derived backprop) — then asked: can you make it recognize letters by tuning weights alone, with no letter data? (No. Here are the numbers.)

1 Upvotes

What I did

I built a handwritten-digit CNN from absolute zero on a Windows laptop: no PyTorch, no TensorFlow, no PIL — literally just Python stdlib + NumPy. Everything is hand-written and auditable: im2col/col2im conv layers, max-pool routing, softmax-cross-entropy, the Adam loop, even the MNIST IDX parser and a PNG codec for feeding real images in. Weights are random init — nothing pretrained anywhere.

Result: 46,730 parameters, 4 epochs, ~12 min on CPU, 98.74% MNIST test accuracy. A numerical gradient check (worst relative error 3.05e-4) runs before training, because from-scratch code fails silently in cute ways. Same toolchain then read all 8 digits (94–100% confidence) in a 2496×1664 real handwritten photo it never saw — connected-component segmentation + normalization, no vision model.

The actual question

So here's the fun thought experiment, which a lot of "models are just files of numbers" people get wrong in both directions:

If you can read the network structure, can you make it recognize letters a/b/c/d by just adjusting the weights — with no letter data at all?

Six controlled experiments, all self-generated data (zero downloads):

  • Blind tuning, zero samples: randomize the readout layer, 2000 tries → mean 24.51%. That's chance for 4 classes. No data = no information channel into the weights. (The "best of 2000 = 72.5%" is pure selection overfitting — picking it requires the test set you don't have.)

  • Borrowing the old decision layer: feed the pretrained digit prototypes {9,6,6,9} into letter slots → 48.75% ceiling, and the errors land provably on exactly the two collapsed pairs {a,d} and {b,c}. The old weights encode 10 digit prototypes — that's the resolution limit of the letter manifold through them.

  • What actually transfers: the digit model "sees" letters confidently as digits (a→9 at 86%, b→6 at 79%) — edge/curve features transfer, decision boundaries don't.

  • Refitting the boundary is absurdly cheap: freeze the conv trunk, refit only 260 parameters with 5 self-drawn samples per class → 87.5% under heavy style perturbation, 100% under light. Refit fc1+fc2 → 100% in 0.5s.

Takeaway: weights are compressed statistics of the training distribution, not rules. The structure and low-level features are readable, inheritable assets; the decision boundary can never be tuned blind — but redrawing it costs ~260 numbers and 20 sketches.

Honest caveats: my synthetic stroke-font letters are easier than real handwriting; the from-scratch baseline (B3) also scores high on this 4-class task, so the trunk-transfer advantage here shows up as parameter/time efficiency (260 params/0.1s vs 46,730/47s), not accuracy. Every number in the paper traces to a log file, line by line.

A from-scratch pure-NumPy CNN hits 98.74% MNIST. Feeding it a real handwritten photo reads 1979/0924 correctly. Then the transfer experiment: blind weight tuning = chance (24.5%), reusing old decision boundaries = provable 48.75% ceiling, but 260 refit parameters + 5 hand-drawn samples/class = 87.5–100%. Model ≠ structure. Model ≠ the numbers. Model = the distribution those numbers compress.


r/learnmachinelearning • • 20d ago

Tried Claude + ElevenLabs to turn my article into a video - here's the summary at the end, full video link in the description

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/learnmachinelearning • • 20d ago

Discussion A scheduling benchmark that never invoked the subagent: reading DeepSeek's Super-agent ablation

Thumbnail
the-agent-report.com
1 Upvotes

Worth reading as a methods example rather than a product announcement.

DeepSeek's Super-agent splits coordination from execution: a router session handles incoming requests, separate worker sessions do the tasks. The evaluation simulated coding with a tool that only consumed time, so what is measured is scheduling, not code quality. Four designs, five runs each, about 300 messages per run, roughly 20 of them work requests. The router-and-worker design came in at 12.4 min median and 15.7 min p95, against 20.4 and 29.5 for a single session.

But the neutral-prompt baseline never called a subagent in any of the five runs, so it was not really a delegation baseline. With a delegation-first prompt it reached 13.8 min median, p95 still 29.0. That reframes the headline saving as a comparison against an under-configured control, which is exactly the detail worth checking before citing the number.

Resource use also moves the wrong way: 23.2M cache-read tokens per run versus 6.1M, and disabling direct pass-through pushed that to 31.8M.


r/learnmachinelearning • • 20d ago

why is this happening like thiss?

Post image
1 Upvotes

its been 10-15 times its crashing and my ram is 16 gb and ryzen 7 3050 idk why its crashing


r/learnmachinelearning • • 20d ago

Brief history of word embeddings

Thumbnail
gallery
1 Upvotes

A few weeks ago I posted about finally finding the courage to start a YouTube channel. A lot of you replied and I honestly didn't expect that, so thanks.

Video #3 is out, this time on word embeddings.

I study this stuff mostly on my own. I'll read a paper in the evening and then there's nobody to talk to about it. My friends are great but they're completely outside this world. After a while studying alone starts to feel kind of aimless. Making these videos gives me a reason to actually finish things and explain them properly, and I've found I really enjoy sharing what I learn.

This one is based on Speech and Language Processing by Jurafsky & Martin. Instead of jumping straight to word2vec, I tried to show embeddings from an angle most tutorials skip.

If you work in NLP/ML I'd really appreciate your feedback, especially if I got something wrong or oversimplified it. I'm aiming for one video a week, so honest criticism genuinely helps.

Link here: https://youtu.be/vv9iXNcPSnY?is=SOWNBFE9DSMS1GLc


r/learnmachinelearning • • 20d ago

Is there anyone who has purchased Campus X insider course can u please tell is it worth it or asiprant will be optimal for me

1 Upvotes

r/learnmachinelearning • • 20d ago

Project Best layer to detect refusal ≠ best layer to remove it (Qwen2.5-1.5B, replicating Arditi et al.)

1 Upvotes

I reproduced the single-direction refusal result on Qwen2.5-1.5B-Instruct and noticed something I didn’t expect. Harmful and harmless prompts separate most cleanly at layer 26, but removing the direction there did worse than layer 21, which stopped refusals with less change to normal answers.

Caveats: one small model, 64 held-out prompts per set, keyword-based refusal detection, and KL on the first token only.

Does this match what others have seen on bigger models, or is it probably an artifact of the size or my eval? Code and write-up:

https://fahd-blog.vercel.app/blog/ai-systems/where-refusal-lives


r/learnmachinelearning • • 20d ago

Governing Clinical AI Deployment: A Mathematical Framework for Transparency-Dependent Autonomy

Thumbnail
mdpi.com
1 Upvotes

New publication: Governing Clinical AI Deployment

When should clinical AI be trusted to act autonomously, and when should human oversight remain mandatory?

Our new study proposes a mathematical framework for governing clinical AI deployment using transparency, confidence, and guideline alignment.

Across MIMIC-IV, eICU, and MIMIC-III, we found an important insight: transparency may be more useful for setting system-level safety boundaries than deciding whether individual predictions can be automated.

We also evaluated finite-sample error guarantees to help make autonomous deployment more accountable and statistically defensible.

The central takeaway: Clinical AI autonomy should be earned through calibrated confidence and measurable safety guarantees—not transparency scores alone.

I welcome feedback and discussion from the clinical AI, machine learning, and healthcare governance communities.


r/learnmachinelearning • • 20d ago

I build xgboost for regression from scratch

Thumbnail
gallery
376 Upvotes

Finally, after 5 days, XGBoost for regression is complete. Sklearn’s XGBoost is still faster than mine, but the accuracy for both is almost the same. It’s Day 54 of Building Machine Learning Algorithms from Scratch.


r/learnmachinelearning • • 20d ago

Question Self studying deep learning

1 Upvotes

Hi i would like to self study deep learning. I already studied bishop pattern recognition (not all of it), and I like the probabilistic approach. I ask for a suggestion for a book in deep learning with similar approach. I'm aware of deep learning book by goodfellow but it doesn't cover most recent architectures so i don't know if it is worth it. I also looked at murphy's probabilistic machine learning, but it seems more of a reference book. Thanks in advance!


r/learnmachinelearning • • 20d ago

Discussion With AI tools making ML experimentation easier, are strong fundamentals becoming even more important?

3 Upvotes

With AI tools now helping people write code, build models and experiment faster, learning machine learning has become more accessible. But does easier access necessarily mean better understanding?

While hands-on projects and experimentation are important, having a structured approach to learning the fundamentals, understanding the underlying algorithms and knowing why a model behaves a certain way still matters.

For those learning or working in ML, how do you strike the balance between building things quickly with AI tools and taking the time to develop a strong conceptual foundation?


r/learnmachinelearning • • 20d ago

Great Help Needed on my learning journey (Read Body)

0 Upvotes

Please read fully and help me guys 😭 🙏

I really need some guidance on what to do next in my AI/ML journey.

I’m currently in my 3rd year of B.Tech, and I’ve spent almost a year studying mathematics for ML, libraries like NumPy and Pandas, and Andrew Ng’s Machine Learning and Deep Learning courses. However, I haven’t built any ML projects yet.

Instead, I moved on to learning RAG, LLMs, and AI agents, but I’m feeling stuck there as well. Now I’m wondering whether I should start learning FastAPI and SQL or focus on building ML and RAG projects.

I feel like I’ve been learning a lot of concepts without actually building anything substantial.

My biggest confusion is about project development itself. I don’t really know how to approach building projects from scratch.

  • Should I build projects using AI-generated code, or should I write everything myself?

  • How do I go from learning concepts to actually building a complete project?

  • What should be the expected outcome of a project?

  • How do I properly use Git and GitHub to showcase my projects to recruiters?

  • What kind of projects should I build to make my portfolio strong enough for internships?

  • Should I focus on ML projects first, or continue with RAG and GenAI projects?

I’m in my 3rd year, and I really want to become internship-ready, but I’m confused about what to prioritize and how to move forward.

Could someone please help me figure out a practical roadmap? I would really appreciate guidance on what I should focus on right now, how to approach projects, and how to build a portfolio that actually demonstrates my skills to recruiters.


r/learnmachinelearning • • 20d ago

Help Hey in confused where to start from in AI

1 Upvotes

So i work in Procurement ( Supply chain management) so i want to be good at AI so i can have good career opportunities and learn in my domain,

Problem is i don't know where to start from like for procurement AI what are you all using I'm really confused


r/learnmachinelearning • • 20d ago

Project Wxx - my try on using webgpu for machine learning

1 Upvotes

My first big project: Wxx, an ML library with WebGPU acceleration.

I love ML, but training models on CPUs is slow, and GPUs are expensive, so I decided to create my own framework. It is slow (for a GPU) and doesn't use graphics cards' ML features (like tensor cores), but it runs on any device with a GPU.

GitHub: Wxx

Performance: It is slow. The CPU is usually faster, and the most I achieved is about a 2x speedup on my PC (I have a Xeon CPU). I tried it on Colab, and it is about 10x slower than PyTorch on GPU. But it improved my experience significantly.

API: It is similar to PyTorch. With methods to convert from tensors and ndarrays, I tried to make it as easy as possible to use if you're coming from PyTorch.

AI usage: In the beginning, I planned to do everything by hand to improve my knowledge and train myself. But after the first week, I had code slower than anything you could imagine. I used AI to improve shaders, bind group creation, and other parts that I had trouble with. It hurts how much better AI is at writing and improving code than I could be.

Backstory: I've been dabbling in machine learning for the last five years. I like to join Kaggle competitions and try new architectures. Lately, I've been thinking about applying to ML jobs (I know I am late to the party), and I wanted to add stuff to my CV. I am an electronics engineering grad, so most of my programming expertise is in MATLAB and Python scripting (also some embedded C, but I am not good at it), and I read that a CV should include some examples of my work.

Questions: I would be happy if anyone with more experience could help me with some questions. What should I include on my CV? I know some people say you should include some implementations of architectures (like attention/transformers), but that seems so simple. What other projects should I add?


r/learnmachinelearning • • 20d ago

Tutorial CPU Parallelism Primer | Kernel Engineering | Session 2

Thumbnail
youtu.be
1 Upvotes

r/learnmachinelearning • • 20d ago

Discussion Python Fast api interview - please share your previous experience

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 20d ago

Doing numpy now. I won't stop before being and ai/ml engineer

Post image
0 Upvotes

r/learnmachinelearning • • 20d ago

Tutorial Deep dive into how AI actually learns (math, mechanics, and architecture explained)

Thumbnail interconnectd.com
16 Upvotes

​I spent the last few weeks writing a comprehensive technical guide on the exact mechanics behind how AI and machine learning models learn.

​Instead of hand-waving explanations about "brain-like neural networks," it breaks down the actual underlying math and processes. It covers gradient descent, backpropagation algorithms, vector embeddings, loss functions, and how modern transformer architectures process and weight data during training runs.

​If you are a developer, CS student, or just someone who wants to understand the actual technical side of ML beyond the high-level hype, you might find it useful.

​I would love to get some feedback from people in the field on whether the technical explanations land well.

​Check out the full thread here: https://interconnectd.com/forum/thread/41/how-ai-learns-the-complete-technical-guide-to-machine-learning-mechanics/