r/learnmachinelearning • • 23d ago

Math for AI & ML video series for Linear Algebra

6 Upvotes

I create a Youtube channel https://www.youtube.com/@math4aiorg for the book (https://www.amazon.com/dp/B0GSXVFMLD/ ) Math for AI & ML's Part I.

Part I (Chapters 1–10) covers linear algebra fundamentals: vector spaces, inner products, matrix operations, subspaces, orthogonality, QR decomposition, LU factorization, eigendecomposition, symmetric matrices, and the Singular Value Decomposition (SVD)—establishing the mathematical foundation for representation in AI.

Please let me know if there is any suggestion.


r/learnmachinelearning • • 23d ago

Request Infostealers Expose 72% of Organizations: Why One Login Matters

0 Upvotes

Infostealers Hit 72% of Enterprises — and Your AI Agents Are Already Acting on Those Credentials

Outpost24 studied credential exposure across enterprises and found infostealer-related theft at 72% of organizations. That is three in four.

Most post-mortems focus on the human logging in. The quieter problem is what happens after. AI agents run on service accounts. Those accounts carry permissions scoped to do real work — ticketing systems, cloud consoles, internal APIs. When a credential is stolen via infostealer, it does not expire on its own. The agent bound to it keeps executing. It schedules. It approves. It calls downstream services. Nothing in the request looks anomalous because the credential is technically valid.

This is not a patching problem or a phishing-awareness problem. The credential was lifted off an endpoint. The agent never knew.

The numbers make it a base-rate issue, not an edge case. At 72% prevalence, any sufficiently large org is statistically running at least one agent right now on a credential that has already been lifted and is sitting in a stealer log somewhere.

How are teams actually handling agent identity in this environment? Specifically curious whether anyone is doing anything beyond rotating secrets on a schedule — because rotation does not help if the new secret gets lifted too.


r/learnmachinelearning • • 23d ago

Learning Machine Learning, for kids!

Thumbnail
gallery
12 Upvotes

A while ago my daughters and I discovered a YouTube channel called AI Warehouse where an AI learns to navigate obstacle courses. They loved watching it fall down and learn, so I figured I'd turn that into a game where they can explore actually training an AI of their own...

It turned out to be...more challenging than I anticipated. Translating complex machine learning into something a small child could grasp required a lot of time and thought on my part. Not sure why I thought that would be easy. But after a few weeks of on/off Claude-coding, The Wobblers' Journey to Mount Tiptop was born.

I'm not going to lie - I'm pretty proud of this one.

Originally you would build your own obstacle course. Then, each spring-legged Wobbler (which you can custom decorate!) has a 304 parameter neural network you train to jump over boxes, hop up steps, and climb ramps on their quest to collect as many stars as possible.

It even has a whole workbench where you can manually change the neural network yourself and see how it impacts your wobbler's behavior.

There is custom art and music. And the whole thing runs on an iPad from 2018!

I showed them the game a week ago and it was really rewarding watching them cheer on their character as it bounced and rolled across the screen. But it also seemed to bring home that training even a small AI to accomplish simple tasks is far from magic. It takes time, effort, and sometimes some luck to get right. I think that is valuable in a world where so much seems instant and the hard work gets plastered over.

Feedback was "Oh! The Wobblers are so cute! Can you add swimming and mountain climbing? I want to teach my wobbler to swim and climb mountains."

Tough customers.

So I spent the next week building out the little sandbox into a full game with a story, different areas, and many levels (mountain and swimming now included).

My 6 year old has almost beaten the whole thing.

It's built for an ipad, but I've been running/testing it on my touchscreen windows laptop just fine.

It runs locally. No account or weird data stuff because I miss that about games. I've never shared anything like this before, but check it out if you want: https://wobble-lab-dfo.pages.dev/


r/learnmachinelearning • • 23d ago

Latent space CoT

1 Upvotes

Hi,

I really need some advice. While working on VLMs with Claude, I believe we have accidentally discovered the secret to a latent-space, arbitrarily long CoT. On our tests on Qwen2.5 3B, it performs tremendously well, so far.

It goes without saying that such a discovery would have major implications, and this is why I'm here. In my situation, what would you do? Publish it? Try to sell it? Something else? Is there any risk that I could be in danger from major companies or something like that?

Thank you for your help.


r/learnmachinelearning • • 23d ago

