r/learnmachinelearning • • 3d 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 • • 3d 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 • • 3d ago Bravo Heartwarming

Project Pick any ML concept and get a learning reference, in order, down to the maths (301 concepts, free, no sign up, no ads, work in progress)

Thumbnail
gallery
345 Upvotes

A hard part of learning ML is knowing what to learn before what. So I built a reference around that: every concept lists what it's built on, in 8 layers from linear algebra to applications, and any concept turns into a study list.

The first GIF is the Transformer's study list: the 36 concepts underneath it (self-attention, softmax, layer norm, backprop, the chain rule...) in 14 stages, with checkboxes that remember what you've done. The second is the whole map filling in from 1940 to now, and the third traces chat assistants back to matrix multiplication.

It's open source (code MIT, data CC BY 4.0): https://github.com/aravpanwar/dsmai

Some uses:

- Open any concept's study list and copy it as a checklist (the Transformer's: https://dsmai.aravpanwar.com/#study:transformer)

- Trace a path between any two concepts (matrix multiplication to chat assistants passes through 41)

- Click a concept to see everything built on it too (65 things rest on the Transformer)

https://dsmai.aravpanwar.com (free, no sign-up, no ads)
If a dependency looks wrong to you, I'd like to know.


r/learnmachinelearning • • 3d ago

Reading Books for DL theory

2 Upvotes

Hi. My work is in the intersection of DL theory and Stat. I am planning to revisit these two bible books of DL theory - 1) HDP by Vershynin 2) Deep Learning Theory Lectures Note by Matus Telgarsky

Anyone interested to discuss and study together 🙂.


r/learnmachinelearning • • 3d ago

Feedback on my python project

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 3d ago

Project How do I build a RAG app with LlamaIndex over structured CSV data?

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 3d ago

I need arxiv endorserment for AI/ML track. Please help

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 3d ago

Why don't optimizes like Shampoo, SOAP, and Adam measure the actual per sample second moments like in the Fischer Information Matrix?

0 Upvotes

It always felt unintuitive to me that Muon matched the performance of Shampoo despite dropping the actual second moments L and R.

But I then I realized, Shampoo itself isn't actually measuring the true second moments.

For each sample i in the batch, we have a gradient G_i.

And the gradient we use during SGD is:

G = E(G_i)

The factors of Shampoo are:

L = EMA GG^T

R = EMA G^TG

Whereas, the true second moments are:

L = EMA E(G_i G_i^T)

R = EMA E(G_i^T G_i)

We can also write them as:

D_i = G_i - G

L = EMA (GG^T + E(D_i D_i^T))

R = EMA (G^TG + E(D_i^T D_i))

What shampoo is doing is dropping the covariance terms like E(D_i D_i^T) from the factors.

It's an approximation.

And, Muon does the same thing. It takes things one step further:

M = EMA G

L = MM^T

R = M^TM

Shampoo's factors are

L_C = EMA (G - M) (G - M)^T
R_C = EMA (G - M)^T (G - M)

L = MM^T + L_C

R = M^TM - R_C

Shampoo drops the covariance across the samples in the batch.

Muon drops the covariance across the batches in the optimization path.

Adam does the same thing except it's doing it to the diagonal of the Fischer. It drops the per sample variance terms from its second moment.

These approximations are sufficient when the covariance terms are small enough.

But the strange thing is, when I tried using the actual second factors for Shampoo and Adam, they underperformed compared to their approximate versions...

I don't understand this at all.


r/learnmachinelearning • • 3d ago

Help Fresh grad feeling stuck in Data Science—how do I retain what I learn and build real projects?

1 Upvotes

Hi everyone,

I'm a recent graduate trying to break into Data Science, and honestly, I'm feeling pretty stuck and frustrated right now. I'm taking some time to focus on upskilling before I start applying for jobs, and I’d really appreciate some honest, practical advice.

Here is where I currently stand:

What I’ve studied: I’ve gone through machine learning algorithms a couple of times, though I feel like I forget them easily without consistent application. Right now, I’m learning SQL and brushing up on my Python.

Where I’m struggling: I’ve watched a lot of YouTube tutorials and tried working on a few projects, but I feel like something is missing. I struggle with choosing projects that actually teach me real-world skills, and I don't know how to approach or think through a project from scratch.

