r/learnmachinelearning • • 3d ago

How to compare a new ML model vs an old one in an unbiased way?

1 Upvotes

Let's say that you have an old ML model that was built in the past. Now you set up to develop a completely new model, different architectures, methodologies, etc, etc. How do you compare the models to know which is is better?

Because when I'm building the new model of course I'm optimizing it vs the test set, so it's going to perform better than the old one for that test set, so then how can I decide the new model is better in un unbiased way?


r/learnmachinelearning • • 3d ago

please guide me for ai

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 3d ago

[D] Can AI learn to sleep like the brain does?

1 Upvotes

The brain replays memories during sleep, which is one reason we don’t forget old things when we learn new ones. Neural nets don’t have anything like that, so they forget badly (catastrophic forgetting).

I went through some of the papers that try to borrow this idea (generative replay, LAMOL, van de Ven et al. 2020) and ran a few small experiments on GPT-2 to see how it plays out on a language model.

One thing surprised me: where the “dreams” come from matters a lot. When the model generated replay from a frozen copy of itself, it kept about 58% of the old facts, vs 6% with no replay. When it dreamed from the version that was still training, the dreams turned into false facts and it barely helped (9%).

It’s a small setup (GPT-2 small, made-up facts, 3 seeds), so I’d love to hear if this matches what others have seen, or if there’s work I missed.

Write-up here if anyone’s curious: https://evo-quest.github.io/can-ai-learn-to-sleep/


r/learnmachinelearning • • 3d ago

I made a 5-minute explainer of a single artificial neuron for complete beginners (a party decision, no maths needed)

1 Upvotes

I'm making a short series that explains how AI works for people who aren't developers. The first episode builds one artificial neuron that decides whether to go to a party: inputs, weights, a bias, and a yes/no. Then three neurons decide whether to buy a phone, and at the end we look at how real neural networks differ.

https://youtu.be/Qe13Q_BV5_o

Every claim is sourced in the description. I'd love feedback, especially from anyone who teaches this: what was unclear, too slow, or too fast?


r/learnmachinelearning • • 3d ago Mindblown

Question How do you run big batch GPU jobs (thousands of files/frames/prompts)?

2 Upvotes


r/learnmachinelearning • • 4d ago

New Mexico State gets a DARPA award for work on AI trust

3 Upvotes

New Mexico State University has received a DARPA award for work on AI trust issues — research into making AI systems more trustworthy and reliable.

Trust is the quiet bottleneck for AI adoption: models are powerful, but people and institutions need to know when to believe them and when to double-check. DARPA funding signals this is now a national priority, not just an academic concern.

What would make you trust an AI system more — better explanations of its reasoning, formal guarantees, or a track record of getting things right? And where does trust matter most: medicine, defense, or everyday tools?

For more AI news and rumors, check out r/AINewsRumors.


r/learnmachinelearning • • 3d ago

assistance for ml project

2 Upvotes

so i have just 10 days before submitting my final project and the thing is, i dont know how to wokr on an ml project at all , like ik the topic is failry simpe but i feel anxious about how i will do it in 10 days .

the topic is : RetainIQ: An Intelligent Retail Customer Retention and Recommendation System Using Churn Prediction, Explainable Machine Learning and Personalized Analytics

now idk about this .

i have downloaded the data , but i am totally clueless about what to do , like there is a huge brain fog covering my head.

also my prof is the kind of guy who will totally go in depth to see if you have actually done your work .

so atleast i want to be able to understand what i have done and why i have done that specific project in the first place .

i really need assistance in this project.

is there someone who can join me ? my partner is sick so she cant help me out , i will do on my own .


r/learnmachinelearning • • 3d ago

Career CAD to Code?

0 Upvotes

Hello all,

Been toying with the idea of getting into machine learning, Ai engineering or something in coding. I have been doing CAD work for close to 15 years now. Graduated in interior architecture and have been doing commercial design the past 12 years. I have experience in AutoCAD, Revit, Sketchup, Vray and many architectural and civil standards across the industry. That being said, I’m getting bored. Maybe too comfortable, but I feel like I’m hitting a plateau and the next level up isn’t exciting.