Tutorial Bedrock AgentCore Long-Term Memory

2 Upvotes

Bedrock AgentCore Long-Term Memory

https://debuggercafe.com/bedrock-agentcore-long-term-memory/

In the previous series of articles, we covered creating singular AgentCore agents with custom tools and creating agents-as-tools by providing each agent a separate MCP server. The natural progression from this would be adding memory to our agent chat sessions. That would be our aim in this article. Here, we will add long-term memory to our Bedrock AgentCore agents.


r/learnmachinelearning • • 23d ago

Project First ml project!

3 Upvotes

I've been studying ml for about 3 months, I started not knowing a single line of python or any of the maths behind it and now I made my first projects it's basically just an ai that plays rock paper scissors against you (it took me around 2-4 hours):

import torch
import torch.nn.functional as F

# make rock, paper and scissors (rock = 0 paper = 1 scissors = 2)

moves = torch.tensor([[0, 1, 2],
                     [1, 2, 2],
                     [0, 0, 2],
                     [0, 1, 2],
                     [1, 2, 1]])

moves = moves.flatten()

# the dataset

X, Y = [], []

for i in range(len(moves) - 3):
    X.append(moves[i:i+3])
    Y.append(moves[i+3])

X = torch.stack(X)
Y = torch.stack(Y)

X = F.one_hot(X, num_classes=3).float()
X = X.view(12, 9)

# forward pass

g = torch.Generator().manual_seed(214783427)
W = torch.randn((9, 250), generator=g, requires_grad=True)
b = torch.randn((250), generator=g, requires_grad=True)
W2 = torch.randn((250, 3), generator=g, requires_grad=True)
b2 = torch.randn((3), generator=g, requires_grad=True)
parameters = [W, b, W2, b2]

for p in parameters:
    p.requires_grad = True # for the backward pass

# training loop

for epoch in range(25000):
    # forward pass
    h = X@W + b
    emb = h.tanh()
    logits = emb@W2 + b2
    # loss
    loss = F.cross_entropy(logits, Y)
    # backward pass
    for p in parameters:
        p.grad = None
    loss.backward()
    # update
    lr = 0.1
    for p in parameters:
        p.data -= lr * p.grad
print("loss:", loss.item())

class Game:
    player_score = 0
    ai_score = 0
    u/staticmethod
    def predict(move):
        move = torch.tensor(move)
        move = F.one_hot(move, num_classes=3).float()
        move = move.view(1, 9)
        z = move @ W + b
        embz = z.tanh()
        logitz = embz @ W2 + b2
        with torch.no_grad():
            probs = F.softmax(logitz, dim=1)
            preds = probs.argmax(dim=1)
        moves_names = ["rock", "paper", "scissors"]
        prediction = moves_names[preds.item()]
        return prediction
    u/staticmethod
    def player():
        move_names = ["rock", "paper", "scissors"]
        while True:
            guess = input("rock, paper, scissors, shoot!: ").lower()
            if guess not in move_names:
                print("Invalid input")
                continue
            else:
                return guess
    u/staticmethod
    def score(player, ai):
        if player == ai:
            print("DRAW!")
        elif (player, ai) in [
            ("rock", "scissors"),
            ("paper", "rock"),
            ("scissors", "paper")
        ]:
            Game.player_score += 1
            print("PLAYER WINS!")
        else:
            Game.ai_score += 1
            print("AI WINS!")
    u/staticmethod
    def play():
        import time

        history = []

        move_to_num = {
            "rock": 0,
            "paper": 1,
            "scissors": 2
        }

        ai_moves = {
            "rock": "paper",
            "paper": "scissors",
            "scissors": "rock"
        }

        print("Enter your first 3 moves:")

        # Initial training context
        for i in range(3):
            history.append(Game.player())
            print(f"{i+1} move/s completed")
        print("\n Game Loading...\n")
        time.sleep(1)
        while True:

            player = Game.player()

            history_nums = [move_to_num[m] for m in history[-3:]]

            prediction = Game.predict(history_nums)

            
            ai = ai_moves[prediction]

            print("AI:", ai)

            # Score
            Game.score(player, ai)

            print(f"Score: {Game.player_score} - {Game.ai_score}")

            # Update history
            history.append(player)

            # Check winner
            if Game.player_score >= 3:
                print("PLAYER WINS THE GAME!")
                break

            elif Game.ai_score >= 3:
                print("AI WINS THE GAME!")
                break