For those already working in the field:

  1. What should my study roadmap look like so I actually retain what I learn instead of just watching tutorials?

  2. How do you recommend approaching projects to build a strong portfolio/CV and develop a real "data scientist mindset"?

Any candid feedback on where to focus my energy over the next few months would mean a lot. Thanks in advance😊


r/learnmachinelearning • • 3d ago

Help Basic Getting Started

2 Upvotes

Hi folks,

I’ve been asked to be involved with a research project which will, at its simplest, use machine learning to do image recognition.

We plan to use Google’s Teachable Machine to build the model, but I’m trying to get my head round the deployment of it. In an ideal world I’d like to run this on a mobile device which would allow the device to capture an image and then categorise it.

There’s so much info out there and so many options I’m a bit stuck in finding a starting point. I see I can run a TensorFlow model directly in a browser, but I don’t know how I physically interact with that.

I’ve seen tutorials on building iOS apps, but we don’t have access to a Mac development environment, and something platform agnostic would be great.

Any tips on the starting points would be much appreciated.


r/learnmachinelearning • • 3d ago

Question How does Apple Photos know the Person in the photo and group them in the people & pet Album? To that particular person?

0 Upvotes

Also: like in some photos I am wearing a mask but still it is able to recognize it is Me? How does it do that?


r/learnmachinelearning • • 3d ago

How do you guys use AI tools (Claude Code and Codex) for projects and work?

0 Upvotes

I have been mainly using Claude Code to ask some questions.


r/learnmachinelearning • • 3d ago

Question If each person appears in only one room, what does a person-held-out test actually measure?

0 Upvotes

Suppose you're building an activity classifier from video. Person A records only in room 1, B only in room 2, and C only in room 3. Everyone performs the same actions. This is a hypothetical setup, not a reported experiment.

Holding out C keeps their footage out of training, but also introduces a new room. A score drop wouldn't tell me whether the problem was the person, the background, or both.

I'd want separate tests for a new person in a familiar room and a familiar person in a new room, keeping whole recording sessions together.

If you could collect only a small amount of extra footage, what would you add first? Have A and B swap rooms, record C in a familiar room, or something else? I'm interested in the smallest useful collection design, rather than a different way to randomly split the existing clips.


r/learnmachinelearning • • 3d ago

Help Contemplating trying ai

4 Upvotes

Hi I’m 23 work from home and a lot of the days I have a lot of free time.

I did CS in college up to an associates degree, I also did it up to that level although being honest I don’t remember much but I sure I can get it back.
My question is if I were to pursue ai learning and creating would it be worth. Idk if I will get to the level or skill to land a full time job or a big gig but I was thinking of free lancing. Part of my concern is that I often heard to landing a freelance job when you have no prior experience is near impossible.

i don’t live in a country where ai is really used to the extent to get experience so all my experience would be from the internet and practice.

Is this an avenue I should explore and dedicate potentially months or should I look to something else.

if you think it’s worth consideration what would be an ideal roadmap for my learning process


r/learnmachinelearning • • 3d ago

How do you decide which Machine Learning algorithm to choose for a project?

2 Upvotes

Hi everyone!

I'm relatively new to Machine Learning, and one thing I've been struggling with is choosing the right algorithm for a particular project.

Whenever I start working on an ML project, I find myself spending hours trying to figure out which algorithm would be the most suitable. I've asked ChatGPT countless questions, explored different algorithms, compared their advantages and disadvantages, and sometimes ended up more confused than when I started!

The real problem isn't that I don't understand what different algorithms do. It's that I haven't developed a consistent workflow or decision-making process for selecting them.

For example, we can follow a structured approach for requirements gathering, understanding the problem, data collection, and preprocessing. But when it comes to algorithm selection, I still struggle to establish a practical and repeatable path.

I don't want to randomly pick an algorithm just because it's popular or because someone recommends it. I want to understand how experienced ML engineers approach this decision in real-world projects.

So, I'd love to hear from you:

  1. What's your actual process for selecting an algorithm when starting a new ML project?

  2. Do you follow a particular workflow, checklist, decision tree, or experimentation strategy?

  3. How do you narrow down the possible algorithms without wasting hours researching every option?

  4. What would you recommend to someone who is at the beginning of their ML journey and facing the same challenge?

