r/learnmachinelearning • u/Initial-Shoulder5906 • 1h ago
Help IIT Bombay End Sem ML question paper.
r/learnmachinelearning • u/techrat_reddit • Nov 07 '25
https://discord.gg/3qm9UCpXqz (Discord is currently closed)
Just created a new channel #share-your-journey for more casual, day-to-day update. Share what you have learned lately, what you have been working on, and just general chit-chat.
r/learnmachinelearning • u/AutoModerator • 1d ago
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:
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/Initial-Shoulder5906 • 1h ago
r/learnmachinelearning • u/yashwatwani28 • 9h ago
Formulas never clicked for me until I could see what was happening, so I made Stepwise ML: 118 short lessons where every idea is a diagram you can play with. Push the learning rate up and watch training fall apart, watch k-means find clusters, see attention decide what "bank" means.
Built it with Claude and checked the numbers in every lesson with Python. Free, no sign-up. What concept confused you the most? I'll add lessons for the top answers.
r/learnmachinelearning • u/Fun-Collection-3932 • 4h ago
Hi Guys
I am currently doing a job which is not centered around AI/ML which is what i want to work towards.
So I want to use the extra time I have to read atleast 2-3 research paper per week.
I dont know where to start. Suggest me where to start please :)
PDF would be nice as i can print those and read on my commute.
r/learnmachinelearning • u/chatminuet • 47m ago
Join us on Dec 10 for the AI, ML and Computer Vision virtual Meetup! Register for the Zoom.
Talks will include:
r/learnmachinelearning • u/Ccrystal4216 • 22h ago
This project started as a private repo for myself. I made small problems where you implement ML algorithms from scratch, like attention, optimizers, backprop by hand, like leetcode for ML.
Once other people started using it, I assumed it would mostly be students trying to break into ML.
Surprisingly, the top ranked person on the site is an AI safety researcher. he's been on it since almost day one and is close to 1,000 problems now.
He's not the only one like that either. a lot of the people who stick around already work in ml, and they keep coming back to write things from scratch that they could import in one line.
I used to think these coding problems would mostly be useful for people trying to get into ML but seeing who actually sticks around has changed my mind quite a bit.
Edit: too many comments asking the name, it's called TensorTonic
r/learnmachinelearning • u/Old-Gate844 • 5h ago
I was learning machine learning from andrew ng's course on coursera, but i could access only one week worth of material and i am currently relying on his youtube playlist of the same course. The problem is, i don't know what actually am i supposed to know. He taught about the theory and had optional labs where he has implemented them in python code. Am i supposed to be able to hard code all of it on my own? which level of knowledge should i have?
r/learnmachinelearning • u/Impossible-Host5340 • 4h ago
When you first learn optimizers, the equations for SGD, Momentum, and Adam look abstract on paper. I built this side-by-side visualization to actually *watch* how they behave on the same saddle point when every run gets identical mini-batch noise.
**Setup**
- **Surface:** `L(x, y) = (xΒ² β 1)Β² + 3yΒ²` - a saddle point at `(0, 0)` (`L = 1.0`) flanked by two symmetric minima at `(β1, 0)` and `(+1, 0)` (`L = 0`).
- **Start:** all 30 runs begin at `(0, 1)` (`L = 4.0`), right on the unstable ridge, so symmetry breaking comes purely from gradient noise.
- **Identical conditions:** shared learning rate `Ξ· = 0.02`, identical per-step Gaussian gradient noise `Ο = 0.10` across all three optimizers, 90 steps.
- **Standard update rules:** Momentum uses `Ξ³ = 0.90`; Adam uses `Ξ²β = 0.9, Ξ²β = 0.999, Ξ΅ = 1e-8`.
**What jumps out when you run 30 seeds at once**
*(Side note: I built this visualizer in Dart/Flutter as an interactive mini-lab I'm adding to Epoch Idle, an ML-themed simulation game for iOS and Android - https://epoch.loyallogic.org. Happy to answer questions about the math or implementation!)*
r/learnmachinelearning • u/Slight_Formal4633 • 7h ago
Hi. I'm a student of year 3. And we have a lecture about machine learning which is more focus on mathematical modelling . I 'm looking for some useful book to learn by myself. It would be better if it focuses on the mathematical sides. Here are the syllabus:
Week 4 Linear Models 1 - regression
Week 5 Linear Models 2 β ANOVA1
Week 6 Linear Models 3 β ANOVA2
Week 7 Likelihood And EM 1
Week 8 Likelihood And EM 2
Week 9 Tree Based Methods
Week 10 Boost Methods
Week 11 Cluster Analysis: 1
Week 12 Cluster Analysis: 2
Week 13 Logistic Regression
Week 14 Classification, ROC and AUC
Week 15 Neural Networks: 1 Basic
Week 16 Neural Networks: 2 Advanced
r/learnmachinelearning • u/InstaLILY • 3h ago
When you're learning ML, it helps a lot to know people who are already doing the work. They can tell you what the job actually looks like, which skills matter and how they landed their first role.
We started Women in AI at InstaLILY to make those connections easier. It's a community for women at every stage, from people just getting into AI to established leaders, built around talks, expert panels and plenty of time to meet each other.
Since 2024 we've hosted 11 events across New York, San Francisco and London, and our next one is already in the works.
If you'd like to be part of it, join the Women in AI community to hear about the next event first and catch recaps from past ones.
We'd love to have you!
r/learnmachinelearning • u/Perfect-Document5922 • 1h ago
r/learnmachinelearning • u/Legitimate-Case-3530 • 2h ago
**Body:**
I'm the author. My problem: I'd read an answer from Claude Code twice because of terms I didn't know, or get a pile of generated code and not know which part did what.
HoT reads the session file of Claude Code or Codex (read-only) and shows it in a second pane:
- click a highlighted term and that sentence is rewritten in plain words, in place
- ask which code does X and it shows those lines, colored by purpose
- tags paragraphs, and lists the real tool calls behind a claim
Honest limits: you need Pi (another terminal coding agent) to run it; each action costs a model call; a rewrite can be wrong (a second call checks it, which is not proof); I've only tested on macOS.
Repo: https://github.com/tinxai/hot_terminal
What would make this useful for you, or what makes you not want to install it?r/learnmachinelearning • u/ved_in • 2h ago
Was doing my first Advent of Code this year, and day 3 is solvable in pytorch its really fun!!! good practice run for whoever might have covered a certain portion of d2l.ai :>
try it: https://adventofcode.com/2026/
ill share my solution in comments
r/learnmachinelearning • u/pgmesa • 1d ago
Hey all!
I use PyTorch almost every day, and for a long time the engine underneath was a black box to me: what actually happens when you add two tensors, and how is it so fast on so many CPUs and GPUs? Three and a half years ago, in my free time, I started trying to answer that.
How I made it. I started small, writing my own versions of the parts I thought I understood (an autograd engine in Python, then one in C++ on top of libtorch), and each one showed me how much I was still missing. In the end the only way forward was reading PyTorch's own source. It's huge, and part of the path from Python to the kernels is generated at build time, so it isn't even in the repo: it took me a long time just to find my way around. What made it click was rebuilding each piece myself, in C++ with Python bindings: the tensor and its strides, the loop behind almost every operation (TensorIterator), SIMD kernels, reductions and threads, autograd and, in the end, CUDA. Every operation is tested against PyTorch and timed next to it, so I knew when I had understood something and when I had not.
Piece by piece, that rebuild became Raxis, a library you can use much like PyTorch: it's about as fast, it's on PyPI (pip install raxis), and it trains real models like CNNs, Vision Transformers and nanoGPT. At some point it stopped being just for me, and I wanted it to be the code I would have liked to find when I started: it keeps the techniques that make PyTorch fast and little else, with no generated code and far fewer layers, so you can follow a call from Python to the kernel in your editor. It doesn't try to replace PyTorch: there's no distributed training, no torch.compile, no float16/bfloat16, and only NVIDIA GPUs. Much of what makes PyTorch's source hard to read exists because of exactly those features.
Code: https://github.com/pgmesa/raxis
I also wrote "Rebuilding PyTorch", a series that explains what I learned, in the order I learned it, for anyone as curious as I was who opened PyTorch's codebase and didn't know where to start:
Each article starts from a question and walks through PyTorch's code step by step, with Raxis and measurements side by side: https://blog.pgmesa.com/series/rebuilding-pytorch/
It's dense material, more to study than to read in one sitting: it took me years to understand all of it and to let it sink in, and I hope it takes you much less. To start you only need to have written some PyTorch (some C/C++ helps), and the rest is curiosity and going one piece at a time. Feedback and questions are more than welcome, and I hope it helps you learn as much as it helped me!
r/learnmachinelearning • u/Sea-Ad7805 • 7h ago
This πinteractive π¦ππ¦π¨π«π²_π π«ππ©π‘ demo visualizes 1,000 training steps of a neural network learning to solve the XOR problem. Watch how the weights evolve as the network learns.
Use the "Step Into" button to explore the implementation in neural_net.py and see the details of the forward and back-propagation. Follow the mathematics behind the implementation in πthis PDF.
No PyTorch or TensorFlow β just Python, NumPy and mathematics.
Explore πother π¦ππ¦π¨π«π²_π π«ππ©π‘ visualizations.
r/learnmachinelearning • u/Flameonkey • 7h ago
A support assistant gets asked: βCan I still get a refund?β It answers, βYes β within fourteen days.β Confident, polite, and incomplete: refunds only apply if no projects have been exported.
The model is not the only suspect. In RAG, documents are split into chunks before retrieval, and the split decides what the retriever can even find:
β’ Chunks too big β the refund rule sits in one chunk with billing, cancellations and FAQs. Similar is not the same as correct; retrieval drags in noise.
β’ Chunks too small β the deadline lands in one chunk, the export condition lands in another. All the pieces are there; the meaning is not.
What helps in practice: keep related information together (rule + condition + short explanation), use overlap at boundaries as a tool rather than a fix, and test like an engineer β collect real questions, run retrieval with different strategies, inspect what comes back, check whether answers are supported, refine.
Two clarifications that come up often: chunking is not the model's tokenizer (it is a separate splitting decision made during preparation), and there is no universal chunk size β it depends on your documents, your questions and your embedding model.
r/learnmachinelearning • u/Late-Coast6973 • 13h ago
I'm the developer. This is a free page for learning what a classifier does, aimed at students and at teachers who want one lesson on it. No account, nothing uploaded, the training runs in the tab.
What it actually trains: a frozen image encoder (CLIP ViT-B/32, int8, running with onnxruntime-web) turns each picture into 512 numbers, and the only thing trained is a small softmax classifier on top (optionally one hidden layer of 64). So this is transfer learning with a linear probe, not a network trained from pixels. The page says that too.
The part I'd like feedback on is "Look inside the network": it draws the real classifier before training (small random weights from a fixed seed, so the four shape classes read 23%, 27%, 27%, 22%) and after. A slider replays training from weight snapshots. On the answer map every example is a dot placed by its class probabilities: the middle is "not sure", a corner is "sure". Test pictures show up as diamonds, including some picked to be ambiguous: a square with round corners comes out Square 49%, Circle 44% and lands between the two corners.
Five demos open without any model download (the features are bundled), and three are built to fail first:
- "Something it never saw": it knows sun, tree, house. A fish gets "Tree", 94%. One click adds a "Something else" class; after retraining, 8 of 8 new pictures are right.
- "Background trap": every circle on red, every square on blue. 4 of 4 on its own held-out test, 3 of 6 when the backgrounds are swapped. Mixed backgrounds fix it (6 of 6).
- "Too few examples": four of each digit in one handwriting. 5 of 5 on its own held-out test, 5 of 10 on new handwriting; more varied examples bring it to 10 of 10.
The point the demos are built to land: a model is only as good as its examples, enough of them and a good mix, including examples of what it should say no to.
Limits: the demo datasets are tiny (20 to 80 examples) and the held-out tests are 4 to 15 pictures, so the scores are rough, and the page says so. Most answers read "99%+" because the classes are easy and the head trains until it saturates; it never rounds up to 100%. Your own project (webcam or photos) downloads the encoder once: 89 MB, or 26 MB for a ResNet-50 option. English only.
https://image-trainer.skillsafe.ai/?utm_source=reddit-learnml
Question: for someone meeting softmax for the first time, is the "dot between corners" picture a fair way to show probability, or does it hide something I should show instead?
r/learnmachinelearning • u/Local_Drama_7489 • 7h ago
I run AIWave, an OpenAI-compatible API gateway. From Dec 3 through Dec 9, 2026 (UTC+8), we're offering free API access to these three model IDs:
- `glm-5.3-free`
- `glm-5.3-flash-free`
- `deepseek-v4.1-flash-1017-free`
If you want to compare them, run the same prompt through all three and change only the `model` field. Copy the DeepSeek ID exactly; it includes `-1017`.
To try them, [sign in or create an AIWave account](https://aiwave.live), then use your AIWave API key and set `base_url` to `https://aiwave.live/v1` in your OpenAI-compatible client.
On Dec 10 (UTC+8), we'll remove the `-free` IDs rather than start billing for them. If you want to keep using the models, switch to a regular paid model ID. This offer is from AIWave, not Hugging Face.
r/learnmachinelearning • u/Gege-max • 11h ago
Who are your best AI agents ?
r/learnmachinelearning • u/Dang7348 • 15h ago
Two fictional patients had the same rise in creatinine, a blood test used to assess kidney function. Neither patientβs result was flagged on the lab report. In one handover a nurse called the result stable. In the other the nurse called it a real increase worth flagging. A creator asked a medical model to check each note.
The lab in the questions supplied its own rule: a rise above 14% counted as meaningful if the same lab had done both tests. If the earlier reading came from a different lab, the cutoff was 20%. Both patientsβ results went up about 15.2%. LingSante-3.1-flash corrected both notes. The rise cleared the same-lab threshold for the first patient and fell below the different-lab threshold for the second. Each answer earned 5/5.
Iβd like to see a version where the nurse just writes down the readings. Then give the model a fictional lab with the two cutoffs reversed. If it follows the supplied rule, its classification of each rise should flip again. That would tell me more than asking it to explain the original answers twic
r/learnmachinelearning • u/RaiBear • 12h ago
r/learnmachinelearning • u/Han_Labulaka • 17h ago
When a time-series model crushes offline cross-validation and falls apart in production, the bug is rarely the model architecture. Most of the time, the evaluation code quietly turned forecasting (extrapolating into the future) into interpolation (filling in a blank between yesterday and tomorrow).
To quantify how big that illusion gets on real data, I ran a controlled test on a single public file: 2024 hourly temperatures from the NOAA NCEI Central Park weather station (72505394728).
Fixed setup across all runs:
9999 placeholders, aligned to all 8,784 hourly slots of 2024 (41 missing hours / 0.47%, longest consecutive gap 24h).[t+1, t+24]).seed = 42).Only the split protocol changed:
| Evaluation Protocol | Train / Test Rows | Test RMSE | Test R2 | What It Actually Measures |
|---|---|---|---|---|
Random 80/20 split (shuffle=True) | 5,665 / 1,417 | 0.723 C | 0.993 | Interpolation between neighboring hours |
| Chronological last 20% + 24h Purge | 5,641 / 1,417 | 3.274 C (4.53x) | 0.688 | Honest forward forecasting |
| 168h seasonal naive baseline (same hour last week) | 1,417 test | 6.182 C | -0.113 | Zero-training baseline |
A few details worth keeping in mind when auditing forecasting code:
t averages [t+1, t+24], the last 24 rows of the training slice have target windows that physically overlap the test period. Train rows dropped from 5,665 to 5,641 after purging those 24 overlapping rows.Purge vs. Embargo are distinct mechanisms (Lopez de Prado 2018):
[t+1, t+H] overlaps the test block. Needed even on a single forward holdout.Three silent zero-exception leaks to grep for before shipping:
StandardScaler().fit_transform(df) or bfill() applied before splitting.rolling(..., center=True) or forgetting .shift(1) on rolling statistics.t_0.One guardrail that has saved me repeatedly: add assert (feature_timestamp < forecast_origin).all() at the end of feature generation, and always report RMSE in physical units next to a naive baseline rather than R2 alone.
What is the sneakiest time-series leakage bug you have caught in real projects? Centered rolling stats and pre-split target encoding seem to slip through code review most often.