r/learnmachinelearning • • 7m left

Discussion Why 98% accuracy in human activity recognition might not mean what you think

• Upvotes

I've been looking into how machine-learning models are evaluated for radar-based human activity recognition (HAR), and one issue that deserves more attention is how datasets are split.

Consider a simple example.

Suppose we have continuous radar recordings divided into:

  • Window length: 4 seconds
  • Window hop: 1 second
  • Window overlap: 75%

If we randomly assign these windows to training and testing, adjacent windows from the same recording can end up in both sets.

That means the model may encounter 75% of a test window's raw input during training.

The reported accuracy might be mathematically correct, but does it demonstrate generalization to new people or environments?

Three evaluation problems worth checking:

  1. Overlapping-window leakage: Training and testing contain overlapping samples from the same recordings.
  2. Subject-dependent evaluation: The same individuals appear in both datasets, potentially making the task easier than recognizing activities from previously unseen people.
  3. Domain shift: A model trained in one room, radar configuration, or viewing geometry may perform differently elsewhere.

There's another interesting issue with reporting accuracy.

Consider a hypothetical experiment with four participants achieving 99%, 95%, 85%, and 80% accuracy. If the first participant contributes 90% of all test windows, the pooled accuracy can reach 98%, while the equal-participant average is only 89.75%.

Both numbers are correct, but they communicate different things.

What would make the evaluation more convincing?

  • Subject-independent or appropriately grouped train/test splits
  • Recording-level separation before windowing
  • Preprocessing fitted using training data only
  • Per-subject and per-class performance
  • Testing across different sessions, rooms, or radar configurations when those are part of the intended deployment

For transparency, I'm part of the ArthaVedya Research team. We recently published a free technical guide explaining these issues, including worked examples and a Python tool for auditing dataset splits.

https://arthavedya.com/radar-har-accuracy-subject-leakage-domain-shift/

The 98% figure is illustrative, not a measured result from a specific paper.

Question for researchers working with HAR or time-series classification:

Do you generally prefer leave-one-subject-out cross-validation, group-based splits, or another evaluation protocol? And how much performance degradation do you typically observe when moving from random-window splitting to subject-independent testing?


r/learnmachinelearning • • 11m ago

About cs229

• Upvotes

What is the most effective way to understand the topics of cs229 clearly?I am a beginner and reading the lectures makes me confused and i understand nothing,people who really understood those lectures, how did you learn them? Can you visualise what is being taught?Should i watch the video on youtube or the enroll for the coursera course? Because i tried self reading and asking chatgpt and it did no help, they go deeper and deeper into another topic and the main message remains unclear to me,please help. Would you suggest somethign else before these lecture or something alongside it?


r/learnmachinelearning • • 11m ago

Project I built a scikit-learn for RSI

• Upvotes

After reading a bunch of RSI papers, I keep coming back to familiar problems from RL and evolutionary search:

  1. Sampling: How do we find promising changes efficiently?
  2. Evaluation: How do we know a new variant actually improves the agent?
  3. Diversity: How do we avoid converging too early?

That motivated us to build Gear, an open-source, meta-learning-inspired framework. A task agent produces execution traces; a meta-agent uses those traces and evaluation feedback to improve prompts, tools, workflows, and context management.

Gear separates search decisions from execution and evaluation. Our goal is a scikit-learn for RSI, making approaches such as GEPA, RRSI, and Harness² easier to implement and compare. We currently have a working GEPA variant with shared failure diagnosis and staged evaluation.

With GPT 5.6 Luna held at medium reasoning effort, we observed these task pass rates:

Benchmark Base DSH Gear-optimized DSH
AutomationBench Marketing 27.0% 40.0%
AutomationBench Support 17.0% 25.0%
Terminal-Bench 2.1 52.8% 62.9%

At max effort on Marketing, Luna with the optimized harness reached 88.88% objective completion, versus 84.08% for Astra + Codex. Strict task pass rates were 53% versus 57%, so the advantage was in partial completion.

Separately, with both models using the same optimized DSH at max effort, Luna’s estimated API cost averaged $0.0568 per task versus $1.1858 for Astra—95.21% lower, excluding optimization and infrastructure costs.

The 100 public Marketing tasks participated in optimization and evaluation; these results do not establish held-out generalization.

We’d welcome feedback on candidate evaluation and diversity preservation under limited budgets.

Code · Paper


r/learnmachinelearning • • 51m ago

Discussion A 43M-line Lean proof in 24 days: completion-count metrics get gamed by any worker that can assume its way to green

Thumbnail
the-agent-report.com
• Upvotes

Useful case study for anyone evaluating multi-agent systems. Axiom formalized the Classification of Finite Simple Groups in Lean: 43.1M lines, 715 papers and books, 108 milestones, 24 days, swarms of agents directed by humans. The formalization also surfaced 34 noteworthy deviations from the published literature, including a counterexample to a closure assertion used in a 1986 memoir, later replaced by a newly proved theorem.