In the past year, I have been building AutoLISP routines. Basically creating custom command and prompts in AutoCAD. It has brought back my excitement in working. It’s not coding, but it is a functional programming language.

I started free code camp about a year ago. Touching courses, from time to time, still testing the waters I guess. I enjoy it. I enjoy vibe coding and learning the code. I enjoy Ai and understanding it and how it works. I think I want to explore learning towards a career with Ai, but I don’t know even where to look. What are some suggestions you all may have considering my experience?

Been using antigravity, Gemini (preferred), ChatGPT and have a virtual machine for testing.

Thanks!


r/learnmachinelearning • • 4d ago

Should I go with ml engineer?

5 Upvotes

Unlike many people in this sub I have zero coding experience and want to try every field of cs for finding my interest, Im at beginner level with both ml and dl, started about like 1 month and half? I like the logic of ml (atleast for now), I loved math when I was at highschool because I always saw the problems as a puzzle, tbh I would try my luck with going ml enginering as a career path but the ai crisis is so big Im really confused about if I could find a job and kinda scared to go on. I just wanna hear opinions of yall, I would try embedded systems next to see if it does interest me.


r/learnmachinelearning • • 4d ago

MNIST first steps 99.12% recognition

6 Upvotes

Hello everyone I'm interested in learning neural networks. I tried to train a 4-layer perceptron on the MNIST dataset. Got a 99.12% recognition result. I would like to know if this is a good result and if my network 784-1200-1200-1200-10 is too big for such a model. All thanks for the answers or feedback


r/learnmachinelearning • • 4d ago

Request Critical Apache Roller RCE Flaw Under Active Exploitation, No Authentication Required

1 Upvotes

Apache Roller just received a patch for a critical unauthenticated remote code execution vulnerability that is already under active exploitation. No credentials required. CVSS 10.0. Attackers are running arbitrary code on servers before most teams have finished reading the advisory.

The pattern here is not new but it keeps compounding. A widely deployed open-source component carries a silent critical flaw for some window of time. During that window, every automated pipeline, scheduled job, or workflow that calls into the vulnerable service is operating against a potentially compromised host. The exploiting party does not need to touch your infrastructure directly. They own the service you trust, and your automation keeps doing its job against it.

Patching speed is one lever. But patching assumes you know the window is open, that the patch is available, and that your deployment cycle is faster than active exploitation. Right now, in this specific case, none of those conditions held at the same time.

For teams running any kind of automated workflows that touch web services or self-hosted platforms: how are you reasoning about the trust boundary between your automation and the services it calls? What does your detection or containment story look like when a trusted downstream endpoint is already compromised before your patch lands?


r/learnmachinelearning • • 4d ago

Does computing Group_size on train+test (no target) cause leakage? Reviewing a method from a Medium article

Thumbnail
python.plainenglish.io
1 Upvotes

r/learnmachinelearning • • 4d ago

Help How do you evaluate open weight models (for personal use) vs picking whichever frontier model tops leaderboards?

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 4d ago

I turned the way I learned AI/ML as a beginner into a free course, from zero Python to deploying models

39 Upvotes

Hi everyone,

When I started learning AI and ML, I didn't know where to begin. Most tutorials either assumed I already knew the maths and Python, or showed me how to call a library without explaining what was happening inside. What finally worked for me was simple: build each idea from scratch in plain Python first, break it, fix it, and only then use the library version.

So, I organized everything the way I learned it, step by step, and published it as a free course. It's the material I wish I'd had when I was starting out.

Link: https://github.com/anupbagale/python-for-ai-ml

How it's structured:

- 21 modules plus a short "Start Here" for complete beginners

- Each module has a lesson, exercises that check your answers automatically and tell you what went wrong, worked solutions, a mini project and a cheatsheet

- Everything opens in Google Colab with one click, so all you need is a browser. No installs, no GPU, no sign-up

What you'll go through:

- Part 1: Python from zero, NumPy, pandas, visualization, your first ML models, and a project that ends with a tested prediction API

- Part 2: evaluating models properly, gradient boosting, unsupervised learning, time series and recommendations

