r/learnmachinelearning • • 2d ago

WiML/NeurIPS Paris 2026 – Cocktail Reception Guest Ticket Available

Thumbnail reddit.com
2 Upvotes

r/learnmachinelearning • • 2d ago

Getting confused with the vector logic behind GAN noise vectors

1 Upvotes

I do get the fact that each z is going to be a random vector let's day with 64 columns, Z_DIM = 64. But why exactly 64, does it have anything to do with the vector space, what kind of difference does it make to have Z_DIM= 2 and 64, i initially confused it with the features of an image actually.


r/learnmachinelearning • • 1d ago

Your LLM is LYING to you. Here's how to fix it.

Thumbnail
youtube.com
0 Upvotes

I built a Hello World RAG App in Python

Normal LLM = Answers from training data (can hallucinate)

RAG LLM = Answers from YOUR documents

I asked it Saudi it didn't say Saudi Arabia.

It said "Contractor at Saudi Aramco" - because it read MY LinkedIn PDF.

This is how it works:

  1. Load PDF
  2. Split into Chunks
  3. Create Embeddings (Google Gemini)
  4. Store in ChromaDB
  5. Search Top 3 Chunks
  6. Send Context + Question to Groq LLM

Tech: Python + LangChain + ChromaDB + Groq + Gemini Embeddings

Save this for your next interview

Comment "RAG" and I'll send you the full code + next part.

Follow for AI Engineer series - Part 2 coming next.


r/learnmachinelearning • • 2d ago

Project I built a 3D digital twin of my college, with an AI guide that walks you to any building

Thumbnail
linkedin.com
1 Upvotes

I built a 3D digital twin of my college 🏛️

Walk around MVSR Engineering College in 3D, with real sunlight and live weather. Ask Mitra, the AI guide, anything in English, Hindi or Telugu, and she walks you to the building.

🔗 Try it (no sign-up): https://campus-sphere-suhruthsais-projects.vercel.app

Behind the login it also handles attendance, certificates, a student document locker, placements and NAAC/NBA tracking, kept private to protect student data.

Built with React, Three.js, FastAPI and PostgreSQL. Would love your feedback! 🙌


r/learnmachinelearning • • 2d ago

Career Coursera Plus: Save $160 (40% OFF) on 10,000+ Python & Tech Courses

Thumbnail
pythoncoursesonline.com
1 Upvotes

r/learnmachinelearning • • 2d ago

Software engineer looking to connect with CS, ML and AI researchers

1 Upvotes

Hey everyone! I’m a software engineer with five years of experience, and I’d like to move into a research role. I’m interested in computer science, especially machine learning and deep learning. I’d love to connect with people doing research in these areas, whether you’re a PhD student, an academic researcher, or working in an industry lab.

If you’ve made the switch from software engineering to research, what was your first research project, and how did you get involved? I’m especially curious about how you went from implementing other people’s ideas to finding a question of your own to investigate.

If you’re open to a quick chat, I’d love to hear what you’re working on. Feel free to comment or DM me. I’d also appreciate recommendations for reading groups or research communities that welcome software engineers.

#ComputerScience #AIResearch #MachineLearning #DeepLearning #SoftwareEngineering #ResearchCareers


r/learnmachinelearning • • 2d ago

LLM Explained

9 Upvotes

r/learnmachinelearning • • 2d ago

I fed a model pure noise and got 87% accuracy. Here's the mistake (with code you can run)

0 Upvotes

A classic pitfall that's easy to make when you're learning: doing feature selection on the whole dataset before cross-validation.

To see how bad it can be, I generated data where there is nothing to learn: 100 samples, 5,000 random features, and random 0/1 labels. Any honest model should score about 50%.

The leaky version selects the 20 "best" features using all the data, then cross-validates:

import numpy as np
from sklearn.feature_selection import SelectKBest, f_classif
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cross_val_score, StratifiedKFold

rng = np.random.default_rng(0)
X = rng.normal(size=(100, 5000))
y = rng.integers(0, 2, 100)            # labels are pure noise
cv = StratifiedKFold(5, shuffle=True, random_state=0)

Xs = SelectKBest(f_classif, k=20).fit_transform(X, y)   # sees ALL labels
score = cross_val_score(LogisticRegression(max_iter=1000), Xs, y, cv=cv).mean()

The honest version puts the selection inside a pipeline, so it's re-done on the training part of each fold:

from sklearn.pipeline import make_pipeline

