r/learnmachinelearning • u/huopak • 1d ago
Walter's perfect speech, mathematically derived: Adversarial Prompting
r/learnmachinelearning • u/huopak • 1d ago
r/learnmachinelearning • u/The_Educational_Guy • 1d ago
I help run beginner AI/ML batches in Bengaluru. Beginners keep asking "where do I even start", so here's the 20-session plan we use. You can follow it on your own with free resources.
Week 1: Python basics
Week 2: Data and ML basics
6. NumPy arrays and math operations
7. Pandas: load a CSV, clean it, explore it
8. Matplotlib charts. Look for patterns in the data.
9. Features vs labels, train/test split
10. Supervised vs unsupervised learning. Match some sample problems to the right type.
Week 3: Your first models (scikit-learn)
11. Linear regression. Predict house prices.
12. Classification
13. Clustering. Group customers into segments.
14. Accuracy, precision, recall, and reading the errors
15. Mini project on a real dataset
Week 4: Generative AI
16. How LLMs work, in plain terms
17. Prompt structure and using AI responsibly
18. Build a simple assistant with an API or a no-code tool
19–20. Build a capstone project and present it What helps most: Code for an hour every session.
Watching videos without typing along feels like progress, but it isn't. Use Google Colab. No install problems, and it runs on any laptop. Finish one small project you can explain. That's worth more than five half-finished tutorials. To be honest, 4 weeks gets you a foundation, not a job. ML engineer roles need a lot more practice after this. Happy to answer questions about any week. E-kody
r/learnmachinelearning • u/ChawGaurabGogoi • 1d ago
Most of us think of Knowledge Distillation (KD) strictly as a compression trick, shrinking a massive teacher model down into a fast, lightweight student model for edge devices.
However, at its core, KD is just teaching one model using another instead of training from scratch, regardless of model size. I recently wrote a breakdown of a clever AAAI paper (TrustAL) that flips the script on KD by using it to solve Example Forgetting in Active Learning.
The Problem:
In Active Learning, an AI model is trained in multiple rounds. This means training on a small batch of data, asking humans to label the most confusing edge cases, and retraining. The assumption is that every round makes the model strictly smarter. In reality, updating weights on new, complex edge cases often overwrites previously mastered patterns. It’s like learning to drive a manual car: you master clutch control on empty roads (Round 1), then stall out in heavy city traffic (Round 2) because you’re overwhelmed by new stimuli.
How TrustAL Fixes It:
Instead of just training on the new batch of human labels, TrustAL adds a "look-back" step:
Why it matters:
I put together a quick, beginner-friendly visual breakdown of how this loop works (using the manual driving analogy) if anyone wants to read the full piece: Why Smarter AI Models Still “Forget” — And How Looking Back Fixes It
Hope you love it. 🙂
r/learnmachinelearning • u/OtherwiseCase5539 • 1d ago
Hi everyone — I built an open-source local ML workbench (WebNet v2) and just pushed the full codebase + build log to GitHub. Looking for honest testing, architecture critiques, and feature suggestions!
GitHub: https://github.com/Rishisharma029/live-internet-neural-net
What it actually runs (CPU-friendly, zero simulated metrics)
Continuous From-Scratch Transformer (InternetNetV2):
- 96d · 4h · 10L · ctx768 (`1,117,344` params, Pre-RMSNorm, SwiGLU, NTK RoPE `base=100,000`, decoupled AdamW, Softmax Z-Loss `1e-4`, EMA shadow weights).
- Feeds 24/7 on 8 curated sources(`arXiv`, `OpenAlex`, `Europe PMC`, `Wikipedia`, `StackOverflow`, `GitHub ML READMEs`, `Project Gutenberg`, `News RSS`) with SHA-256 + 5-word Jaccard deduplication.
- Migrated seamlessly from `ctx96` → `ctx768` at step 22.9k without losing weights.
Real-Time Mechanistic Observatory (`/ws`):
- Live 23-column network graph across all 21 hidden layers (real OV circuit edges, autograd gradient norms, AdamW second-moment RMS).
- Logit Lens (Emb → Block 1..10 → Final target probability, rank, entropy collapse).
- 2D SVD Token Embeddings live projection and 40 attention head telemetry.
4 Applied Local Utilities:
- Pure-PyTorch LoRA (SmolLM2-135M-Instruct + RAG) zero `peft` dependency, online training + cited RAG Q&A.
- Permanent SQLite WAL + FTS5 Archive BM25 + TF-IDF hybrid search across 964+ crawled docs.
- Cross-Entropy Anomaly Scorer: flags corrupted/gibberish lines (8.7–9.4 bpc anomalies vs 1.6–3.7 bpc clean prose).
- Safe Local Code/Notes Indexer + Ghost Editor: Tab autocomplete over your local files.
Quantitative Check (step 23,455)
- Val Loss: `1.424` (best: `1.115`, 58.7%
accuracy, 18.3M tokens seen)
- Shuffled-Char Probe: real prose `1.138` loss vs shuffled chars `5.415` — confirming structure learning beyond letter frequencies.
What I'd love feedback on
- Does `python server_v2.py` work cleanly across Linux/macOS/Windows?
- What architectural tweaks would make `InternetNetV2` learn longer contexts faster on CPU?
- What tools would you add on top of the FTS5 + LoRA pipeline?r/learnmachinelearning • u/amanyadav5844 • 1d ago
r/learnmachinelearning • u/RepulsiveScene8320 • 1d ago
Original Post: https://www.reddit.com/r/learnmachinelearning/comments/1y1th63/i_wrote_a_free_interactive_book_that_goes_from/
A short follow-up for anyone who read the earlier posts about Zero to Frontier, the free interactive book on AI I've been writing.
The new part is Learn in Claude. You connect your own Claude to the book once, and then you can ask it anything about the material in your usual Claude chat. It searches the book, answers from it, and links to the exact section and heading it used, so you can jump straight to the full explanation, the math, and the code.
- It runs on your own Claude plan, any plan including Free. No API key needed.
- Setup takes a minute. Sign in on the site with Google, press Learn in Claude, add it in Claude, and approve.
- Every section has the button too. It opens Claude with a message asking for a summary of that page with links to its parts, which you can edit before sending.
- It is read only. Claude sees what any visitor sees (the text, code, problems, and interview questions), never your notes or account, and you can disconnect it from your account page.
The interview chapters from the last post are still there and free: Classical ML, ML System Design, and LLM System Design, with coding exercises that have hidden tests and interview questions you can open. A good way to use the two together is to ask Claude to walk you through a design question from the book, then open the problem on the site to write and test your code.
Reading and running code is still free. If you try Learn in Claude, I'd love to hear where its answers were wrong or its links went to the wrong place, and what you'd want it to do next.
r/learnmachinelearning • u/Junior_Ad5998 • 2d ago
So I am currently planning to learn AI and ML is there any free resources available other than youtube videos,can you share the resources link, my preferences are structured resources with basic to advanced and having good examples, videos are not necessary
r/learnmachinelearning • u/hunain8007 • 1d ago
I have been learning more about GPU computing recently, and CUDA caught my attention.
I knew GPUs were important for deep learning, but i wanted to understand what actually allows frameworks like PyTorch to use their processing power.
This is CUDA comes in.
NVIDIA developed CUDA to let developers run parallel computations on GPUs. This is especially usefull for operations like matrix multiplication and neural network traning.
Something i find intersting is that when we write just a few lines of PyTorch code, there is a lot happening underneath to make those computations run efficiently.
I am corious about one thing:
For those who worked with CUDA, did you start with the CUDA C++ directly, or learn it through PyTorch first?
r/learnmachinelearning
•
u/Muhammad-Essa
•
2d ago
Neural Canvas , CNN Visualization
Neural Canvas can now recognize basic shapes like apples, moons, cars, and more using Google's Quick, Draw! dataset.
20 classes with 1,000 samples per class
2 convolutional layers with 16 and 32 filters
2 fully connected layers with 60 and 40 neurons
91% test accuracy
Trained using JAX on Google Colab
Neural Canvas can also visualize CNN feature maps in real time while drawing, showing how convolutional layers extract features from input images.
GitHub: https://github.com/MuhammadEssa2002/neural_canvas
Live demo: https://muhammadessa2002.github.io/neural_canvas/
r/learnmachinelearning • u/Quantum_Nuts • 2d ago
I have been learning the basics of CNN and UNet, understood the codes of CNN and basic UNet. Built a brain tumor segmentation model with Ai. What will be the best thing for me to do next?
r/learnmachinelearning • u/dineshsj17 • 1d ago
I've been exploring different Transformer architectures, and one interesting problem with looped Transformers is that parameter efficiency doesn't necessarily translate into computational efficiency.
Reusing weights across depth reduces parameter count, but sequential cross-loop dependencies can introduce inference latency.
This paper from ByteDance Seed takes an interesting approach:
- Treats KV states as explicit memory across layers and loops.
- Restarts each encoder loop from input embeddings instead of propagating the previous loop's residual stream.
- Removes same-position cross-loop dependencies.
- Separates memory construction from prediction through a cross-attention-only decoder.
The reported experimental results:
- 1.7× training token efficiency at 700M parameters.
- +2.1 percentage points in 10-task accuracy against a 3B MoE baseline.
- Comparable inference latency to non-looped OLMo3 at approximately 113M parameters.
What I'm particularly interested in is how this architecture scales.
Does reusing KV memory introduce significant memory-bandwidth overhead at longer context lengths? Would the latency advantage remain at billion-parameter scales? How does it compare with conventional depth scaling under equivalent compute budgets?
I think the distinction between parameter efficiency, computational efficiency, and actual hardware efficiency deserves more attention.
Curious to hear what others working on Transformer architectures think.
r/learnmachinelearning • u/dineshsj17 • 1d ago
r/learnmachinelearning • u/RepresentativeYam159 • 1d ago
r/learnmachinelearning • u/RepresentativeYam159 • 1d ago
I need a brutally honest reality check from people actually working in the industry. I am at a crossroads, completely broke, and about to take another non-IT customer support job just to survive—while trying to figure out if I still have a shot at breaking into AI/ML in 2027.
My Background:
Education: B.E. in CSE (2022 grad).
Work Experience: ~8 months total in non-IT customer support/field roles (Teleperformance & a smaller firm between 2024–2025).
Upskilling: Currently finishing a Data Science/ML/AI course (Datamites). It covered basics up to CNNs, though nothing modern like RAG, LLMs, or Agentic AI.
My Honest Confession (Where I actually stand):
Right now, I am stuck in "tutorial/reading hell."
Python/Data: I understand functions (def), NumPy, and Pandas when I read them. I get basic feature engineering concepts, though I struggle to create new features from scratch.
ML & Deep Learning: I grasp the high-level concepts (backprop, weights, activation functions), and I can read existing code and understand what it’s doing. However, my ability to write code from a blank screen is practically zero. I wouldn't know which activation function or architecture to pick on my own.
Math: My stats are okay-ish, statistical tests are vague, and I’ve forgotten most of my calculus.
The Projects: For my course, I submitted 4 projects (Customer Transaction Prediction, Advanced House Price Prediction, NBA Shot Selection, and Rice Leaf Disease using CNN) and got B/C grades. The truth is, I just pulled the .ipynb files from GitHub and submitted them. I didn't build them myself. I still have one "client project" left for my internship phase.
My Dilemma:
I genuinely enjoy AI, and I want to learn it properly. But every time I look at job descriptions and interview difficulty, I get completely overwhelmed. Worse, I have zero money right now and am about to join another non-IT support job just to pay the bills.
What I need help with:
Don't sugarcoat it. Tell me what’s at stake, what I’m doing wrong, and how to fix it if I only have a few hours a day. Thanks in advance.
r/learnmachinelearning • u/Puzzleheaded-Air-732 • 1d ago
Hi everyone!
I want to share a project we've been working on at the University of Chile: DashAI.
The motivation behind it is relatively simple: AI tools are becoming increasingly powerful, but working with data and building AI applications often means juggling multiple platforms, paying for cloud services, sharing your data with external providers, or writing quite a bit of code.
We wanted to explore a different approach.
DashAI is an open-source, low-code platform that brings together traditional Machine Learning and Generative AI in one place.
Rather than focusing on just one particular model or AI technique, we're trying to cover much more of the actual workflow.
1. Data exploration and Machine Learning
For example, you could upload a customer dataset, prepare the data, train a model to predict customer churn, and explore which features explain its predictions.
2. Generative AI
3. Local-first architecture
This is one of the things we care most about.
DashAI has a web interface that runs in your browser, but its backend runs on your own computer or server.
This means you can use a familiar web interface while keeping your data and processing under your control. You don't need to upload your datasets or documents to our servers, and you can deploy it on infrastructure you control.
We believe this is particularly important for universities, public institutions, companies and anyone working with sensitive data.
DashAI is not a weekend project or an AI wrapper built around an API.
It's an academic and engineering project with around five years of development, involving researchers and software engineers, developed at the University of Chile, with an associated technology company and an emerging open-source community.
We're building it in Latin America because we believe that developing our own AI infrastructure and tools matters. We shouldn't have to depend entirely on a handful of platforms elsewhere in the world to experiment with, develop and deploy AI.
We're also actively working on expanding the platform, including more advanced capabilities for working with and fine-tuning language models.
We're still developing DashAI, and we'd genuinely appreciate feedback from the open-source community.
Try it out:
Contributions, issues, suggestions and honest criticism are very welcome.
Thanks for taking a look!
r/learnmachinelearning • u/ChawGaurabGogoi • 2d ago
Knowledge Distillation is often seen as an effortless way to compress a large model such as BERT to form a smaller DistilBERT, yet maintaining 97% of its performance.
Nevertheless, a paper by Ahn et al. (GeBNLP) found that smaller distilled models end up noticeably more gender-biased than the original teacher models they learned from.
During distillation, the student model learns to closely replicate their teacher’s most assured predictions. Since the student model is less powerful than the large teacher, it must take ‘shortcuts’, which unintentionally reinforce gender biases already present in the training data.
The authors introduced a modified version of a technique known as ‘Mixup’, which involves mixing two training samples into the distillation process. This causes the student to reduce over-assertiveness and successfully limits the magnification of gender bias, with no negative effect upon GLUE performance.
If you would like to see my (brief and easily understandable) paper summary, then please see below:
r/learnmachinelearning • u/ColdProgress6867 • 1d ago
When debugging tool-using agents or classifiers, reading about failure modes is one thing—watching a deterministic policy walk into a trap you predicted wrong is much clearer.
I put together 4 short (~2–3 min each) interactive browser labs, no login required:
+2 energy bonus cancels a -2 penalty and how fixed candidate order causes deterministic crashes.90% aggregate report hides 0% subgroup accuracy and silent OOD fallback.Try all 4 free here: https://wovi.world/lab?utm_source=reddit_learnml&utm_medium=post
There is also a free 1-page pre-ship checklist at the bottom of the page (and an optional $19 Python Eval Kit with runnable unittest/pytest suites if you want the code locally). Would love feedback on which failure mode tripped you up most!
r/learnmachinelearning • u/sathvik_dk • 1d ago
Perceora is an end-to-end AI computer vision platform with no code. This film builds an object detection check for a tray of parts, so you can see every step of a real pipeline.
The steps, with what each one teaches:
Image classification, segmentation and anomaly detection are in the same app, and it runs on your own computer. Free to start; Pro (shown in the video) is a paid plan.
Which of these steps was hardest for you when you started?
Disclosure: I work on Perceora. Synthetic images, computer-generated voice.
r/learnmachinelearning • u/Silence0death • 2d ago
I m recently in 3rd semester of BCA. And after listening of all this AI stuff, job vanished cuz of AI, and unstable market conditions.
I m confused what should I learn?
I learnt python, dsa, numpy, pandas, visualization, and scikit learn. After learning all this someone told AI can already do data anylisis job.
I m stuck should I learn Data science, AI/data engineering or ML engineering...
Ik someone will after 5-6 months will tell. It's will done by AI. 😔😔😔
Pls, tell me ur opinion
r/learnmachinelearning • u/lII1lIIl1IIll1Il11l • 1d ago
There was a thread about someone's twitter comments before 2020 being flagged as non-AI so that proved that the case where something they wrote afterwards is flagged as AI is proof the system is working.
I wrote this comment
"That doesn't mean anything.
Social media pre-chatGPT is widely available as training data for AI.
If it's on twitter then it was trained as non-AI by any classifier with decent data team.
Of course anything on the internet pre-chatgpt isn't going to get flagged as AI. The AI is trained not to classify it as such.
AI models are so big that it's very proficient at memorization. When the text is already in the training data, it should give it the correct classification each time unless there was something wrong with the training.
After chatgpt came out, reddit, twitter, and other social media started restricting AI data crawlers. It's why many have switched to login only access."
Which is just a combination of things that I've learned from news podcasts though after I written it all out, I'm not sure if that all connecs. Could I get a fact check in this?
r/learnmachinelearning • u/fmassabrick • 2d ago
I find out this cool research form
r/learnmachinelearning • u/LeadershipEqual3154 • 2d ago
Can Anyone please tell me what are the exact projects we will be building here ?
r/learnmachinelearning • u/Nathanub_ • 1d ago
Hey everyone,
I've been working on a side project called Faitopia, and I'd love some honest feedback before I launch.
The idea: premium AI models are expensive, and a lot of people can't justify another monthly subscription. Faitopia gives you free access to paid models, starting with Claude Opus 5.5 and GPT-6 Astra.
I've attached an early look at the chat UI. The ad banner stays on the side, never inside the conversation.
How is it free? It runs on the official provider APIs and is paid for with banner ads on the site. That's it.
What it's not**:**
Where it's at: I've got the technical side sorted, and I'm opening a waitlist now. I only want to launch if there's real demand, so the waitlist decides whether this happens.
If that sounds useful, you can join here: https://faitopia.eldenstudios.net/waitlist
You'll confirm your email, and then you only get one message: when your spot opens. No spam.
I'd especially like to hear:
Thanks for reading, and happy to answer anything in the comments.
r/learnmachinelearning • u/ClickOk5811 • 2d ago
When you're learning ML, a common first step is train_test_split and reading one accuracy number. I wanted to see how much that number depends on luck, so I ran a small test.
Setup: scikit-learn 1.9.1, the built-in Wine dataset (178 rows, 3 classes), standardization plus logistic regression, 80/20 split. The only thing I changed was random_state, from 0 to 199.
import numpy as np
from sklearn.datasets import load_wine
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
X, y = load_wine(return_X_y=True)
model = make_pipeline(StandardScaler(), LogisticRegression(max_iter=2000))
acc = []
for seed in range(200):
Xtr, Xte, ytr, yte = train_test_split(X, y, test_size=0.2, random_state=seed)
acc.append(model.fit(Xtr, ytr).score(Xte, yte))
acc = np.array(acc)Results across the 200 splits:
min 0.889 max 1.000 mean 0.978 std 0.023
first five seeds: 1.0, 1.0, 1.0, 0.972, 0.972The model is identical every time. The test set has only 36 rows, so each mistake moves the score by about 2.8 points. A lucky split can show 100%, and an unlucky one 89%.
Comparing with repeated cross-validation (5 folds, 10 repeats):
mean 0.980 std 0.022The average is about the same, which is reassuring: this dataset is easy. But the spread tells you how much a single number can move.
What I take from this:
Question for the group: when you compare models, do you use repeated CV, a fixed split, or something else? And at what dataset size do you stop worrying about this?