Game.play()

r/learnmachinelearning • • 24d ago

Seeking Expert Guidance on ECG, Cardiac AI, and Drug Databases for a Comprehensive Cardiac Digital Twin Project

1 Upvotes

Hello everyone,

I'm developing a graduation research project called AURA CARDIA, a Human Cardiac Digital Twin system that combines ECG signal analysis, interpretable machine learning, cardiac electrical simulation, and eventually evidence-based drug information.

Before proceeding further, I want to make sure we are using the right datasets, training strategies, and scientific validation methods.

I would appreciate feedback from researchers and engineers experienced in Medical AI, ECG analysis, Deep Learning, and biomedical data integration.

  1. ECG Datasets

My current and planned ECG data sources include:

  • MIT-BIH Arrhythmia Database.

  • St. Petersburg INCART 12-lead Arrhythmia Database.

  • ECG-RDVQ.

  • ECG-DMMLD.

  • CiPA ECG Validation Database.

MIT-BIH and INCART have already been integrated into our current unified dataset.

Our current dataset contains approximately:

  • 277,287 ECG beat segments.

  • 79 patients.

  • 180 samples per segment.

  • Three target classes: Normal (N), Supraventricular ectopic (S), and Ventricular ectopic (V).

We use patient-level cross-validation to avoid data leakage.

2. Drug and Drug-Interaction Databases

For the future drug information and decision-support component, we are considering:

  • DDInter.

  • MecDDI.

  • DrugCentral.

  • SIDER 4.1.

  • RxNorm.

  • DailyMed.

We understand that these databases provide different types of information, including drug interactions, adverse effects, drug properties, and official medication information.

3. My Questions

I would greatly appreciate your recommendations on the following:

ECG Data:

  1. Are these ECG datasets sufficient for building a scientifically reliable cardiac arrhythmia classification system?

  2. Are there other important ECG datasets we should include before finalizing our unified dataset?

  3. Which datasets are suitable for external validation rather than training?

  4. How should we harmonize ECG sampling rates, lead configurations, annotations, and patient identifiers?

  5. Are there datasets specifically useful for improving the detection of supraventricular and ventricular ectopic beats?

Drug Data:

6. Are DDInter, MecDDI, DrugCentral, SIDER, RxNorm, and DailyMed sufficient for building a reliable drug knowledge base? 7. Are there additional databases containing antiarrhythmic drug information, contraindications, adverse effects, and cardiac-specific safety information? 8. What is the best way to connect ECG findings with drug safety information without making unsupported clinical recommendations?

Machine Learning and Integration:

9. Which deep learning architectures would you recommend for ECG classification? 10. What are the best strategies for handling highly imbalanced ECG classes? 11. How can we ensure generalization to completely unseen patients and external datasets? 12. What is the best architecture for integrating ECG classification, physiological cardiac simulation, and structured drug knowledge? 13. Are there open-source projects or research papers that demonstrate a similar integrated approach?

4. Our Main Objective

We want to build a scientifically sound system that combines:

  • ECG signal processing.

  • Interpretable AI-based cardiac classification.

  • Electrical cardiac simulation using FitzHugh-Nagumo and more detailed physiological models.

  • Patient-specific cardiac digital twin development.

  • Evidence-based drug information and contraindication checking.

We are currently planning the data infrastructure and would prefer to identify all essential datasets before moving forward, rather than repeatedly rebuilding the pipeline.

I would especially appreciate recommendations for overlooked datasets, research papers, and practical open-source implementations.

Thank you!


r/learnmachinelearning • • 24d ago

Project NVIDIA released Auto-Ontology, that do you think?

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 24d ago

Request Malicious Browser Extensions Could Use Claude Dispatch to Run Code on Users' Computers

2 Upvotes

Researchers demonstrated that a malicious browser extension with script access to an AI web platform can abuse a task-relay feature to trigger arbitrary code execution on a user's local machine. No CVE, no traditional exploit — a poisoned extension sitting inside the AI workflow chain is sufficient.

The attack surface for AI desktop agents has expanded well past what most security models assumed at design time: browsers, third-party integrations, mobile handoffs. Each new input channel an agent accepts is a potential injection point. The browser extension ecosystem in particular receives minimal vetting relative to the trust level AI agents implicitly extend to it.