pipe = make_pipeline(SelectKBest(f_classif, k=20), LogisticRegression(max_iter=1000))
score = cross_val_score(pipe, X, y, cv=cv).mean()

I repeated both over 20 random seeds (scikit-learn 1.9.1):

leaky : mean 0.872  min 0.790  max 0.930
honest: mean 0.499  min 0.380  max 0.610

Why it happens: with 5,000 random columns, some will correlate with the labels by pure chance. If you pick them using all the labels, the "test" folds have already influenced which features you kept, so the model looks good on data it effectively saw.

Takeaways I'm trying to follow:

  • Anything that learns from the data (feature selection, scaling, imputation, PCA, target encoding) belongs inside the cross-validation, usually via a Pipeline.
  • If a result looks too good, test it on random labels. If it still looks good, there's a leak.
  • This was an extreme case (few samples, many features). With normal data the effect is smaller, but it's still real, and I haven't measured it on real datasets.

Questions for the group: what's the sneakiest leak you've come across? Do you have a habit or a checklist to catch it?


r/learnmachinelearning • • 2d ago

Question ML without math

0 Upvotes

I hate math maby because I struggle with it all my life even in school but I love ai,how it's working, predictions,etc.So my question is can I be ml engineer without knowing math,what job I need to search to work with ai without math.And maby some courses Where to start?


r/learnmachinelearning • • 2d ago

Am I solving the wrong problem by forcing heterogeneous enterprise data into a fixed taxonomy?

1 Upvotes

I’m a data scientist working on a semantic classification problem involving enterprise performance metrics (KPIs) and learning content, and I’m starting to question my approach.

We have tens of thousands of customer-defined KPIs across different industries and languages. Some are standardized metrics, such as customer satisfaction or sales conversion, while others contain internal abbreviations, ambiguous terminology or highly business-specific concepts. Metadata quality varies considerably.

My initial approach was to build a standardized taxonomy and map each KPI to a family.

I’ve experimented with rule-based methods, multilingual embeddings, LLM classification, contextual enrichment and clustering. While precision is relatively good, coverage remains challenging, and expanding the taxonomy seems to have diminishing returns due to the long tail of customer-specific concepts.

There is a separate but related problem of semantically organizing enterprise learning and training content.

I’m increasingly wondering whether classification into predefined categories is the right formulation for either problem.

Would it make more sense to construct a structured semantic corpus or knowledge base, where taxonomies are just one possible representation of the underlying information?

I’m particularly interested in:

  • How to represent heterogeneous business concepts without forcing everything into predefined categories.
  • Bottom-up ontology discovery versus manually defined taxonomies.
  • Handling ambiguous and customer-specific terminology.
  • Whether knowledge graphs, hierarchical representations or enriched semantic documents are better suited to this problem.
  • How to build something reusable across multiple downstream product applications.
  • How to meaningfully evaluate such a system.

Has anyone worked on a similar problem? Are there research papers, frameworks or alternative approaches you’d recommend?

I’m less interested in trying another LLM or embedding model and more interested in whether there is a fundamentally better way to formulate the problem.


r/learnmachinelearning • • 2d ago

Books

1 Upvotes

I'm currently reading AI engineering and data intensive applications along with a few other technical books.

As a second-year Computer Engineering student, I want to strengthen my understanding of the core concepts every developer should know, particularly computer networks, operating systems, system design, application workflows, and software architecture.

I'd love to hear book recommendations from senior developers and fellow students that can help me build strong fundamentals and become a better software engineer.

What books would you recommend?


r/learnmachinelearning • • 3d ago

Question What AI Projects Should I Showcase in My CV in 2026?

17 Upvotes

I have 5 years of Python development experience and am targeting Senior AI Engineer roles.

I have experience with Python, FastAPI, LLMs, RAG and AI automation.

What 3–4 projects and technologies would make my CV stand out in today's AI engineering job market?

Looking for suggestions based on actual industry hiring trends, not basic tutorial projects.

Thanks!


r/learnmachinelearning • • 2d ago

Camera + lens + lighting advice for AI inspection of stainless steel hose clamps (~2500 parts/day, mixed sizes)

1 Upvotes

Hi all, I'm building an in-house visual inspection prototype for metal clamps (V-band, T-bolt, spring-loaded T-bolt, torque-limiter clamps; stainless steel).

The software side is my own: YOLO Model for defect detection + PatchCore/PaDiM anomaly detection, Python on a Windows PC. I'm looking for advice on the Hardware : camera, lens and especially lighting.

