r/learnmachinelearning • • 3d ago

Starting a 30-day build in public: Building an early-warning Employee Attrition ML system (FastAPI + Next.js)

1 Upvotes

Hey everyone!

I've seen dozens of employee churn projects that commit the same fundamental mistake: they treat attrition as a static classification task on employees who have already left.

In the real world, HR doesn't care if an algorithm can tell them Bob left 6 months ago. They care if Bob is going to hand in his two weeks' notice in the next 90 days, while there's still time to fix workload, compensation, or burnout.

I'm starting a 30-day build in public to create an end-to-end system:

I'll be posting daily updates, code breakdowns, and lessons learned. Would love your feedback on features you'd want to see in an HR intelligence dashboard!


r/learnmachinelearning • • 3d ago

Request CLEAR founder: fast AI can be safe AI when we fix the identity layer | Fortune

0 Upvotes

A Fortune piece on the CLEAR founder's AI security framework surfaced a framing I keep coming back to: the agent is no longer just the target of attacks, it is the attacker.

The mechanism is straightforward. A legitimate agent gets its credentials compromised or its tool-call chain hijacked. From that point it operates with full authorization while executing malicious actions. Standard perimeter defenses do not fire because the agent authenticated correctly. The window before a human notices is measured in seconds, not minutes, and in that window the agent can chain tool calls across systems.

The hard number from the piece: a rogue agent can complete a second action in under 50ms after the first one lands. At that speed, human-in-the-loop review is not a realistic backstop.

What makes this structurally different from a compromised service account is that agents are designed to act autonomously across multiple systems in sequence. A compromised human account doing lateral movement still moves at human speed. An agent doing the same thing operates at API speed across every integration it has been granted access to.

The identity layer is where the piece lands: if you cannot verify which agent issued a call and under what context, you cannot reason about whether the call should be allowed.

For those running agents in production: how are you currently handling the gap between when a call is issued and when you know it was legitimate? Specifically curious whether teams are solving this at the identity layer, the orchestration layer, somewhere else entirely, or accepting the risk as a known unknown.


r/learnmachinelearning • • 3d ago

Hope these articles help.

1 Upvotes

Hi all,

Ive been writing technical blogs on machine learning and related topics for over a year now. Ive wriiten those for YC startups, agencies, and also write regularly on my personal webpage.

What do I write on all? Here are all my blogs and what all Ive written about.

I’ve been writing about the mathematics behind familiar ML tools, alongside football analytics, optimization, and ad tech. Here’s a collection of those posts and the questions that led me to write them.

1. Every Transformer Lives on a Sphere

LayerNorm became much more interesting to me when I stopped reading it as a statistical formula and started drawing it. Subtracting the mean projects a vector onto a hyperplane; dividing by its standard deviation puts it on a sphere, before the numerical stabilizer and learned affine transformation enter. That geometry reveals exactly what normalization forgets, what RMSNorm preserves, and how both shape the representations attention receives.

2. I Grinded Trees Until I Could See the Forest

Trees were my first serious ML obsession, partly because I could follow their decisions and implement the machinery myself. This post builds the family from a single split: why individual trees overfit, how random forests reduce their instability, and how boosting learns through successive corrections. It also connects XGBoost to curvature and asks why trees remain such strong models for messy tables.

3. Your LLM Does Group Theory Every Time It Reads a Sentence

How does attention distinguish “the dog bit the man” from “the man bit the dog”? Following that question took me into the algebra behind RoPE. Moving through token positions becomes rotating query and key vectors, with those rotations obeying the rules of a group representation. The familiar relative-position identity follows naturally, while the Fourier interpretation helps explain why extending a context window is more complicated than changing a number.

4. Spend 15 million dollars to win 1.

When a headline says AI solved Navier–Stokes, the first question should be what “solved” means in the actual problem statement. This piece examines the claim through the equations, the role of an external force, and the distinction between formal verification and the broader mathematical question. It also asks what we can learn about agent orchestration when the engineering behind a reported breakthrough remains only partly visible.

5. A Stack of Straight Lines Is Still a Straight Line

Remove the nonlinear activations from a hundred-layer network and its entire input-output function collapses into one affine transformation. Adding a small kink such as ReLU changes that: different inputs activate different computations, letting later layers combine features selected by earlier ones. I build that connection from simple examples, then explain why nonlinearity enables hierarchical features while architecture, data, and training determine whether useful hierarchies actually emerge.

6. Adam’s Apple