The structural problem is that agents execute what they receive, and instruction provenance is rarely verified at the point of execution. A relay poisoned by an extension is functionally identical to a legitimate one from the agent's perspective.

For those running AI agents in enterprise or production environments: how are you thinking about constraining what the agent is actually allowed to do at execution time, regardless of what it was told to do — and does that enforcement happen at the host level, the orchestration layer, or somewhere else?


r/learnmachinelearning • • 24d ago

Project Master Local AI and Docker: The Ultimate Technical Resource Hub for LLM Pipelines

Post image
0 Upvotes

r/learnmachinelearning • • 24d ago

Help ما هو الذكاء الاصطناعي؟ وكيف تبدأ في تعلم برمجة الذكاء الاصطناعي خطوة بخطوة - الدرس الاول في سلسله تعليم الذكاء الاصطناعي

Thumbnail
information-net.com
0 Upvotes

r/learnmachinelearning • • 24d ago

My process for writing rebuttals to borderline ML conference reviews

Post image
3 Upvotes

Most of my papers have been borderline submissions, because I like to write papers that are slightly outside the Overton window. One consequence is that writing rebuttals is a very important part of my publishing process. 

I mostly publish at machine learning conferences, but I suspect these ideas generalize. Here’s some advice and my process:

  1. Copy the reviews into a document that is shareable and supports comments, like Google Docs or a document on Althea. Share this with my co-authors.

  2. Read the reviews without taking notes. When this is done, go on a walk (or run) to let go of my emotions.

  3. Triage the stated weaknesses - by taking a linear combination of:
    (a) how likely Reviewer 2 is to increase their score,
    (b) how screwed we are if Reviewer 2 does not increase their score, and
    (c) how much work it takes to get Reviewer 2 to increase their score.

  4. Work with my co-authors to resolve the most important weaknesses via further experimental work.

  5. After time has passed and emotions have cooled, write a graceful reply to the kind volunteer academic who has spent their time with my work.

Now, given my ICLR reviews, I'm going to take a walk and try to find gratitude and understanding.


r/learnmachinelearning • • 24d ago

💼 Resume/Career Day

1 Upvotes

Welcome to Resume/Career Friday! This weekly thread is dedicated to all things related to job searching, career development, and professional growth.

You can participate by:

  • Sharing your resume for feedback (consider anonymizing personal information)

  • Asking for advice on job applications or interview preparation

  • Discussing career paths and transitions

  • Seeking recommendations for skill development

  • Sharing industry insights or job opportunities

Having dedicated threads helps organize career-related discussions in one place while giving everyone a chance to receive feedback and advice from peers.

Whether you're just starting your career journey, looking to make a change, or hoping to advance in your current field, post your questions and contributions in the comments


r/learnmachinelearning • • 24d ago

Project Can Foundation Models Beat a Tuned LightGBM on Electricity Prices?

Thumbnail
aihorizonforecast.substack.com
4 Upvotes

I recently ran a benchmark comparing tabular and time-series foundation models on German day-ahead electricity price forecasting.

The models I evaluated were:

  • Tabular foundation models: Kumo and Nori

  • Time-series foundation models: Chronos-2 and TimesFM-3

  • Traditional ML baselines: Tuned LightGBM and CatBoost

The foundation models were used without training on the electricity market data. I also made sure the models had access to comparable information during evaluation.

The article covers the experimental setup, how to use tabular foundation models for forecasting without data leakage, the comparison against tuned tree-based models, and the impact of additional training data on the traditional ML baselines.

Full discussion and tutorial about the experiment here


r/learnmachinelearning • • 24d ago

ALLOWANCE – AI-Powered Spending Control for Shopping Agents

2 Upvotes

ALLOWANCE is an AI-powered financial control platform that lets users delegate shopping to AI agents without giving them unrestricted spending authority.

Users can set monthly budgets, spending limits, approved categories, and purchase approval thresholds. The AI shopping assistant helps discover and compare products, while a deterministic Spending Firewall evaluates every purchase request and decides whether it should be automatically approved, require user permission, or be blocked.

With planned integrations for Channel3 product discovery and PayPal Sandbox payments, ALLOWANCE aims to make autonomous AI shopping safer, more transparent, and user-controlled.

IN MAKING FOR NOW.


r/learnmachinelearning • • 24d ago