What we need to detect :

  • Thread damage on the T-bolt and nut
  • Wrong bridge assembly / missing parts
  • Spot-weld (nugget) defects (visual signs only)
  • Band damage: dents, kinks, cracks, scratches
  • Missing stamping (stamped part number)
  • Out-of-round shape (planned with a backlit silhouette)

Production numbers

  • ~2500 clamps per day, so roughly 8 s per part in one shift
  • Mixed sizes: diameter from about [40] mm to [40] inch
  • Smallest defect we'd like to catch: about [0.5] mm
  • Parts are placed by hand for now (no conveyor yet)
  • We do NOT want to change zoom/focus per part, so I'm planning one fixed setup for all sizes and normalising the scale in software

What I've tried so far

  1. Luxonis OAK-1-W (12MP, wide angle): fixed focus, one side of the image soft
  2. 8MP USB UVC webcam module: OK for testing, not industrial
  3. The Imaging Source DFK Z30GP031 (5MP, motorised zoom, GigE PoE): works, but zoom repeatability and a dim red LED ring light (colour camera) give long exposures and strong reflections on the shiny band

Current plan / questions

  1. Camera : I'm leaning towards a 5MP global shutter colour camera with a Sony IMX264 (e.g. Hikrobot, Daheng, Basler ace 2 Basic), USB3 so it connects directly to the PC. Is 5MP enough, or should I go to 12MP for threads/stamping on the largest clamps? Any brands to avoid?
  2. One camera or two? Is it realistic to inspect threads and stamping from one top-down photo, or is a second dedicated camera for the bolt area the norm?

Thanks for any advice!


r/learnmachinelearning • • 2d ago

Project Building BubblSpace, a small language model from scratch, in the open.

Thumbnail
bubblspace.com
1 Upvotes

Training a 1B MoE model on single H100 with all stages for a budget of $1000

I wanted to share about this project. Model was trained on 1 H100 ( cheaper pcie version) along with a single A10 to run evals continuously on the new checkpoints. Model is trained on around 40 billion tokens. on same token budget BubblSpace is ahead of Olmo2 1b on Winogrande. Most phases will be done by tonight