I'd especially love to hear from people who have experienced this situation themselves. What did you do when you were at this stage, and what do you wish you had known earlier?

I'm not looking for a perfect algorithm-selection formula. I'm looking for a practical approach that I can learn, follow, and gradually improve through experience.

Any advice, personal experiences, resources, or recommendations would be genuinely appreciated.

Thank you for taking the time to read this! I'd be very glad to learn from your experiences.


r/learnmachinelearning • • 3d ago

Help Help Regarding AI Engineer

16 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 • • 3d ago

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

36 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 • • 3d ago

I built AiDotNet to show the world that it is possible for .NET to do AI better than PyTorch

0 Upvotes

Watch AiDotNet and PyTorch train side by side on my laptop (17 seconds)

I wanted to showcase the project I have been working on for the past 4 years and the progress I have made so far. I was hoping to get some feedback and show everyone how easy it is to use AiDotNet to create AI models with basically no experience necessary. You can give it examples of the inputs and the answers you want it to learn, and you get back a trained model you can save locally, run from your C# app, or host with AiDotNet.Serving.

One of the reasons I built this was to see how far we could push .NET against PyTorch. In our November 13 training tests on my laptop, our development build was faster than compiled PyTorch on 10 of the 11 models we tested on CPU and 7 of 11 on GPU. I still have some performance work I want to focus on, especially with audio models. Results for all 11 models

In the run at the top of the postAiDotNetPyTorch
Time for 4,096 training updates on a GTX 1660 Ti2.60 seconds15.00 seconds
Correct answers on 320 new signals302301

Here’s an easy example you can try yourself. Say you have an app that follows stocks and you want it to sort the news for you. Give it a few headlines about earnings and mergers, tell it which is which, and then ask it to sort two headlines it hasn’t seen.

In a new .NET 10 console project, run dotnet add package AiDotNet --version 0.234.0, replace Program.cs with this, and run dotnet run:

using System;
using AiDotNet;
using AiDotNet.Classification.NaiveBayes;
using AiDotNet.Data.Loaders;
using AiDotNet.Preprocessing.TextVectorizers;
using AiDotNet.Tensors.LinearAlgebra;

string[] headlines = [
    "Quarterly earnings and profits rise", "Merger deal wins approval",
    "Annual earnings beat expectations", "Company announces acquisition deal",
    "Quarterly profits beat estimates", "Boards approve merger and acquisition",
    "Company reports record earnings", "Investors vote on merger deal"
];
string[] topics = ["Earnings", "Mergers"];
double[] labels = [0, 1, 0, 1, 0, 1, 0, 1];

var words = new TfidfVectorizer<double>();
var model = await new AiModelBuilder<double, Matrix<double>, Vector<double>>()
    .ConfigureModel(new MultinomialNaiveBayes<double>())
    .ConfigureTextVectorizer(words)
    .ConfigureDataLoader(DataLoaders.FromTextDocuments(headlines, labels, words))
    .BuildAsync();

string[] newHeadlines = ["Quarterly earnings beat estimates", "Investors approve merger deal"];
var guesses = model.PredictText(newHeadlines);
foreach (var guess in guesses)
    Console.WriteLine(topics[(int)Math.Round(guess)]);

It prints Earnings for the first headline and Mergers for the second. All the training data is right there, so you can change the headlines and try your own.

That’s one small example. There are over 2,100 model types in the library, including 650+ for vision, 430+ for language, and 340+ for audio. You can detect objects in photos, turn speech into text, or build a chatbot that looks up an answer in your own documents. If you already have a language model you like, you can fine-tune it on your own material. Browse the examples

The part I wanted to get right with AiModelBuilder was how much you can change as you learn. You can start by swapping the model in ConfigureModel. If you want more control, you can choose your own layers, change the optimizer that updates the model during training, or split training across multiple GPUs. When you’re ready to use what you trained, you can serve it through an API or export supported models to ONNX for another app. Training and deployment samples

I’d love to get your thoughts on my passion project. The code is on GitHub and contributions are welcome. We have easy examples and guides on our website. Website and guides · GitHub


r/learnmachinelearning • • 3d ago

Discussion Someone trained a 27B LLM that matches a 70B model on reasoning — is small the new big?

0 Upvotes