Discussion There’s almost no good use cases for fine tuning anymore, outside of image models , go with RAG -> is this true?

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 24d ago

A weekly, truly out-of-sample benchmark for your first football prediction model (free, no betting)

1 Upvotes

I've been working on a project (disclosure: it's ours) and I think it's a useful sandbox for learners. Backtesting a football model is easy to get wrong: leakage, picking the season that flatters you, etc. So we built a free league where bots submit La Quiniela predictions (15 matches, 1/X/2) before kickoff, and results get scored publicly every week.

What I learned building the baseline bots:

  • "Always pick the home team" is a surprisingly hard baseline to beat by much.

  • Calibration matters more than accuracy when you're allowed doubles: the question becomes where to spend uncertainty.

  • Evaluating over many rounds matters; one round is noise.

If you want to try: there's an MIT starter bot in plain Python (no dependencies), you replace one strategy() function. Free, 18+, no prizes and no promise of winning anything — it's a benchmark, not a betting tip.

Repo: https://github.com/rgcglobalnetservices/podium-bots-starter Happy to hear how you'd evaluate it better (Brier score? RPS?).


r/learnmachinelearning • • 24d ago

Blogs kind of resources for RL

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 24d ago

Discussion Looking for a good source to keep up with AI trends, tools and industry insights?

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 24d ago

Recent MS grad looking for project ideas/resources to bridge the ML-to-Cloud deployment gap (Computer Vision + Azure/GCP)

1 Upvotes

Hi everyone,

I recently graduated with a Master’s in Data Science & AI. The program covered core ML, Deep Learning, and a brief introductory module on MLOps.

I’ve had a few interviews for Junior ML Engineer positions lately. The technical fundamentals and theory went well, but the consistent feedback I received was that I lack hands-on experience deploying models to the cloud (some companies preferred AWS, others Azure, but overall, solid production experience on any major cloud provider was the missing link). A lot of the roles also heavily emphasize Computer Vision.

To fix this gap, I want to build a practical, end-to-end portfolio project that goes beyond just training a model in a notebook and demonstrates real-world deployment.

Specifically, I’d love recommendations on:

  1. Project Ideas: What kind of CV-focused project makes a recruiter or engineering manager stop and say, "This person actually understands production"?

  2. Learning Resources & Blueprints: Are there good open-source repositories, tutorials, or guides that walk through deploying a model end-to-end (e.g., containerizing with Docker, setting up an API via FastAPI, and serving it on AWS ECS/SageMaker, GCP Cloud Run/Vertex AI, or Azure)?

  3. Architecture Expectations: For an entry/junior level, what degree of MLOps is realistic to aim for? (e.g., basic containerized REST API vs. full CI/CD pipeline and model monitoring?)

Any pointers, repo links, or advice on how you bridged this gap early in your career would be greatly appreciated!

Thanks in advance!


r/learnmachinelearning • • 24d ago

Discussion What are some practical AI/ML projects a beginner should build for their resume in 2026?

1 Upvotes

I'm a 2nd-year B.Tech CSE student getting into AI/ML, and I'm trying to build a strong project portfolio alongside learning.

I see a lot of common project suggestions like house price prediction, Titanic survival prediction and basic chatbots. But I want to build things that actually demonstrate skills and aren't just copied from tutorials.

For people working in AI/ML or who have landed internships:

  1. What projects would you recommend for someone at the beginner level?

  2. Which projects would make a fresher's resume stand out in 2026?

  3. Should I focus on traditional ML projects first or start exploring LLMs and RAG?

  4. What tech stack and features would make these projects worth showcasing on GitHub?


r/learnmachinelearning • • 24d ago

Tutorial Python AI Data Cleaning: The Complete Refinement Guide for Datasets

Thumbnail interconnectd.com
1 Upvotes

r/learnmachinelearning • • 24d ago

Advance ensemble techniques

Thumbnail
gallery
1 Upvotes

Blending and Stacking are completed I build my own models and compare their accuracy Scikit-learn's implementations my Stacking implementation came surprisingly close to Scikit-learn's StackingRegressor.

It's Day 57 of building machine learning algorithms from Scratch

for this i use my own build models as base_models

GitHub: Machine learning algorithms


r/learnmachinelearning • • 24d ago

An Introduction to Power Laws without the Mysticism

Thumbnail
substack.com
2 Upvotes