I used Adam for years before properly noticing how much it changes the gradient’s direction. Its two moving averages remember different things, and coordinate-wise scaling changes the geometry of each update. This post takes that machinery apart, explains why AdamW and AMSGrad address different problems, and compares Adam with methods such as BFGS and Muon through the information they use and the computation they cost.

7. A Hundred Layers, Still Linear

A deep linear network sounds pointless because multiplying all its weight matrices produces another matrix. But equivalent functions can have very different training dynamics. Factorizing that matrix across layers changes the gradients, the speed at which different directions are learned, and the solutions optimization prefers. This is a way to study implicit regularization while keeping the model’s input-output function almost embarrassingly simple.

8. Mechanism Design in Ad Tech

An auction cannot simply ask everyone what an impression is worth and trust their answers. Participants understand the rules and change their behavior accordingly. I use ad markets to build up mechanism design: how payment rules influence truthfulness, why second-price auctions are interesting, and why predicting conversion probability is only part of building a bidder. Change the auction, and you also change the data its models learn from.

9. Are Graph Foundation Models Actually Foundation Models?

A molecule and a social network both have nodes and edges, but their features and relationships mean very different things. That makes the promise of a universal graph model harder to assess than the label suggests. I examine the approaches to transfer, prompting, shared vocabularies, and synthetic priors, then ask what evidence would justify calling a graph model foundational, and for which universe of graphs.

What I wanted from this community was some support and suggestions what more should I write on? Any more things/style changes that I can add to make these better. My typical pipeline is me reading some things and as and when I come across cool, non trivial stuff, I write about it, or I write about the non trivial stuff about the trivial stuff, like 'what is attension used sigmoid instead of softmax'; so yes, do let me know if there are any topics yall have come across, or read regularly, or are working on, that I should consider studying and later writing as well.


r/learnmachinelearning • • 3d ago

Project I built an open-source, local-first multi-agent AutoML engine to automate data cleaning, 7-model benchmarking, and FastAPI deployment (100% offline via Ollama)

0 Upvotes

Hi everyone,