objective

  • Run full pre training cycle (Phase1 Base model -->Phase 2 Agentic+Coding--> Phase 2.5a Mid training--> Phase 2.5b Context length extension --> Phase 3 SFT (Current) --> Phase 4 RL.
  • Write custom evals.
  • build data pipeline.
  • Perform small experiments ( like WSP) on new checkpoints.
  • Be confident before starting a DP/EP/TP run on bigger model.
  • Build a model which has better understanding of relationships ( Models that bind)

All the code , data , wandb runs & checkpoints are open and available of github/hf / wandb. (All the links are on project page https://www.bubblspace.com/) Since we use a single H100 we don't need DP.

Learning

  • Even on a single H100 profiling helped. Data loading optimizations help in a big way to reduce training time.
  • Importance of cool down / anneal phase- This was not very obvious to me however cooldown phase has a very big impact on small models.
  • Evals, evals & evals - It is very hard to understand how model is actually performing. Setting up a full pipeline right up front really helps.
  • Skills like calculation appear late- Olmo2 1b strained 4T tokens . Calculation skills appear late in training between 160b- 4T runs.

Next Project :A bigger model using parallelism with deeper profiling


r/learnmachinelearning • • 2d ago

The 86400x error that passes every dimensional check

1 Upvotes

I want to describe a bug class that bites people writing their first simulation, because the numbers stay plausible the whole way. You write an SIR model, declare the infection rate as 0.3 per day and step the integrator with t measured in days. Then one afternoon you switch the rate to 0.3 per second, or a helper returns seconds while the parameters assume days. The dimensions still match, 1/time against 1/time, so a dimension check passes and the curve just comes out wrong by a factor of 86,400. Nothing throws. You tune the parameters until the curve looks right again, and now the fit is meaningless.

That gap is what I built axiomize for. It is a modeling layer that takes a model declaration, keeps a versioned Model IR, and validates it before any numbers are produced. Units are mandatory on every parameter and variable, so a declaration looks like this: beta with unit 1/day, S and I in persons, N in persons, t in days. The check runs on canonical unit scales rather than dimension exponents alone, so 1/day against 1/s is refused instead of being accepted as both being inverse time.

The failure is loud by design. Simulation routes through the same validation as axiomize model --action validate, and a mismatch raises ModelDimensionMismatch carrying the failing checks rather than returning an array of numbers. There is also an audit for the quiet version of this problem: unit_declaration_audit reports every symbol that would silently default to dimensionless, which is usually where an unlabeled constant hides.

The part that mattered for my own work is what leaves the tool. Models export to canonical JSON, SBML Level 3, CellML 2.0, Modelica and a SHA-256 bundle, and values with units round-trip bit-exactly, which is asserted in the test suite rather than promised in prose. A run ledger keeps the provenance, so a stored result can be checked before someone reuses it. For coursework or a paper, that is the difference between shipping a notebook and shipping something a reviewer can rerun.

Install is pip install axiomize, or npm install -g axiomize if you want the Node entry point. The CLI has axiomize capabilities, axiomize solve, axiomize fit, and 16 actions under axiomize model, including plan, validate, simulate, numerical-verify and export.

What it does not do: it does not make a bad model good, it makes a bad model fail loudly. Numerical verification compares against closed-form theory and separates numerical error from stochastic variability before claiming convergence, but if your equations are wrong the tool will happily verify the wrong model consistently. Bayesian sampling needs the full extra with PyMC and JAX, and FEM needs FEniCS; both are reported as unavailable rather than silently swapped for something else.

One honest limit: dimensional and scale checking catches unit errors, not physics errors. A model with correct meters and seconds can still be the wrong model, and the worked examples in the repo use illustrative parameter values, not literature-backed ones. The checking is a floor, not a validation of your science.

MIT, 1.15.0 on both PyPI and npm: https://github.com/Furox-Art/axiomize


r/learnmachinelearning • • 3d ago

Request Critical Juniper Session Smart Conductor Flaw Exploited in Attacks

3 Upvotes

CVE-2026-103406 in Juniper's Session Smart Conductor allows remote attackers to execute arbitrary commands as root with no authentication required. CISA has confirmed active exploitation in the wild.

What makes this category of vulnerability different from a typical endpoint compromise: Session Smart Conductor sits at the traffic-routing layer. Root access there means an attacker controls flows across the entire network, not just the node they landed on. The blast radius is structural, not incidental.

Patching cadence rarely matches exploitation speed on CISA's KEV list. The gap between public disclosure and patch deployment is measured in days to weeks. Active exploitation means that gap is already being used.

For those running critical routing infrastructure: what does your actual containment posture look like when a core conductor process is compromised before a patch is available? Not asking about patching — asking about what limits propagation in the window before you can patch. Curious what practitioners are actually doing here, not what the frameworks say to do.


r/learnmachinelearning • • 2d ago

AI Engineer Interview Series | Part 01/10

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 2d ago

Looking for the Long Range Arena (LRA) Pathfinder dataset

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 2d ago

Up to what extent I should understand(differentiate) gradient descent, Adam and AdamW?

1 Upvotes

I will have a ml engineer interview on next Monday and I am trying to write a post about gradient descent, Adam and AdamW. But, now I feel lost.


r/learnmachinelearning • • 2d ago

Introducing IDSS: AI-Powered Intelligent Decision Support System using Generative AI & AutoML

Thumbnail
linkedin.com
1 Upvotes

🚀 Introducing IDSS – Intelligent Decision Support System

Hello Streamlit Community! 👋

We are excited to introduce our final-year Data Science project: Intelligent Decision Support System Using Generative AI and Machine Learning (IDSS).

IDSS is an AI-powered platform designed to simplify and automate the data science workflow. It combines LLM-powered agents with a deterministic AutoML engine to perform intelligent data analysis, model training, evaluation, and decision support.

✨ Key Features

  • 📊 Automated Exploratory Data Analysis (EDA)
  • 🤖 AI-powered data analysis using intelligent agents
  • ⚙️ Automated Machine Learning (AutoML)
  • 🧠 Automatic model training and hyperparameter tuning
  • 📈 Model comparison and performance evaluation
  • 💡 AI-generated insights and recommendations
  • ✅ Grounding checks to prevent AI-generated inaccurate results

🛠️ Technology Stack

Python | Streamlit | Machine Learning | Generative AI | LLM Agents | AutoML

🔗 Project Announcement

Read our project announcement on LinkedIn:

https://www.linkedin.com/posts/raj-patil-223172290_finalyearproject-generativeai-machinelearning-ugcPost-7531562469257797632-3bBW/

🙌 Feedback Welcome!

This project was developed collaboratively by our final-year Data Science team.

We would love to hear your feedback, suggestions, and ideas for improvement from the Streamlit community.

Thank you! 🚀


r/learnmachinelearning • • 3d ago

Request How are AI generated videos of Jensen Huang made?

2 Upvotes

I remember back when GAN/VAE was first introduced there was a huge enthusiasm in learning about the mathematical model responsible for generating those images.

Now we can apparently generate all these videos yet I've not seen the same enthusiasm. Perhaps the tech is too difficult to be described by math model?

Can someone who is knowledgeable share both the practice and theory as to how Jensen Huang memes are made?


r/learnmachinelearning • • 3d ago

Discussion Mentoring a few experienced engineers in Python, ML from first principles, until August 2027.

38 Upvotes

I've a research background from MIT and ICL. I'm not a full-time mentor. I teach because I love it, and because teaching keeps teaching me back. Explaining a topic makes me see it from angles I'd missed, and mentees often ask questions I'd never thought to ask myself. Teaching is also how I sharpen my own ideas. I like pushing the people I work with right up to the edge of what they can do, because that's where real understanding happens.

Why now

I'm writing two papers right now, one in mathematics and one in computer science. I'm also working with scientists and researchers in oncology while I learn that field properly. Around August 2027 I plan to move on to building my own startup, and that's when I expect to stop mentoring. Until then I have some time, and I'd like to spend part of it mentoring.

Who this is for

There's no shortage of ML or Python material online. If anything there's too much. It's easy to spend months jumping between courses, threads and videos without ever seeing what actually matters or how the pieces fit together. If that sounds familiar, this is for you.

I mainly work with people who have industry experience, for two reasons. The first is discipline: working professionals tend to show up and do the work. The second is that you've seen enough to tell real value from noise. You'll know quickly whether this is worth your time, and you're free to stay or walk away.

What we'd work on

Mostly Python in depth, the maths behind ML (linear algebra, probability, calculus) and ML itself. The focus is always on why things work, not just how to use them. The path depends on where you are now and where you want to go.

On the "mentor" label

Over roughly two years of mentoring, people have kindly called me an outstanding, even rare, mentor. But I feel I am kinda bad at it, though I try to improve every now and then. I'm not saying that to sell anything. It's simply the standard I try to meet every session. You can judge for yourself:

If you're interested

Comment or DM me with a short note: your background, what you're working toward and where you feel stuck. I can only take a few people because the research comes first, so I'll reply to everyone but may not be able to take everyone on.

Thanks for reading, and good luck with whatever you're learning.


r/learnmachinelearning • • 3d ago

Help CNN Architecture and Hyperparameter Recommendations for Google Quick, Draw! (20 Classes)

5 Upvotes

I'm training a CNN on the Google Quick, Draw! dataset with 20 classes, approximately 2,000 samples per class (40,000 images total), resized to 28×28 grayscale images.

I'm aiming for around 90–93% test accuracy, but I'm struggling to find a suitable architecture. I've tried different numbers of convolutional layers, filters, fully connected layers, and neurons, but training takes quite a long time on my laptop, and the accuracy sometimes plateaus or even decreases after a few epochs.

I'd appreciate some practical recommendations regarding:

What is the minimum reasonable number of convolutional layers?

How many filters should I use in each convolutional layer (e.g., 16, 32, 64)?

How many fully connected layers should I have, and how many neurons in each?

Would max pooling after each convolutional layer be beneficial?

What optimizer, learning rate, batch size, and number of epochs would you recommend?

Any tips to achieve 90–93% accuracy without making the model unnecessarily large or computationally expensive?

I'm training on a laptop without a dedicated GPU, so computational efficiency is important.

If anyone has experience training CNNs on Quick, Draw!, I'd really appreciate suggestions for a good starting architecture and hyperparameters.

Thanks!


r/learnmachinelearning • • 3d ago

Suggest some courses for ds and ml

5 Upvotes

I'm looking for some high-quality, affordable or free courses that can not only strengthen my resume but also help me develop a deeper understanding of the subject.

I'm a first-year CSE student with a basic foundation in Python. I'm familiar with libraries such as NumPy, Pandas, Matplotlib, Seaborn, and Scikit-learn.

I also have a basic understanding of Data Science (I've studied from Data Science from Scratch by Joel Grus) and various Machine Learning algorithms, including Decision Trees, Random Forests, Gradient Descent, XGBoost, HistGradientBoosting, AdaBoost, CatBoost, and SVM.

I'm particularly interested in Data Science and Machine Learning and would love recommendations for courses that focus on building strong fundamentals, developing practical skills, and gaining a deeper understanding of the underlying concepts.

Book recommendations, useful learning resources, project ideas, or any other suggestions are also very welcome!

Thanks in advance!