What makes it a good ML lesson is the instrumentation, not the result. Counting completed results helped organize the work but said nothing about soundness. Milestones closed slowly because buried prerequisites had been assumed rather than proved, which is the distributed analogue of a build passing against a mock. Completion was only established when the pieces formed one proof with no unjustified assumptions remaining.

The generalizable claim: verification throughput bounds self-checking systems, and any completion-count reward is exploitable by a worker that can defer work behind an assumption. Read the post-mortem section before you design a signal.


r/learnmachinelearning • • 1h ago

Career From Software Engineering to AI Research or a Tale of 413 "No"

Thumbnail faillearnrepeat.net
• Upvotes

r/learnmachinelearning • • 1h ago

Tutorial Two free deep-dives I recorded: multimodal RAG bottlenecks + shipping agents in a real product

• Upvotes

Disclosure: I made free long-form breakdowns on YouTube about AI to help people get a theoretical vision of the technology. The goal is helping people understand better the technology.

If you are building LLM features in 2026, the gap I see is people jumping from "hello world RAG" straight to agents without fixing document extraction and retrieval quality first. Most production pain is boring infrastructure, not prompt wording.

I recorded two free walkthroughs that mirror how I actually teach this:

  1. Multimodal RAG, bottlenecks in order

Parsing → chunking → embedding → retrieval → reranking → generation. Where hello-world tutorials silently fail (PDF tables, scanned pages, multilingual, multi-vector).

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

  1. Agents in a real product (not a demo script)

Mental model: LLM + tools + memory + stop conditions. Structured output/tool calls, evals before "multi-agent," failure modes I keep seeing in prod.

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

Before both: Andrej Karpathy's intro material still beats most paid courses for "how models fail." Watch that first if you are new.

What I would build first (exercise): one agent, three tools (search, calculator, read a local file). No crew, no swarm. Measure pass/fail on 10 fixed scenarios before adding RAG.

If you watch either video and get stuck on a step (parsing vs rerank vs tool schema), drop the timestamp and your doc type (PDF, PPTX, API JSON). I will reply with specifics.

Hope this helps people getting into the domain!


r/learnmachinelearning • • 1h ago

Regarding project for ML AI INTERN

Thumbnail
1 Upvotes

r/learnmachinelearning • • 1h ago

Laptop/PC to learn AI

Thumbnail
1 Upvotes

r/learnmachinelearning • • 2h ago

[Study Buddy / Accountability Partner] 4-5 Month ML/AI Grind to Land a Data Science Job 🚀 (Voice & Structured Roadmap Focus)

Thumbnail
1 Upvotes

r/learnmachinelearning • • 2h ago

Discussion My self study progress bar so far

Post image
43 Upvotes

Of course my actual curriculum is a lot more in-depth.

Since ML topic start my progress has taken a hit, I am practically crawling but I am still happy not calling it quits and moving forward little by little everyday.


r/learnmachinelearning • • 2h ago

Unpopular maybe but following along with a course without building anything taught me almost nothing

3 Upvotes

I spent a long time working through courses, nodding along, feeling productive, and retaining very little. The second I forced myself to build something small and broken on my own, even poorly, things started sticking. Passive watching gave me the illusion of learning. I am not saying courses are useless, they are good maps, but for me the learning only happened when I was confused and debugging my own mess. Did others hit this wall, or does the course only approach work for some people?


r/learnmachinelearning • • 3h ago

Python List Operations and Aliasing

Post image
0 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises

The “Solution” link uses 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 to visualize execution and reveals what’s actually happening.


r/learnmachinelearning • • 4h ago

Learning material and resources for me to get into AI/ML and LLMs.

Thumbnail
1 Upvotes

r/learnmachinelearning • • 4h ago

Mac or Windows?

2 Upvotes

Which laptop should I buy as I am in my final year and in Aiml sector and i don't do gaming.

Should I go for m3 air or windows with rtx graphic card and budget around 1k $..

Thank you for your words ☺️


r/learnmachinelearning • • 5h ago

i created an open-source repo to convert llms into decision models.

1 Upvotes

I've been working on DecisionFormer, an open-source project that lets you convert regular LLMs into decision models that predict choices directly instead of generating text.

Thought it might be useful for people experimenting with decision models, model evaluation, or alternative approaches to inference.

Would be interested to hear what people think or what improvements would make it more useful!


r/learnmachinelearning • • 5h ago

For learning projects, chasing the best model is usually a waste of your energy

5 Upvotes

New learners often stall trying to get access to the biggest, newest model, as if that is what stands between them and understanding. In my experience the model choice barely matters for learning. A smaller, older, freely available model is more than good enough to teach you data handling, training loops, evaluation, and why your results are bad, which is where the real learning is. The bottleneck is never the model, it is your understanding of the problem and the data. Spend the energy you would waste chasing access on actually running experiments with whatever you have. Good enough and in your hands beats the latest and out of reach every time for a student.


r/learnmachinelearning • • 6h ago

Question Is it worth doing an astrophysics related research project for my Masters?

2 Upvotes

I'm in my 4th year of studying AI and Data Science, and I've been interested in astrophysics for a long time but didn't specialize in it, yet I still want to contribute to this field.