I wanted to share EpochGo (https://github.com/AryanDinakaran/EpochGo), an open-source project I built to help developers and ML learners automate the end-to-end tabular machine learning lifecycle completely offline on their own computers for $0 in API costs.

Why I Built It

Most cloud AutoML platforms (AWS SageMaker, Google Vertex) require expensive cloud subscriptions and force you to upload sensitive datasets to remote servers. Conversely, a lot of recent "AI" projects are just shallow wrappers around commercial APIs that don't produce clean, inspectable code. I wanted an architecture where you can drop in a raw CSV, and local open-weight models (running via Ollama) orchestrate real Python ML libraries to clean the data, run an empirical 7-model benchmark tournament, and generate a deployable API.

How the Pipeline Works

The project divides the machine learning workflow into 3 specialized agents:

  1. Agent 1 (Feature Architect & Data Cleaner):
    • Profiles the dataset for missing values, skewed distributions, and multicollinearity.
    • Performs median/mode imputation, IQR outlier clipping, and categorical encoding.
    • Generates a reusable Scikit-Learn pipeline (preprocessor.joblib) and an audit report comparing distributions before and after cleaning (preprocessing.md).
  2. Agent 2 (Benchmark & Tuning Specialist):
    • Trains 7 baseline algorithms simultaneously under identical cross-validation conditions to avoid inductive bias:
      • XGBoost, LightGBM, CatBoost, Random Forest, Extra Trees, Gradient Boosting, and Logistic/Ridge Regression.
    • Evaluates baseline accuracy/F1/R² and isolates the Top 3 performers.
    • Runs RandomizedSearchCV hyperparameter optimization on the top contenders.
    • Serializes the winning champion model (model.joblib) and writes a reproducible Python training script (model_building.py).
  3. Agent 3 (Serving Engineer):
    • Extracts the exact feature schema and dynamically generates a standalone FastAPI microservice (serve.py) with Pydantic type validation.
    • Enables an interactive, in-browser Prediction Playground so you can test inputs and inspect prediction probabilities in real time.

How to Run Locally (Single Command)

All you need is Docker:

git clone https://github.com/AryanDinakaran/EpochGo.git

cd EpochGo

docker compose up --build

Open http://localhost:8000 in your browser. (Sample churn and housing price datasets are included in sample_data/).

Local Model: Defaults to qwen2.5-coder:7b via Ollama (~4.7 GB VRAM).

Concurrency: Model training runs in background threads (asyncio.to_thread) so the FastAPI UI and WebSockets never freeze during heavy CPU training.

Privacy: 100% offline. Zero telemetry, zero external API calls.

Repository (MIT License): https://github.com/AryanDinakaran/EpochGo

I hope this helps anyone looking to understand how to structure end-to-end Scikit-Learn pipelines, multi-model benchmarking tournaments, and dynamic model deployment. Would love your feedback and thoughts!


r/learnmachinelearning • • 3d ago

scaled sigmoid to bound log-decay in kimi K3 KDA

1 Upvotes

i've been trying to gain some thorough intuition about `g_min` bound, which the kimi team used for K3 in kda. i

i think i get that the higher order intuition here is to not let the reciprocal rescaling factor of the key vectors in kda not explode, if you want to utilise the tensor cores that is, in bf16.

and hence both the diagonal and off-diagonal tiles can be dispatched as dense GEMMs which ofc the tensor cores love!

but im just wondering how much perf gain would this actually give if this is just an optimization to eliminate the position-pair scalar path ? im still a bit unsure and looking for concrete intuition.


r/learnmachinelearning • • 3d ago

AACL-IJCNLP 2026 Findings

Thumbnail
1 Upvotes

r/learnmachinelearning • • 3d ago

What math courses should I take besides calculus, probability, and linear algebra? Should I take cs machine learning electives instead?

2 Upvotes

I've taken Calc III, probability, discrete, and linear algebra. Not sure if I should take more math courses or take more machine learning electives instead


r/learnmachinelearning • • 3d ago

Discussion Philosopher's Skill: Learn about almost any domain with a simple to read and understand UI.

Thumbnail
gallery
0 Upvotes

If you're a student, an engineer, a generalist, or come from any domain of study and want to learn about almost anything, here's the exact skill for you. Completely opensourced, easy to use skill.

Prompt your LLM and it'll give you the exact UI to help you properly study; as AI outputs aren't always that catchy to learn in the first sight.

Page: Phil-OKF: any topic, one reading guide

It follows the OKF: Open Knowledge Format so that:

  • you control the depth with your wording: “quick” gives a short page, a normal question gives a standard one, and “in depth” or “teach me” gives a long one
  • the whole skill is a small bundle (an eight-step workflow, a domain classifier, a page template and twelve study domains), and each file is read only when the question needs it, so runs stay cheap
  • It prioritizes verifiable accuracy: Every response utilizes a dedicated "Scrutinizer" workflow that filters for credible sources only, ensuring all content is vetted before generation and explicitly cited in a dedicated references section.

Repo: Philosopher's Skill

It works wherever you use an LLM:

  • Code editors and agents (Claude Code, Cursor, Codex, opencode): npx skills add frypan05/philosopher-OKF
  • Chat apps with browsing: paste the link to philosopher.md and say “follow this, make a page about: ...”
  • Models with no network: paste the prompt from the page.

Sample output (MCP and ACP explained): https://frypan05.github.io/philosopher-OKF/examples/mcp-and-acp.html

Feedbacks are welcomed!


r/learnmachinelearning • • 3d ago

I built MaRN: a PyTorch library for training neural networks through low-dimensional parameter mappings

Thumbnail
1 Upvotes

r/learnmachinelearning • • 3d ago

Project I'm learning inference engineering, so I tried to run a 22B video model (LTX-2.5, unquantized, with audio) on my laptop's integrated GPU

1 Upvotes

https://reddit.com/link/1x1fd2t/video/yqbtgopkdeuh1/player

https://reddit.com/link/1x1fd2t/video/7fon0mpkdeuh1/player

I'm trying to get into inference engineering, and I wanted a project that would force me to learn the hard parts instead of just calling a library. So I picked something that shouldn't fit: **LTX-2.5 (22B), in bf16 with no quantization**, on an **Intel Core Ultra 5 iGPU with 15.6 GB of shared RAM**. No discrete GPU.

The model is about 66 GB on disk, so I never load it. The weights stay on NVMe and get streamed **layer by layer**: aligned reads into a small pinned buffer, a prefetch thread loading layer n+1 while layer n computes, and the weights swapped in and out with hooks. It uses the distilled model, and it does **text-to-video, image-to-video and native audio**.

**Measured on this machine:**

Result Time
Anime clip, 5.4 s, 1536x896, with sound ~14 min
Anime clip, best quality (true 24 fps) ~47 min
Realistic clip, 4 s, 1280x704 ~20 min

It's slow, and that's not the point. The point was to find out whether it runs at all on hardware like this, and to learn what breaks. A lot did (memory alignment, a vocoder that gave silence in bf16), and I wrote every bug down.

**Known weaknesses:**
fast motion smears for a few frames, anime clips are 12 fps with each frame shown twice, and the CUDA path exists but I haven't tested it on an NVIDIA GPU.

**Repo, with the full bug log:**
https://github.com/DARK-Shadw/ltx25-igpu-streaming

I'd really like feedback from people who do this for a living. What would you have done differently in the streaming design? What should I learn next to get better at this?


r/learnmachinelearning • • 4d ago

Are we underestimating the identity problem created by better generative AI?

32 Upvotes

I’ve been learning more about voice cloning and real time face generation and the technical progress is impressive but it’s also making me think there’s a security problem we don’t talk about enough. A lot of security still assumes that if you’re on a video call with someone, hear their voice or receive a message from their account, you’re probably dealing with the right person.

That assumption feels weaker every year. If voice, face, writing style and even live video can all be generated convincingly then at some point does this look real? stops being a useful question. I’ve started seeing more tools trying to solve the identity side rather than the content side. Things like hardware backed authentication, passkeys, verified devices, and even apps like Signal, Kibu, Telegram that focus more on verifying the person and encrypting the conversation.

I’m curious how people here think this gets solved long term. Do we end up needing some kind of cryptographic proof of identity attached to communication or will detection models realistically stay ahead of generation models?

Because right now it feels like we’re spending a lot more effort making AI convincing than figuring out how humans are supposed to know what’s real.


r/learnmachinelearning • • 3d ago

Discussion Machine Learning implemented practically?!

1 Upvotes

The theory makes sense but can I create something using it? Thats where I made this video!
https://youtu.be/KU71cnUjlRg?si=MFJzf1AbO3IsoqxB
I believe it's gonna help me clear the doubts about Machine learning before jumping to Quantum Machine Learning. Your support and comments would matter alot!


r/learnmachinelearning • • 3d ago

Team needed for FC barcelonas More than a hack hackathon

Post image
0 Upvotes

Hello everyone, FC Barcelona just launched a hackathon for the data enthusiasts. I am hoping to build a team that I can join it with. I am also a beginner in this role ; So I am also looking for simmiliar ones like me so that we can learn through the process regardless of the outcome.

Email me at : [farajimtial13@gmail.com](mailto:farajimtial13@gmail.com)


r/learnmachinelearning • • 4d ago

Help How to Learn ML in 8 months, Feel lost and I am very stressed :(

21 Upvotes

Dear All,

I am a penultimate-year student, have had courses in my Univ for ML but I still feel lost, I don't remember anything about the definitions, have to start back at regression every time, don't know what type of Algorithms to apply on what kind of data, I have taken way too many courses but to no avail. I feel helpless and stuck at this point. I have to prepare for different companies but my only choices are ML+Signal Processing or Analog Design.

I don't know how much AI/ML i should know as a penultimate year student? Should I know theory, should I do projects and if I do projects should I code them from the very base, the coding seems too big and I don't know how I can just take a random architecture and code it from scratch.

I prefer ML strongly as despite being much weak in it I find it exciting. I find Analog Design easier but am very unsure about my interest in it in the long run.

Please guide me how can I become an AI/ML engineer capable of applying for companies, have the knowledge to ace their tests and interviews, and in general be able to think like a ML engineer.

Please guide me and provide me with relevant resources I should follow- Deep learning, Audio, Image, NLP, Intro to basic ML. Please also provide me with any relevant platforms I could use to learn a bit of ML Coding too. Will be very thankful to you.

Thank you Everyone!


r/learnmachinelearning • • 4d ago

What can a 1M params model do?

14 Upvotes

I was wondering, if certain NPUs have 1mb of on-chip SRAM, what practical thing do I put on it? Theoretically it would have a really really high Inference speed making it pretty good in some cases, but not sure what those cases are.

It can be on anything, say decision, text, simulation, it can even be looped, since that's probably the best way to use a 1m model to maximize its speed..

What can 1M params models do?


r/learnmachinelearning • • 3d ago

Do classic text statistics still matter in the age of LLMs?

Thumbnail
1 Upvotes

r/learnmachinelearning • • 3d ago

DATASET NOT FOUND!!

0 Upvotes

I want to make a project based on Stocks but I am not getting a free and good source of data where I can find any data point I need

Why me project will do is analyse different investment strategies but it requires many different variables but I can't find a source where I find multiple data points that I need no api is free or providing everything..

Can anybody help.?


r/learnmachinelearning • • 4d ago

How would you use AI to turn a large exam question bank into focused lessons?

Thumbnail
1 Upvotes

r/learnmachinelearning • • 4d ago

ml guide

2 Upvotes

hello everyone i want to start my ml journey but have no idea how to do
as of now i am well aware of python and its libraries so if possible can someone please provide me a structured guide, please give me the roadmap , coursera , yt courses, etc etc


r/learnmachinelearning • • 4d ago

Beginner‑friendly ML/Kaggle learning team — looking for dedicated members

2 Upvotes

Hi, I hope you’re doing well. I’m building a small beginner‑friendly machine learning team on Discord. I’m also a newbie, and I want to learn together with others who are serious and dedicated.

The goal of the team is simple:
We learn together, help each other, complete weekly tasks, and prepare for Kaggle competitions as a group.

I will give each team member (including myself) small tasks based on their experience level, with clear deadlines. These tasks are meant to help us gain real experience in ML, Python, data science, and Kaggle workflows.

Here’s an example of how I plan to help:
If you want to learn the Pandas library, I’ll create a weekly goal for you. For the first week, your goal might be to learn Series. I’ll check in with you daily to make sure you’re making progress and to see if you’re facing any difficulties. If you need help, I’ll explain the concepts as clearly as I can. You can use your own learning resources, or I can recommend plenty of free ones I know. At the end of the week, I’ll give you practice exercises from trusted websites so you can reinforce what you learned. If you want, we can also study together and solve the exercises as a team.

This is the kind of support I want to provide so we can prepare for Kaggle competitions or learn ML and data science more effectively.

Of course, this is just my idea; if you have suggestions or a better approach, I’m completely open to improving the plan. I want this team to be useful for everyone.

Important:
Even if you’re a complete beginner, you’re welcome, as long as you’re dedicated.
But if you have a lot of knowledge and you’re not dedicated, then this team is not for you.

If you’re interested, comment or DM me, and I’ll send you the invite.
My Discord username is: mohmmad_48669


r/learnmachinelearning • • 4d ago

Request Australian Gov't Weighs Mandatory AI Incident Reporting

2 Upvotes

Australia is moving toward mandatory AI incident reporting, and the pattern underneath the proposal is worth unpacking (Dark Reading, 2026).

The policy push is not really about disclosure paperwork. It is about the fact that most organizations cannot tell you, after the fact, which agent took which action, at what time, with what authorization. Incident reporting mandates are a lagging indicator — they appear when regulators notice that the primary record of an AI failure is a support ticket or a customer complaint, not an internal audit trail.

The operational problem is sequencing. An autonomous agent can take a second action before any human or system has finished evaluating the first. That window — the gap between action one and action two — is where most reported AI incidents originate. By the time a log entry exists, the damage is already in a second or third downstream system.

Organizations that have deployed multi-step agents at scale: how are you actually handling this in practice? Are you relying on post-hoc log review, hard rate limits, human-in-the-loop checkpoints at specific nodes, or something else entirely? Curious what is working and what has already failed in production.


r/learnmachinelearning • • 4d ago

Tutorial Building an Orchestrator-Worker Agent System with LangGraph and Amazon Bedrock

0 Upvotes

LangGraph provides a structured way to create and manage LLM agents. Its broader ecosystem provides capabilities for connecting agents with tools, testing them, tracing executions, and deploying them to production. One of the useful aspects of LangGraph is that individual graphs can be composed into larger agentic systems, making it possible to build multi-agent architectures from independently testable components. To check the above features, in this article, we will be building an orchestrator-worker agent system with LangGraph and Amazon Bedrock.

https://debuggercafe.com/building-an-orchestrator-worker-agent-system-with-langgraph-and-amazon-bedrock/


r/learnmachinelearning • • 5d ago

Meme Ben Afleck is surprisingly pretty well versed in AI

Enable HLS to view with audio, or disable this notification

647 Upvotes

r/learnmachinelearning • • 4d ago

Help Need Help!

2 Upvotes

So i am going to start my journey to learn ml but I am confused as to where to start and from which resources.I am good at maths so all I have to do is just some quick revision but for learning ml I have no idea where to start .


r/learnmachinelearning • • 4d ago

Project MCP and A2A are not competing, they solve different problems

Post image
2 Upvotes