- Part 3: PyTorch, computer vision, transformers (you train a small GPT yourself), working with LLMs (RAG, LoRA), and finally fairness, interpretability, deployment and monitoring

The exercise checks are based on the mistakes I made myself as a beginner: data leakage, off-by-one errors, shuffling data in place, trusting a test score that was too good to be true. I wanted the checks to catch those early, so you don't learn them the hard way.

It's completely free and MIT licensed, because I believe anyone who wants to learn this should be able to, whatever their budget. It takes around 150 to 230 hours, at your own pace.

If you try it, please tell me where you got stuck or what was confusing. I'm still learning too, and feedback will make it better for the next person.


r/learnmachinelearning • • 4d ago

Where is the Qwen source code again...?

1 Upvotes

I'm looking for the actual model architecture code. All their Github repos are just readme files without code. So they say they are opensource but not really. The weights are open but not the actual architecture? Am I missing something here?

I want to do some experiments with the architecture, inject different modalities other than images and video, but need the source to do that.


r/learnmachinelearning • • 4d ago

A meta-analysis of 516 multi-agent LLM configurations: once the single agent gets the same samples or compute, multi-agent systems average 4.2 points worse and tie or lose in 74% of comparisons

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 4d ago

Help How do I choose the layers I need for a VAE

0 Upvotes

I am doing an assignment where I need to create my own VAE for the MNIST dataset and another dataset. The requirements are under 1 million parameters but the code given is over 1 million parameters so I assume I need to change the architecture.

But how do I decide what layers to replace with? This is legit something I am curious about, like in general how do you decide layers and what types for any type of network you design. I see this one has a nn.Relu and an nn.BatchNorm but I don’t know the design decisions. Do I just source some paper and copy their architecture or is there some reasoning about which layers you would put in.

The MNIST takes 1 channel 28x28 image.
The other dataset 3 channels 112x112 to be downsampled to 28x28 for training

​


r/learnmachinelearning • • 4d ago

Help Beginner who loves probability & statistics, looking for a fun first Python project (Monte Carlo / poker simulator / stock analysis) – where should I start?

3 Upvotes

Hi everyone,

I’m a high school student from Germany, and I’d love some guidance from people who have been down this road.

My background: So far I’ve only worked with HTML and CSS, so I’m a beginner when it comes to Python we just did basic projects in school. I do learn quickly, though, and I’m not afraid of hard material. Math comes easily to me, and I’m currently taking a university-level maths module on the side (logical foundations). I’m especially interested in maths, statistics, computer science, physics and finance, and my long-term goal is to study maths, ideally at a top university, and eventually work in finance.

What I want to build: I’d like to write my first real project in Python, and I’m torn between a few ideas:

  1. A Monte Carlo simulation (for example estimating probabilities, simulating stock price paths, or portfolio risk)
  2. A poker AI / poker simulator that estimates win probabilities (Monte Carlo fits well here) and maybe later learns strategies
  3. A stock analysis tool that pulls data and calculates things like returns, volatility and correlations
  4. Anything else you think is a good first project in the direction of statistics and machine learning

I don’t mind if the project is simple at first. I’d rather understand what I’m doing than copy something I don’t get. It is not for school or any other assignment it is just an field i am interested in and need help!

What I’m hoping you can help me with:

  • Where should I actually start? What would you learn first, and in what order (Python basics, then NumPy/pandas, then statistics, then ML)?
  • Good YouTube channels or free courses for Python, statistics, probability and machine learning. Beginner-friendly but not dumbed down.
  • Books you’d recommend, whether on Python, probability/statistics, or Monte Carlo methods and quantitative finance.
  • Math resources: which topics (probability, statistics, linear algebra, calculus) matter most for this direction, and how deep do I need to go at the beginning?
  • Example projects: if you have a finished Monte Carlo simulation, a small poker bot or a stock analyzer on GitHub, I’d be very happy if you shared it. I’d study the code line by line and try to rebuild it myself, not just copy it.
  • Common beginner mistakes I should avoid, and which libraries to learn first (NumPy, pandas, matplotlib, scikit-learn?).