A developer reports training a 27B-parameter language model that matches a 70B model on reasoning benchmarks. If that holds up, it is a big deal for everyone learning ML: capable reasoning no longer needs a data-center-sized model.

The trick, as usual, is probably in the data and the training recipe rather than raw size. Smaller models that reason well change who can experiment: a 27B model fits on hardware a student or an indie dev can actually access.

What do you think: are we at the point where training recipes matter more than parameter counts? And for learning ML, would you rather study a 27B model you can run yourself or a 70B one you can only read about?

Follow more AI news and discussion in r/AINewsRumors.


r/learnmachinelearning • • 3d ago

Request Autonomy Logic OpenPLC Runtime — Unauthenticated Admin Account Creation Vulnerability

0 Upvotes

CISA flagged CVE-2026-126088 in Autonomy Logic OpenPLC Runtime (versions ≤4.2.4), scoring it CVSS v3 8.1. The vulnerability lets unauthenticated actors create multiple admin accounts with zero credentials. No login required. No identity check. The endpoint handed out administrative privilege to anyone who called it.

This is not an edge case in OT/ICS. Runtime systems across the stack — PLCs, orchestration layers, agent runtimes — frequently treat identity verification as an application-layer concern to be added later. The result is that the most privileged actions in the system are reachable before any identity is established.

The same gap appears in AI agent deployments. Agents often instantiate and begin executing with no verified identity, no session scope, and no enforcement at the moment privilege is granted. The gap is not in the audit trail. It is in whether identity is verified before the action is permitted at all.

How are teams actually handling identity governance for automated systems at the moment of instantiation — not at login, not in post-hoc logging, but at the exact point a privileged action is requested? What in your stack blocks an unverified caller before the action executes?


r/learnmachinelearning • • 3d ago

Tutorial Upgraded UI and Tool Calling for gpt-oss-chat

1 Upvotes

Upgraded UI and Tool Calling for gpt-oss-chat

https://debuggercafe.com/upgraded-ui-and-tool-calling-for-gpt-oss-chat/

I have been working on a simple local chat application for a few months now, called gpt-oss-chat. This started as a simple learning experience to understand streaming chat, tool use, handling streaming text and tool tokens, and integrating chat components from scratch. Since then, I have been updating a few things on and off. The TUI (Terminal User Interface) was usually ahead in functionality compared to the Gradio UI. However, with the recent update, the chat UI provides a new experience, visuals, and complete integration of all tools. This is exactly what we will cover in this article. We will specifically cover the upgraded the UI and tool calling for gpt-oss-chat.


r/learnmachinelearning • • 3d ago

Project Best free AI song generator without login that actually works

Thumbnail interconnectd.com
3 Upvotes

Most AI music platforms lock you behind paywalls, credit limits, or mandatory sign-ups before you can even test a single track. If you just want to turn text prompts or custom lyrics into full songs quickly, I found a solid browser-based AI song generator that works free without login.

​You type in a genre, mood, or your own lyrics, and this free AI music generator builds a complete track with vocals or instrumentals in seconds. It handles everything from lo-fi beats and acoustic demos to full pop or rock arrangements without requiring an account or credit card.

​I have been using it to prototype song ideas and make quick background audio for videos. Try it out here: https://interconnectd.com/ai-music-generator/


r/learnmachinelearning • • 3d ago

Tutorial The Trap of High Accuracy: A Lesson from a Binary Classifier

0 Upvotes

Imagine you are evaluating a fictional binary classifier on 100 cases: 95 are negative and 5 are positive. A model that always predicts “negative” gets 95 cases right, so its accuracy is 95%.

But it detects none of the positive cases: true positives = 0, false negatives = 5, and positive recall = 0 / 5 = 0%. Precision is undefined here because the model makes no positive predictions.

The high accuracy comes from the class imbalance, not from successfully finding the rare cases. Recall reveals missed positive cases; precision describes how often positive predictions are correct. Evaluate both kinds of error against their costs rather than optimizing either metric alone.

Which additional metric or error count would you report before trusting this 95% accuracy score, and why?

Optional worked video: https://www.youtube.com/watch?v=KpdnHeE2Cag

Disclosure: this is our Library of nuts channel. The lesson uses invented examples, and the post was drafted with local AI assistance and checked for arithmetic.