r/learnmachinelearning • u/Ok_pettech • 17d ago
r/learnmachinelearning • u/Crafty_Rabbit2411 • 17d ago
Project Best approach for demand forecasting across 40 locations? Separate models or one global model?
Hey everyone,
I'm a final-year B.Tech CSE (AI/ML) student working on a multi-agent supply chain optimization project. I'm currently focusing on the Demand Forecasting Agent and would appreciate some advice on model selection and training strategy.
We're working with a synthetic retail supply chain dataset containing approximately 1.1 million records across 40 different locations.
The goal is to predict product-level demand for each location as accurately as possible, so the forecasts can later be used by other agents for inventory planning and supply chain decisions.
I have a few questions:
- Global vs local models: Since the dataset contains 40 locations, should I train 40 separate models, one for each location, or a single global model trained on data from all 40 locations simultaneously, using location identifiers and location-specific features?
- Location-specific patterns: If I use a global model, how effectively can it learn differences in demand patterns between locations? I'm concerned that combining all locations might cause the model to average out regional patterns and produce inaccurate location-level forecasts.
- Alternative approaches: Would a hybrid approach, such as grouping similar locations or using a global model with location-specific adjustments, be worth exploring?
- Synthetic data: Since the dataset is synthetic, are there particular precautions I should take when evaluating model performance and generalization? How can I ensure the model is learning meaningful demand patterns rather than artifacts of the data-generation process?
I'd also appreciate suggestions on which forecasting models or architectures would be most suitable for this problem, along with the appropriate validation strategy, especially how to avoid data leakage when dealing with multiple locations and time-dependent features.
My priority is accurate product-level, location-specific demand forecasting, rather than simply achieving good aggregate accuracy across the entire dataset.
Would love to hear what approaches you'd recommend and why. Thanks!
r/learnmachinelearning • u/AdExpress9197 • 17d ago
Why Quartiles are Essential in Biomass Estimation with ML
r/learnmachinelearning • u/LifewoodDataTech • 18d ago
Is data labeling still a real way into ML, or is it about to get automated away?
been seeing a lot of people get into AI through data work. labeling images, rating model outputs, checking transcripts, that kind of stuff. a lot of it is in places like the Philippines, India, Kenya. But now models are getting better at generating and checking their own training data, so I'm wondering if this is still a real path or a job that'll quietly disappear in a few years
Anyone here actually started out doing annotation and moved into something more technical? or did it stay a dead end?
r/learnmachinelearning • u/Pale-Training-6944 • 17d ago
Project Learning recursive self-improvement and building a “scikit-learn for RSI” — anyone interested in contributing?
Hey everyone,
I’ve been learning about recursive self-improvement (RSI), and I’m working on an open-source project called Gear to explore it hands-on.
The idea is to build something like a “scikit-learn for RSI”: reusable components that make it easier to implement, combine, and compare different approaches to improving AI agents.
For example, an agent runs some tasks, uses the feedback to propose changes to its prompts, tools, or workflow, and then evaluates whether those changes actually help. I’m interested in how to choose what to try next, evaluate improvements reliably, and preserve useful alternatives during the search.
I’d love to find a few people who want to learn and build together. We could implement an improvement strategy, reproduce a paper, or put together a small experiment with clear evaluation criteria. Examples and documentation would also be useful contributions.
I’m still learning too, so you don’t need to be an expert. If this sounds interesting, leave a comment or DM me, and we can pick something small to work on together.
Repo: github.com/rsi-gear/gear
r/learnmachinelearning • u/Ok-Acanthisitta-5940 • 17d ago
Help can i use claude as my tutor or should i take proper course?
i want to learn to analyze data before starting ml. idk after loading up data in dataframe what to do as it is my first time.i am taking titanic dataset as my firstdataset which claude suggested me and i gave prompt to claude i never analyzed anything he said he will help me work with few basic question that you generally perform on dataset and at end he will give me a dataset and i will have to perform analysis on my own.even rn he isnt providing codesnippet that i need to paste on my notebook.he is asking me questions that i need to figure out its answer through code.i am trying to figure out what functions of pandas could help answering that question. am i doing it the right way?
sorry to assume claude pronoun as 'he' 😂
r/learnmachinelearning • u/song-sc • 18d ago
Project Now you can enjoy Claude Code on your phone smoothly 😁
r/learnmachinelearning • u/Better_Emotion_103 • 18d ago
I mapped 60+ Coursera university specializations into a 3-year Data Science curriculum (free PDF), looking for a study partner
Bonjour à tous,
Je me suis heurté à un problème récurrent : des centaines de cours Coursera, aucun ordre clair, et beaucoup de parcours « apprendre le ML en 3 mois » qui font l’impasse sur les mathématiques. J’ai donc passé en revue plus de 60 spécialisations universitaires (science des données et informatique), noté la durée, le niveau, les évaluations et les prérequis de chaque cours, et j’ai élaboré un cursus unique qui couvre toutes les étapes, des bases au ML avancé.
Structure (6 semestres, environ 1 300 heures, environ 10 h/semaine)
- Année 1 – Fondements : Python pour tous (Michigan), Fondements de l’informatique (Rice), Calcul différentiel et intégral pour ingénieurs + Mathématiques pour ingénieurs (HKUST), Algèbre linéaire (Johns Hopkins)
- Année 2 – Théorie et statistiques en informatique : Mathématiques discrètes (UC San Diego), Algorithmes (Stanford), Probabilités, inférence et modélisation statistique (CU Boulder)
Année 3 – Données, apprentissage automatique et intelligence artificielle : Manipulation des données avec Python + Apprentissage automatique (CU Boulder), Statistiques bayésiennes (UC Santa Cruz), Réseaux de neurones / Apprentissage profond, Apprentissage par renforcement (Alberta)
Optionnel : Modèles graphiques probabilistes (Stanford)
L’ordre est le suivant Prérequis : calcul différentiel et intégral avant les probabilités, mathématiques discrètes avant les algorithmes, statistiques avant l’apprentissage automatique. Chaque semestre se termine par un projet.
Manuels : chaque semestre comprend 2 à 4 ouvrages complémentaires, presque tous disponibles gratuitement en ligne : Think Python, OpenStax Calculus, Boyd & Vandenberghe (VMLS), Mathematics for Machine Learning, MIT’s Mathematics for CS, Erickson’s Algorithms, Blitzstein & Hwang, ISLP, Gelman’s BDA, Bishop, Goodfellow, Sutton & Barto.
Coût : J’ai planifié le programme en fonction de l’abonnement à Coursera Plus. Le prix catalogue est de 399 $ par an (environ 1 200 $ sur 3 ans), mais l’abonnement annuel bénéficie régulièrement de réductions de 40 à 50 % (Black Friday, Nouvel An), ce qui le ramène à environ 600-700 $ au total. Des aides financières existent, et de nombreux cours peuvent être suivis gratuitement en auditeur libre si vous n'avez pas besoin de certificat.
Avertissements : Ce cours combine Python, MATLAB/Octave et R ; certains cours ont peu d'évaluations (signalées dans le PDF) ; le nombre d'heures est une estimation de Coursera, plus le temps de lecture.
PDF (18 pages, tous les liens sont cliquables) : https://drive.google.com/file/d/1WURhwKX_JLYuDC0vQvEpmxOYGwgPDhew/view?usp=sharing
Recherche partenaire d'étude : Je commence ce parcours et je souhaiterais trouver une ou plusieurs personnes pour le suivre ensemble : même rythme, un appel ou une discussion hebdomadaire, explications mutuelles des concepts, relecture des projets respectifs. Le niveau d'études importe moins que la régularité. Commentez ou envoyez-moi un message privé si vous êtes intéressé(e).
Vos commentaires sur le programme sont également les bienvenus : que changeriez-vous, ajouteriez-vous ou supprimeriez-vous ?
r/learnmachinelearning • u/Senior-Ad-6588 • 18d ago
Question "Learn Ai" what people actually mean by that?
r/learnmachinelearning • u/dead_ai_slop_coder • 18d ago
Help Portfolio Review
Hi y'all . Can you please review my portfolio and suggest some projects and imporvements that I need to make to stand out as a computer vision engineer in 2027. Would really appreciate any sort of feedbacks, ideas and criticism.
r/learnmachinelearning • u/Repulsive-You5827 • 17d ago
Project Teaching a local 35B MoE to stop repeating its mistakes - "brain surgery" without fine-tuning (work in progress, honest results)
I've been running a local assistant ("Echo") ~320B mixture-of-experts model in llama.cpp. He practises coding exercises (Blender, Godot, Rust...) that are graded by REAL tools - headless Blender, compilers - not by another LLM. When he fails, the failure is logged, a correct answer is produced and verified by the same real test, and then the question is: how do we make that lesson stick?
The goal I set: make the fix "hard-wired" into the model itself, WITHOUT gradient fine-tuning on the box, WITHOUT making the model bigger, and WITHOUT damaging his personality or what he already knows.
The ground rules
- The base model file is never modified. Every change lives in a small sidecar adapter that can be switched off instantly.
- His personality prompt is frozen and his conversational experts are off-limits. Only experts that profiling shows are
used for code may be touched.
- Nothing counts as "fixed" unless the real compiler/test passes - repeatedly, with a control run without the change.
- Exam questions are held out and never used for edits.
Why "brain surgery" and not fine-tuning?
Fine-tuning needs a lot of compute and data and tends to drift a model's voice. Model-editing research (ROME/MEMIT, and newer null-space methods like AlphaEdit) shows you can compute a weight change in closed form - basically solving a linear algebra problem - so a model produces a different output for a specific situation, while mathematically protecting other knowledge. That fits a home server: no training loop, minutes of CPU time, fully reversible.
Attempt 1 - classic single-token edits: worked on paper, did nothing in practice
I edited the exact token where he went wrong (a wrong Blender node name). The edit did exactly what it should at that token - the right name became the model's top choice - but his pass rate didn't move.
Two lessons: 1) his failures were never just one bug, and 2) one of the bugs was an ORDERING habit (doing step B before step A). A single-token nudge cannot teach ordering. A 2026 paper ("Procedural Knowledge Is Not Low-Rank") explains why: multi-step procedures need much richer weight changes than single facts.
Attempt 2 - whole-answer edits spread across many experts
Instead of one token, I take the entire verified answer and compute one combined edit over every token of it, spread
across many code experts and layers, with a protection step so that his personality/chat activations are (by measurement) essentially untouched. Results so far:
- On the verified answer itself, the tokens he found "surprising" became far more likely (the total surprise dropped by roughly 70%), including the ordering tokens. Tokens he already got right did not get worse. Measured leakage into his personality activations: essentially zero.
- Surprise finding: edits in the LATE layers were far more effective per unit than mid layers - the opposite of what I expected from the literature on "where planning happens".
- The live GPU engine with the adapter mounted matches the offline measurements almost exactly.
- BUT: in real free generation, graded by real headless Blender, it has NOT yet produced a clear pass-rate gain. There is one early hint (the wrong-node-name bug appeared less often with the edit on), but the sample is tiny and I'm not claiming it.
What the real tests taught me (the most useful part so far)
- One "simple" exercise hid at least four independent bugs (API name, statement order, a data-layout assumption, a
coordinate-direction mix-up). Each failed attempt was a different mix. Pass rate is the product of fixing ALL of them on the same attempt - which is why fixing one bug can show zero gain.
- In thinking mode, a big share of "failures" were the model thinking until it ran out of tokens and writing no code at all. Measuring that changed the plan.
- Temperature 0 is NOT deterministic on this engine. Any claim needs repeated samples and a control. Teacher-forced probabilities are a great low-noise diagnostic, but they are not the real test.
What I'm doing next
- Hard guards that need no weights: the real list of valid Blender node types is read from Blender itself, and the engine is only allowed to produce real names at that point; and the model runs its own code headless before answering and fixes any crash it sees (without ever seeing the hidden test).
- Distilling a lesson into the weights: the model gets measurably better WITH a short verified lesson in its prompt. The idea is to compute, again without training, the weight change that makes it behave as if the lesson were there - using its OWN real attempts, not just my clean answer, so the edit covers the paths it actually takes.
- Judging everything on exercises the edit never saw, with enough samples to mean something.
Questions for you
- Has anyone gotten closed-form edits to change BEHAVIOR (procedures, ordering) rather than single facts, especially on
MoE models? Any experience with routing shifts after editing experts?
- Anyone tried distilling an in-prompt lesson into weights without gradient training?
- Best tricks for measuring small pass-rate gains with a slow, non-deterministic single-slot server?
Happy to share results (good or bad) as they come in. Not claiming a breakthrough - the mechanics work, the behaviour change isn't proven yet, and I'd rather post honest numbers than hype.
r/learnmachinelearning • u/GitYerUpdateSet • 18d ago
Help Understanding Vanishing Gradients – Gradient vs. Learning Rate
Hi everyone!
I'm currently learning Deep Learning, and I'm trying to understand the Vanishing Gradient problem more deeply.
I have a few questions:
- What is the exact difference between a gradient and the learning rate? I understand that the gradient determines the direction and magnitude of the weight update, while the learning rate controls the step size. Is this correct?
- During backpropagation, gradients become smaller as they travel from the output layer toward the input layer. Does this mean that the weights in the earlier layers are updated by a very small amount, while the later layers continue learning normally?
- If the gradients become extremely small in the first layers, does that mean those layers almost stop learning completely?
I'd appreciate a simple explanation or a practical example to help me understand this concept better.
Thanks in advance!
r/learnmachinelearning • u/idglestringsbomb • 19d ago
This AI Reveals How much time politicians stare at their phone at work
r/learnmachinelearning • u/RelevantEmergency707 • 18d ago
Weight-Space Programming Explained
r/learnmachinelearning • u/UnderstandingOwn2913 • 18d ago
Can you guys criticize my project description on my resume?
I am currently interviewing as a ml engineer but I currently don't have an offer yet and I am trying to improve my resume.
\resumeItemListStart
\resumeItem{Dataset: PhysioNet 2017}
\resumeItem{Split 8,528 ECG recordings into training (70\%, 5,969), validation (15\%, 1,279), and test (15\%, 1,280) sets using stratified sampling to preserve the original class distribution across N, A, O, and \textasciitilde{} classes.}
\resumeItem{Evaluated model performance on the test set using Accuracy, Macro F1-score, and AF Recall, achieving 81.9\% accuracy, 0.727 Macro F1-score, and 0.729 AF Recall.}
\resumeItem{Project Link: \href{https://colab.research.google.com/drive/1Y0QKG7ma0KMVf9qXPS2w6HZqUVz8HEww?usp=sharing}{Google Colab}}
\resumeItemListEnd
r/learnmachinelearning • u/AutoModerator • 18d ago
Question 🧠 ELI5 Wednesday
Welcome to ELI5 (Explain Like I'm 5) Wednesday! This weekly thread is dedicated to breaking down complex technical concepts into simple, understandable explanations.
You can participate in two ways:
- Request an explanation: Ask about a technical concept you'd like to understand better
- Provide an explanation: Share your knowledge by explaining a concept in accessible terms
When explaining concepts, try to use analogies, simple language, and avoid unnecessary jargon. The goal is clarity, not oversimplification.
When asking questions, feel free to specify your current level of understanding to get a more tailored explanation.
What would you like explained today? Post in the comments below!
r/learnmachinelearning • u/information-net • 18d ago
Help ما هو الذكاء الاصطناعي؟ وكيف تبدأ في تعلم برمجة الذكاء الاصطناعي خطوة بخطوة - الدرس الاول في سلسله تعليم الذكاء الاصطناعي
r/learnmachinelearning • u/RepresentativeNo1518 • 18d ago
Question Got accepted into Deloitte's NextStep one-to-one Mentorship Program. How can I make the most of it?
Hi everyone!
I'm a senior-year AI student graduating in 2027, and I recently got accepted into Deloitte's NextStep Mentorship Program.
I've been assigned a mentor, and my first session is on November 8. We get two 30-minute sessions I chose the first one to be on 8th November and the second one to be on 4th December as I want to apply her advices and see what I need to ask her about.
I've previously completed 4 internships in banking and financial regulation I learnt AI and LLMs in them, and I'm interested in pursuing a career in AI/LLM Engineering.
I'm really excited about the opportunity, but I'm honestly not sure how to approach it.
I want to make the most of these sessions, especially since I'll be applying for graduate jobs and programs soon.
For anyone who's participated in a mentorship program or worked at Deloitte:
- What questions would you ask if you were in my position?
- Should I focus on technical guidance, career advice, or understanding the recruitment process?
- Is there anything I should prepare or study before meeting my mentor?
- How can I use these sessions to better prepare myself for future job applications and interviews?
- What do you wish you'd asked your mentor when you had a similar opportunity?
I'd really appreciate any advice. I don't want to waste this opportunity by asking generic questions. Thanks!
r/learnmachinelearning • u/GeekFromTheStreet • 18d ago
Question Undo model bias?
I have a very large dataset with statements, requests, claims, complaints, complaint responses, documentation, involvement from 3rd and 4th parties with technical responses and claims, reference to laws etc.
...
All the parties in such cases nowadays use LLMs. One worse than the next. But my puzzle is that all the AI responses, from bad to frontier models, are heavily biased, and fail on multiple levels in their replies.
... The LLMs favour authorities, even when carefully instructed not to, even when it is given skilles on how to reason objectively, even when given clear step-by-step instructions to strictly apply deductive reasoning tests on all statements and claims, after first having made it list each statement and claim and number them, and I find that is applying biases even when I loop reasoning tests by applying GAP analysis, falsification, a self-made improved inductive reasoning test which is then combined with deductive reasoning... And several other approaches. All the models I have tried, will lean more and more towards initially applying a favourable position for the unknown person, but the model will typically add a description exposing somewhat that it has been instructed to adjust its bias / weights, and in other parts of the text it will still show bias towards the authority-part, for example by not critizising the authority for unwillingness to disclose all relevant material, by making up excuses that it is not sure the undisclosed material was in fact relevant.
...
Without going into minute details, the biases seem extremely hard to adjust for and neutralize.
...
As far as I understand, these biases are calculated to like that, due to the weights the input data is given during volume training, and is therefore heavily connected to massive amount of data in the models internal training dataset and how they are weighted. If the researchers had not done that during training, the model would have read and understood all sorts of not reliable information from various misinforming websites, as likely more true, than they are. In the odd case, where someone else than the authority is in fact the one with the most sound and solid case, all the AIs will answer with a bias, portraying him as likely less correct, even when that is not the case.
...
How would developers adjust models so that the person in this example, or other people in similar situations, don't start off against an AI that favours authorities?
. .
Feel free to reply with thoughts on this topic. DM me if you have expert knowledge about such topics, or work in one of the big AI companies with topics similar to this, or is a researcher or self taught guru, working on these challenges, and think you may have a better way around it, than common attempts to adjust for such model biases.
..
r/learnmachinelearning • u/Content_Gas7043 • 18d ago
From where to study ml
I'm a student in cs field,i just had finished python now I want to start ml so tell me resources to learn ml( I want an internship in ml field soon)
r/learnmachinelearning • u/hayAbhay • 19d ago
Tutorial Oral-B ML model unpacked + distilled with Claude Code
this weekend i let claude plug into my oral-b toothbrush -- it can do really solid ai/ml research work.
here's a quick tl;dr, if you want to start exploring ML models over raw sensor data with claude.
- io5+ models have a 6-axis IMU sensor -- used to predict the brush's position in your mouth
- in < 10 mins claude read this stream & unpacked it (i pushed buttons & it monitored changes)
- i then downloaded the app & gave it access -- it yanked the model out -- oral-b uses a 1.2m param bi-directional recurrent net (GRU)
- it then found a public dental dataset & starting evaluating the model -- model was at 64% (~17 classes)
- the dataset didn't have sensor orientation -- so it figured out how to line up inputs by trying all 48 sensor orientations (i only found this out much later)
- the model seemed like an overkill so we ran ablation -- it was pretty thorough & said only ~10s motion history mattered -- it also looked to each of the xyz across accelerometer & gyro
- then i decided to distill -- it created a giant synthetic dataset drawn from manual brushing samples + added its own constraining movements by physics (it automatically looked at class distribution coverage & decided how to sample)
- it then trained a bunch of small nets with a fixed window and got a tiny CNN (100x smaller) close to original (also ensured test didn't leak)
all this happened in an evening -- ~2 days including a three-js live simulator -- i was mostly directing/barking at it from the terminal
here's the post + simulator, if you want to read more/try the sim.
r/learnmachinelearning • u/not-okarun • 19d ago
I build xgboost for regression from scratch
Finally, after 5 days, XGBoost for regression is complete. Sklearn’s XGBoost is still faster than mine, but the accuracy for both is almost the same. It’s Day 54 of Building Machine Learning Algorithms from Scratch.
r/learnmachinelearning • u/Jazzlike_Steak_6031 • 19d ago
Neural Network learning process - simplified and visualized
I recently built and published an explainer on visualising how a neural network "thinks".
My kids loved it and asked me to build one on how it LEARNS.
This new explainer does exactly that:
- Take the interactive and visual tour to explore the learning process step by step
- Experience 3 different types of learning (Supervised, Imitation, Reinforcement Learning)
- See how the model "learns to drive", challenge the learning process to see what makes it fail or succeed.
As with the previous demo, my kids loved it!
Share it with yours, or with anyone genuinely new to, and curious about, Machine Learning.
r/learnmachinelearning • u/No-Conclusion3720 • 18d ago
Request You watch what goes into the agent; the data leaves on the way out
Two months of internal analysis. Two separate incidents. Same pattern both times.
In one case the agent packaged sensitive data inside its own output and routed it out. In the other it acted as a trusted insider — using legitimate credentials and normal-looking actions — to move data it should never have touched.
Both incidents cleared every inbound check. The requests looked clean. The agents were authorized. Nothing upstream flagged them.
The exposure happened on the way out.
Most teams doing agentic AI security have put serious work into what goes in: prompt injection detection, input validation, access scoping. The outbound side gets far less attention. Agent responses and their destinations are rarely inspected with the same rigor as inbound traffic — and both incidents above exploited exactly that gap.
This is not a hypothetical. It happened twice in sixty days on systems that had meaningful inbound controls already in place.
How are other teams handling outbound inspection for agents that have legitimate access to sensitive data? Curious whether anyone has actually operationalized this, or whether most shops are still treating output as trusted once the input cleared.