My question is, can I apply machine learning concepts to astrophysical problems in my current level? At my university we studied 2 years of preparatory courses in maths, calculus, physics, and some computer science and I only started delving into AI in my 3rd year, so my knowledge is limited in both AI and Astrophysics. I know the basics of AI/ML, namely CNNs, NLP, supervised and unsupervised learning...

I want to do interdisciplinary work with AI/ML in either astrophysics or medicine. I'm considering astrophysics for my Masters and plan to leave medicine for the future, when I'm a little more scientifically/academically mature, and perhaps make it a long-term career.

I understand astrophysics is not an easy discipline, but I will not be delving too deep into the theoretical concepts. I will mainly use AI/ML for things such as classification and read some literature on the current frontiers.

My question is: should I pursue this? Or is there something else that might interest me that I might not know about? How realistic is it for someone of my current level to learn valuable skills and expertise for such a project?


r/learnmachinelearning • • 7h ago

Career Honest Review of My Resume, (Roast this Resume) !!

Post image
1 Upvotes

r/learnmachinelearning • • 7h ago

Project Learning RL From Scratch: Releasing 1-page notes on Q-learning

Post image
1 Upvotes

As part of my RL journey, I just released 1-page RL notes on Q learning!

Kept it

  • short, coherent with
  • code snippets and
  • required math with explanations

Link to the website and let me know your thoughts

Cheers!


r/learnmachinelearning • • 10h ago

The beauty of Libraries

4 Upvotes

First I felt that such large logic, implementation and intelligence just reduced to such small lines of code made learning such vast concepts meaning less since it's just reduced to like 3 lines of code

Later realised this is the beauty of learning ie learn how the backend works and implement it flawlessly through frontend

Am I the only one who feels this way though?


r/learnmachinelearning • • 10h ago

Discussion Why does everyone say to understand gradients intuitively before formulas, and what does that even mean

4 Upvotes

Advice I keep getting is to build intuition for gradients before drowning in formulas, but nobody says what the intuition actually is. Right now a gradient is just a thing I compute. For those who have the intuitive grasp, how do you picture it? Is it the slope direction, a compass pointing uphill, something else? I am trying to get past treating it as a symbol I manipulate and actually feel what it represents. Concrete pictures welcome, I learn way better from those than from the notation.


r/learnmachinelearning • • 10h ago

Project I thought GPT-2 was small. Then I measured a training step: 17,054 MiB for 124M parameters.

11 Upvotes

I went into this thinking: GPT-2 is only 124M parameters. How much memory could training it possibly need?

Turns out, quite a lot lol.

I traced the second training step of my from-scratch GPT-2 in PyTorch. Setup: one A40, fp32 AdamW, batch 8, 1,024 tokens per sequence.

Peak allocated memory: 17,054 MiB. Weights + Adam + masks and persistent overhead at that point: about 1,494 MiB. I was counting what the model owns and missing almost everything training makes.

The bit that surprised me most: four vocab-sized tensors take up 6,282 MiB at the peak. My block hooks only saw 13,913 MiB; the allocator trace caught the extra spike inside log-softmax backward.

I also tested batches in fresh processes. 20 worked, 21 didn't. At batch 20, peak allocated was 40,375 MiB, while peak reserved was 44,948 MiB. So just dividing the card's capacity by the tensor budget wasn't enough.

I put the whole thing into my new blog post, with the maths, a stacked memory chart, an interactive step-by-step scrubber, and a batch/context calculator. Code and raw CSV are there too. The calculator is an estimate, not a guarantee that a batch fits.

Post: https://angry-kratos.github.io/posts/2026-10-training-memory/ Code: https://github.com/angry-kratos/angry-kratos.github.io/tree/main/code/training-memory

I'm learning the maths behind ML systems by building and measuring them. If you spot something off in the accounting, tell me. That's the whole point of putting the experiments out there.


r/learnmachinelearning • • 10h ago

Math for AI & ML video series for Linear Algebra

Thumbnail
2 Upvotes

r/learnmachinelearning • • 11h ago

Discussion LLM Context Windows vs. RAG: How Does Self-Attention Handle Irrelevant Information?

Thumbnail
4 Upvotes

r/learnmachinelearning • • 13h ago

made a little thing that explains how chatgpt actually works, would love some honest feedback

1 Upvotes

I use ChatGPT every day and realized I couldn't actually explain how it works. Every explanation I found was either a 40 min YouTube video or some diagram with arrows everywhere, so I tried making my own.

It's 6 really short lessons. You watch it write a sentence word by word, mess with the randomness setting, see why it messed up counting the r's in strawberry, and you even "train" a tiny version yourself. Last one shows you why it confidently makes stuff up.

Takes like 8 minutes, no signup or anything: https://playthrough-learn.web.app/?utm_source=reddit_sideproject

Heads up, it's not hooked up to a real AI yet. Everything is scripted and the numbers are simplified, I just wanted to see if the teaching part works first.

Did it actually make sense to you? And where did you get bored or lost? Be brutal lol