If anyone is willing to explain things or look at my code once I have something, I’d really appreciate it. I’m happy to share my progress here and ask specific questions as I go.

Thanks a lot in advance, any tip, big or small, is welcome!


r/learnmachinelearning • • 4d ago

Working on runtime security for AI

1 Upvotes

Site- https://limitless-site-p5ft.vercel.app/
I'm building Limitless, a monitoring layer that sits between an AI agent and your machine. It watches the files an agent reads, the commands it runs, and the web requests it makes, then blocks risky actions, runs commands in isolated containers, and logs why each one was allowed or stopped, so you can see exactly what your agent tried to do. It's an early prototype, and I'm looking for testers who run AI agents and want to see what they're really doing. Early access is open on the site.


r/learnmachinelearning • • 4d ago

Project Checked coverage on my 4 BTC price range models, the simplest one held up best

2 Upvotes

small side project. 24h ahead price ranges for BTC with 4 models: a plain rolling volatility band, quantile gradient boosting, a quantile LSTM and a small transformer.

on pinball loss the order was transformer > LSTM > GBM > vol band. nice, more complex = better.

then i checked how often the 80% interval actually held, 6 months out of sample:

- vol band: 78%

- GBM: 71%

- LSTM: 66%

- transformer: 63%

the fancy models were tighter, which helped pinball loss, but they were confidently wrong on big move days. the dumb band was the only one actually calibrated.

not claiming anything general, small data, one asset. but it makes me think a lot of forecasting comparisons that only report error are hiding this. do ppl here report coverage by default?


r/learnmachinelearning • • 4d ago

Request libumqtt

0 Upvotes

CISA recently published advisories covering libumqtt, a widely used MQTT client library. MQTT is a core messaging protocol in IoT and industrial control environments, and an increasing number of AI agent deployments use it as a transport layer for passing instructions and telemetry between components.

The vulnerability class matters here because it sits below the application logic. An agent receiving a malformed or maliciously crafted MQTT message through a compromised broker or a spoofed topic subscription may execute instructions it has no business executing. The agent itself is not exploited in the traditional sense — the communication channel is. The agent just does what it was told.

This is the part that keeps getting underweighted in threat models: the agent is a valid, authenticated actor in the system. It has credentials, permissions, and integrations. When the input channel is compromised, so is everything the agent can reach. The blast radius is not bounded by the vulnerability — it is bounded by whatever the agent is authorized to do.

For teams running agents over MQTT or similar pub/sub transports in production: how are you handling this? Are you validating message provenance at the agent level, isolating agent action scope from the transport layer, or doing something else entirely? Curious what's actually working in practice versus what looks good on paper.


r/learnmachinelearning • • 4d ago

Help Help Regarding AI Engineer

17 Upvotes

I want to learn AI/ML deeply and become a skilled AI Engineer. I have studied the theory during my semesters, but now I want to focus on coding, implementation, and understanding how things work.

In DSA, we have LeetCode and Codeforces. Is there something similar for AI/ML, Deep Learning, LLMs, and AI engineering ?

I am looking for a long-term learning path covering what to learn, where to practice, what to implement from scratch, and which tools/frameworks to master (PyTorch, TensorFlow, LangChain, etc.).

No fixed timeline or shortcuts. I want to build strong fundamentals, practice consistently, track my progress, and develop genuine AI engineering skills rather than just building projects by following tutorials.

Suggest that actually matters for long term AI engineering Role.


r/learnmachinelearning • • 4d ago

Help ML RESEARCH

2 Upvotes

I am a 2nd year computer science student and I want to enter ML research, I have done breadthwise learning till now implemented and read random major/interesting papers. Now I want to work on my own research, is it a good idea to do a depthwise search in my interest in ML( Mechanistic Interpretability), I plan that by reading around 20 papers in this field suggested by Claude, and then form my research hypothesis? Or in other words I am actually trying to get a solid research topic from this process of reading around 20 papers.


r/learnmachinelearning • • 4d ago

If someone can help as mentor, or buddy that would be awesome

Thumbnail reddit.com
1 Upvotes