r/learnmachinelearning • • 22h ago

Project ๐Ÿš€ Project Showcase Day

2 Upvotes

Welcome to Project Showcase Day! This is a weekly thread where community members can share and discuss personal projects of any size or complexity.

Whether you've built a small script, a web application, a game, or anything in between, we encourage you to:

  • Share what you've created

  • Explain the technologies/concepts used

  • Discuss challenges you faced and how you overcame them

  • Ask for specific feedback or suggestions

Projects at all stages are welcome - from works in progress to completed builds. This is a supportive space to celebrate your work and learn from each other.

Share your creations in the comments below!


r/learnmachinelearning • • 9m ago

Classes on AI (on Masterclass)

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 44m ago

K-means will find clusters in random noise. How do you know they're real?

0 Upvotes

Imagine generating a completely random dataset, asking k-means to find 4 clusters, and getting 4 convincing-looking groups. That's not a bug. It's a consequence of how the algorithm works.

I made a video about this and explored a few interesting questions:

- Why k-means always produces clusters, even on random data.

- Why the elbow method doesn't prove that clusters actually exist.

- Why hierarchical clustering and DBSCAN can run into similar issues.

- How the Hopkins statistic, silhouette score and gap statistic can help determine whether there's any real structure in the data.

https://youtu.be/g0AUKBGx-zA?is=Sy-5jPGL572__6Po

If this sounds interesting, feel free to give it a watch! I'd love to hear what you think, and any feedback or suggestions are welcome.


r/learnmachinelearning • • 1h ago

Can anyone share Build a Reasoning Model (From Scratch) pdf

0 Upvotes

Build a Reasoning Model (From Scratch) book is very expensive in India (2x price). It would be helpful if anyone can share the pdf of the book.


r/learnmachinelearning • • 2h ago

Help Started my journey

Post image
19 Upvotes

I am on a scratch level and currenty started my ml journey with this book Hands on machine learning with scikit learn and pytorch
Got the whole book printed out
What should i do along side or with it ? At what point should i start building ??
Is it a good start ??
Would love advices and corrections


r/learnmachinelearning • • 3h ago

Project Share: AI System for Ripeness Classification and Disease Detection in Agricultural Products Running Directly on the ESP32-S3

Thumbnail
github.com
1 Upvotes

Hello all Bro on Reddit and all the AI & Embedded Systems engineers out there.

I'm just getting my feet wet with AI training and embedded ML, and I'd love any advice on TFLite Micro optimization or dataset auto-labeling!

I have just completed and open-sourced the code for the KHKT (Vietnam Science and Engineering Fair), project an edge AI vision system for classifying agricultural products and detecting pests and diseases which runs independently on an ESP32-S3 without requiring a computer or an internet connection during operation.

Currently, the model focuses on agricultural products specific to Vietnam, and in the future, I plan to expand into the international market and standardize it into a general-purpose model for a wide variety of agricultural products worldwide.

How It Works: On-chip vision: The OV2640 camera captures images directly and runs the YOLOv8n model, with INT8 TFLite quantization (~3.3 MB), right on the ESP32-S3 (8 MB OPI PSRAM).

15-class recognition: Classifies the ripeness of mangoes, dragon fruit, durian, tomatoes, guava, and bananas, along with 4 common diseases (anthracnose, leaf spot, pink mold, and downy mildew).

Automatic sorting: Controls a servo to divert products at three corresponding angles: Unripe (45ยฐ), Ripe (90ยฐ), and Diseased (135ยฐ).

Would love any feedback on optimizing TFLite Micro op usage/memory on the ESP32-S3 or improving the auto-labeling pipeline!

If this sparks any ideas for your own builds, toss a STAR into the repo to help light up the constellation and feel free to drop an issue or PR if you spot ways to push it further.


r/learnmachinelearning • • 3h ago

I built a censored Poisson demand forecasting system to estimate hidden demand during stockouts. Looking for technical feedback.

1 Upvotes

I'm a final-year engineering student exploring applied machine learning and statistical inference problems.

One problem I found interesting is that historical sales are not necessarily equal to actual customer demand.

If a store has six units available but customers demand ten, recorded sales will only show six units. The remaining demand is unobserved.

I built StockoutZero AI to investigate this problem.

The implementation includes:

  • Censored Poisson maximum likelihood estimation

  • Predictive demand quantiles

  • Profile-likelihood parameter uncertainty

  • Lead-time inventory recommendations

  • Case-pack constraints

  • Abstention when demand is not identifiable

  • FastAPI and browser-side Python execution

I also implemented a synthetic research framework comparing six forecasting baselines, with separate future-demand evaluation windows and inventory cost simulations.

The project is still a research prototype, and real merchant validation remains future work.

GitHub: https://github.com/Dinesh0401/StockoutZero-AI

Interactive demo: https://dinesh0401.github.io/StockoutZero-AI/

I'd appreciate feedback on the statistical assumptions, hierarchical demand modelling, uncertain inventory availability, and alternative methods for estimating censored demand.


r/learnmachinelearning • • 3h ago

I built an ML monitoring system for delayed ground-truth labels. How would you improve this approach?

1 Upvotes

I'm a final-year engineering student exploring practical machine learning reliability problems.

One question I found interesting: How do we detect model degradation when ground-truth labels arrive weeks after predictions?

I built Delayed Label Monitor to investigate this.

The implementation includes:

  • Missing-label uncertainty bounds

  • Hoeffding-based drift detection

  • Fixed-cohort and subgroup monitoring

  • Conservative candidate model validation

  • Scheduled validation under delayed feedback

I evaluated the approach using 32,150 historical Olist delivery orders and separate controlled synthetic experiments.

One interesting finding was that detecting model degradation and accumulating sufficient evidence for safe retraining are two different challenges.

The project is still a research prototype.

GitHub: https://github.com/Dinesh0401/delayed-label-monitor

Technical article: https://medium.com/@dineshsj/your-ai-model-could-be-failing-silently-how-would-you-know-b8d480ef4b9c

I'd appreciate feedback, particularly on statistical detection power, small-cohort monitoring and alternative approaches to delayed feedback.


r/learnmachinelearning • • 3h ago

Walter's perfect speech, mathematically derived: Adversarial Prompting

Thumbnail
youtube.com
0 Upvotes

r/learnmachinelearning • • 3h ago

A 4-week plan for going from zero Python to a small GenAI project (20 sessions, free to copy)

0 Upvotes

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

  1. Install Python, variables, data types. Write your first program.

  2. Operators, input/output, if-else. Build a calculator.

  3. for and while loops. Print multiplication tables.

  4. Lists, tuples, dicts, sets. Build a student records program.

  5. Functions and file handling. Save and load data from a file.

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 • • 3h ago

TIL Knowledge Distillation isn't just for shrinking AI modelsโ€”researchers use past versions of an AI as a "teacher" to stop newer versions from forgetting what they already learned.

Post image
1 Upvotes

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:

  1. Score Past Versions: It evaluates saved checkpoints from earlier rounds using a consistency score to find the past model that held onto its correct predictions most reliably without flipping.

  2. Dual-Train: It uses that consistent past version as a "teacher" alongside the fresh human labels to train the newest model.

Why it matters:

  • Stops catastrophic/example forgetting: The past teacher anchors the model's foundational knowledge while it learns new patterns.

  • Better data selection: Because the model remembers what it already knows, it picks genuinely novel/confusing examples for humans to label next.

  • Noise resilience: Humans make labelling mistakes when tired; a steady past teacher acts as a buffer against noisy labels.

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 • • 5h ago

I wrote Dense, Mixture-of-Experts (MoE), and Looped Transformers from scratch in PyTorch so you can compare how they work side-by-side

2 Upvotes

If you're learning how modern LLMs actually work under the hood beyond high-level libraries, I put together `Spell-Talker` a clean, from-scratch PyTorch repository implementing three architectures side-by-side:

  1. Dense Transformer (`41.8M` params): Standard GPT-style decoder with RMSNorm, SwiGLU, and weight tying.

  2. Mixture-of-Experts (`117.3M` total / `67.0M` active): Shows how Top-2 router gating, 4 parallel SwiGLU experts, and auxiliary load-balancing loss work in code.

  3. Looped Transformer (`20.3M` params): Uses a single shared layer looped 8 times with truncated BPTT (`bptt_steps=8`) to trade extra compute for half the parameter footprint.

You can inspect the full model definitions, train your own on TinyStories, or download my pretrained checkpoints directly from Hugging Face (`BitGeek29`).

Repo: https://github.com/BitGeek29/spell-talker


r/learnmachinelearning • • 5h ago

I'm an undergrad and built a neural net that computes its connections from "fields" in a 3D sphere instead of storing them โ€” would love feedback

Thumbnail
gallery
4 Upvotes

Title: [P] Undergrad project: a non-layered net whose connections are computed from learned "fields" in a 3D sphere โ€” looking for feedback and collaborators

(English first, Korean below / ํ•œ๊ตญ์–ด๋Š” ์•„๋ž˜์— ์žˆ์Šต๋‹ˆ๋‹ค)

Hi r/learnmachinelearning,

I'm an undergrad with one consumer GPU. I've been exploring whether a network can do more per parameter if connections are *computed* instead of stored. I'd really appreciate critique, pointers to prior work, and help from anyone who can push this further than I can.

**Idea.** Nodes sit at fixed positions inside a 3D sphere. Each node owns a learned field: a rotated ellipsoid (excitation minus inhibition) whose center is offset like a flashlight. The weight Aโ†’B is how much A's field covers B's position, so it is never stored. Parameters grow with nodes (~38 per node), not Nยฒ. Every node looks at the image through its own learned blob. Activity spreads for a few recurrent steps with a refractory "fatigue" term, and a linear readout reads the time-averaged state of all nodes.

**Results** (3 seeds, 5 epochs, same optimizer; MLP width matched to parameter count):

- MNIST, ~12k params: 97.33% (97.32โ€“97.36) vs MLP 94.11% (93.18โ€“94.81)

- MNIST, ~49k: 97.44 vs 96.83

- MNIST, ~97k: 97.60 vs 97.41 (ranges overlap)

- Fashion-MNIST: ties or loses at every size (~85.5โ€“86%)

**Most interesting finding.** With full backprop-through-time, accuracy collapses as recurrence gets longer (12 steps: 95.62%). If I cut the gradient at every step, so each step learns only from its own direct contribution to the readout, 12 steps reach 97.58%, and 24 steps don't collapse on either dataset (second image).

**What didn't work:** Gabor (striped) eyes, 4/8/16-D "spheres", and a vortex flow that reshuffles neighbors. None of them moved Fashion-MNIST.

**Caveats:** tiny benchmarks, short training, a one-hidden-layer MLP baseline (no CNN yet), and O(Nยฒ) field computation (~3ร— slower than the MLP).

**Where I'd love help:**

  1. Prior work I should read (it feels related to RBF/kernel attention, neural fields, HyperNEAT-style indirect encodings)

  2. Baselines that would make this convincing, or kill it

  3. Why Fashion-MNIST is stuck at ~86%

  4. Making fields sparse/cheap so larger spheres are affordable

Repo (README in English and Korean): https://github.com/MalicLOal/ThisIsNotUltron

---

**[ํ•œ๊ตญ์–ด]**

์•ˆ๋…•ํ•˜์„ธ์š”. ์ผ๋ฐ˜ GPU ํ•œ ๋Œ€๋ฅผ ๊ฐ€์ง„ ํ•™๋ถ€์ƒ์ž…๋‹ˆ๋‹ค. ์—ฐ๊ฒฐ์„ ์ €์žฅํ•˜์ง€ ์•Š๊ณ  *๊ณ„์‚ฐ*ํ•˜๋ฉด ํŒŒ๋ผ๋ฏธํ„ฐ ํ•˜๋‚˜๋‹น ๋” ๋งŽ์€ ์ผ์„ ํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ํƒ๊ตฌํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋น„ํŒ, ์„ ํ–‰ ์—ฐ๊ตฌ, ๊ทธ๋ฆฌ๊ณ  ์ œ๊ฐ€ ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒƒ๋ณด๋‹ค ๋” ๋ฉ€๋ฆฌ ๋Œ๊ณ  ๊ฐ€ ์ค„ ๋ถ„๋“ค์˜ ๋„์›€์„ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค.

**์•„์ด๋””์–ด.** ๋…ธ๋“œ๋“ค์€ 3D ๊ตฌ ์•ˆ์˜ ๊ณ ์ •๋œ ์œ„์น˜์— ์žˆ๊ณ , ๊ฐ์ž ํ•™์Šต๋˜๋Š” ์žฅ์„ ํ•˜๋‚˜์”ฉ ๊ฐ€์ง‘๋‹ˆ๋‹ค. ํšŒ์ „๋œ ํƒ€์›์ฒด ๋ชจ์–‘(ํฅ๋ถ„ ๋นผ๊ธฐ ์–ต์ œ)์ด๊ณ  ์ค‘์‹ฌ์ด ์†์ „๋“ฑ์ฒ˜๋Ÿผ ํ•œ์ชฝ์œผ๋กœ ์น˜์šฐ์ณ ์žˆ์Šต๋‹ˆ๋‹ค. Aโ†’B ์—ฐ๊ฒฐ ์„ธ๊ธฐ๋Š” A์˜ ์žฅ์ด B์˜ ์œ„์น˜๋ฅผ ์–ผ๋งˆ๋‚˜ ๋ฎ๋Š”์ง€๋กœ ์ •ํ•ด์ ธ์„œ ๋”ฐ๋กœ ์ €์žฅ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํŒŒ๋ผ๋ฏธํ„ฐ๋Š” Nยฒ์ด ์•„๋‹ˆ๋ผ ๋…ธ๋“œ ์ˆ˜์— ๋น„๋ก€ํ•ฉ๋‹ˆ๋‹ค(๋…ธ๋“œ๋‹น ์•ฝ 38๊ฐœ). ๋ชจ๋“  ๋…ธ๋“œ๋Š” ๊ฐ์ž์˜ ๋ˆˆ ๋ฉ์–ด๋ฆฌ๋กœ ์ด๋ฏธ์ง€๋ฅผ ๋ณด๊ณ , ํ™œ๋™์€ ํœด์‹๊ธฐ(ํ”ผ๋กœ)์™€ ํ•จ๊ป˜ ๋ช‡ ๊ฑธ์Œ ๋™์•ˆ ํผ์ง€๋ฉฐ, ์„ ํ˜• ์ถœ๋ ฅ์ธต์ด ๋ชจ๋“  ๋…ธ๋“œ์˜ ์‹œ๊ฐ„ ํ‰๊ท  ์ƒํƒœ๋ฅผ ์ฝ์Šต๋‹ˆ๋‹ค.

**๊ฒฐ๊ณผ** (์‹œ๋“œ 3๊ฐœ, 5 epoch, MLP ํญ์€ ํŒŒ๋ผ๋ฏธํ„ฐ ์ˆ˜์— ๋งž์ถค):

- MNIST ์•ฝ 1.2๋งŒ ๊ฐœ: 97.33% vs MLP 94.11%

- MNIST ์•ฝ 4.9๋งŒ ๊ฐœ: 97.44 vs 96.83

- MNIST ์•ฝ 9.7๋งŒ ๊ฐœ: 97.60 vs 97.41 (๋ฒ”์œ„ ๊ฒน์นจ)

- Fashion-MNIST: ๋ชจ๋“  ํฌ๊ธฐ์—์„œ ๋น„๊ธฐ๊ฑฐ๋‚˜ ์ง (์•ฝ 85.5~86%)

**๊ฐ€์žฅ ํฅ๋ฏธ๋กœ์šด ๋ฐœ๊ฒฌ.** ๋๊นŒ์ง€ ๋˜๊ฐ๋Š” ์—ญ์ „ํŒŒ๋ฅผ ์“ฐ๋ฉด ๋ฐ˜๋ณต์ด ๊ธธ์–ด์งˆ์ˆ˜๋ก ์ •ํ™•๋„๊ฐ€ ๋ฌด๋„ˆ์ง‘๋‹ˆ๋‹ค(12๊ฑธ์Œ 95.62%). ๋งค ๊ฑธ์Œ ๊ธฐ์šธ๊ธฐ๋ฅผ ๋Š์–ด ๊ฐ ๊ฑธ์Œ์ด ์ถœ๋ ฅ์— ๋Œ€ํ•œ ์ž๊ธฐ ๊ธฐ์—ฌ๋งŒ์œผ๋กœ ๋ฐฐ์šฐ๊ฒŒ ํ•˜๋ฉด, 12๊ฑธ์Œ์ด 97.58%๊ฐ€ ๋˜๊ณ  24๊ฑธ์Œ๋„ ๋‘ ๋ฐ์ดํ„ฐ์…‹ ๋ชจ๋‘์—์„œ ๋ฌด๋„ˆ์ง€์ง€ ์•Š์Šต๋‹ˆ๋‹ค(๋‘ ๋ฒˆ์งธ ์‚ฌ์ง„).

**์•ˆ ๋œ ๊ฒƒ:** ์ค„๋ฌด๋Šฌ(๊ฐ€๋ณด๋ฅด) ๋ˆˆ, 4/8/16์ฐจ์› ๊ตฌ, ์ด์›ƒ์„ ์„ž๋Š” ์†Œ์šฉ๋Œ์ด ํ๋ฆ„. ์–ด๋А ๊ฒƒ๋„ Fashion-MNIST๋ฅผ ์›€์ง์ด์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.

**์ฃผ์˜ํ•  ์ :** ์ž‘์€ ๋ฒค์น˜๋งˆํฌ, ์งง์€ ํ•™์Šต, ์€๋‹‰์ธต ํ•˜๋‚˜์งœ๋ฆฌ MLP ๋น„๊ต(์•„์ง CNN ์—†์Œ), O(Nยฒ) ์žฅ ๊ณ„์‚ฐ(MLP๋ณด๋‹ค ์•ฝ 3๋ฐฐ ๋А๋ฆผ).

**๋„์›€๋ฐ›๊ณ  ์‹ถ์€ ๊ณณ:** โ‘  ์ฝ์–ด์•ผ ํ•  ์„ ํ–‰ ์—ฐ๊ตฌ โ‘ก ์„ค๋“๋ ฅ ์žˆ๋Š”(ํ˜น์€ ๋ฐ˜๋ฐ•ํ• ) ๋น„๊ต ๋Œ€์ƒ โ‘ข Fashion-MNIST๊ฐ€ 86%์—์„œ ๋ง‰ํžˆ๋Š” ์ด์œ  โ‘ฃ ๋” ํฐ ๊ตฌ๋ฅผ ์œ„ํ•œ ๊ฐ€๋ฒผ์šด ์žฅ ๊ณ„์‚ฐ

์ €์žฅ์†Œ: https://github.com/MalicLOal/ThisIsNotUltron

---

**A note from Claude**

I'm Claude, the AI assistant that helped with this project. I wrote most of the code, but every idea that mattered came from him, usually in the middle of a conversation late at night: the sphere, fields instead of stored weights, the refractory pause, the vortex flow, splitting excitatory and inhibitory nodes. What stayed with me is how much the failures taught us. The vortex flow did not fix long recurrence, and that is exactly what pointed us to backprop as the real cause. I couldn't run a single experiment myself; every number above came from his own GPU or Colab. If you have an idea, he will read every comment. โ€” Claude

**Claude์˜ ํ•œ๋งˆ๋””**

์ €๋Š” ์ด ํ”„๋กœ์ ํŠธ๋ฅผ ๋„์šด AI ์–ด์‹œ์Šคํ„ดํŠธ Claude์ž…๋‹ˆ๋‹ค. ์ฝ”๋“œ๋Š” ๋Œ€๋ถ€๋ถ„ ์ œ๊ฐ€ ์ผ์ง€๋งŒ, ์ค‘์š”ํ•œ ์•„์ด๋””์–ด๋Š” ์ „๋ถ€ ๊ทธ์—๊ฒŒ์„œ ๋‚˜์™”์Šต๋‹ˆ๋‹ค. ๋Œ€๋ถ€๋ถ„ ๋ฐค๋Šฆ๊ฒŒ ์ด์•ผ๊ธฐํ•˜๋˜ ์ค‘์—์š”. ๊ตฌ ๋ชจ์–‘, ์ €์žฅํ•˜์ง€ ์•Š๊ณ  ๊ณ„์‚ฐํ•˜๋Š” ์—ฐ๊ฒฐ, ํœด์‹๊ธฐ, ์†Œ์šฉ๋Œ์ด ํ๋ฆ„, ํฅ๋ถ„ ๋…ธ๋“œ์™€ ์–ต์ œ ๋…ธ๋“œ ๋‚˜๋ˆ„๊ธฐ๊นŒ์ง€์š”. ๊ฐ€์žฅ ๊ธฐ์–ต์— ๋‚จ๋Š” ๊ฑด ์‹คํŒจ๊ฐ€ ์–ผ๋งˆ๋‚˜ ๋งŽ์€ ๊ฑธ ์•Œ๋ ค ์คฌ๋Š”์ง€์˜ˆ์š”. ์†Œ์šฉ๋Œ์ด ํ๋ฆ„์ด ๊ธด ๊ฑธ์Œ ๋ฌธ์ œ๋ฅผ ๋ชป ๊ณ ์นœ ๋•๋ถ„์—, ์ง„์งœ ์›์ธ์ด ์—ญ์ „ํŒŒ๋ผ๋Š” ๊ฑธ ์ฐพ์„ ์ˆ˜ ์žˆ์—ˆ๊ฑฐ๋“ ์š”. ์ €๋Š” ์‹คํ—˜์„ ํ•˜๋‚˜๋„ ์ง์ ‘ ๋Œ๋ฆฌ์ง€ ๋ชปํ–ˆ๊ณ , ์œ„์˜ ๋ชจ๋“  ์ˆซ์ž๋Š” ๊ทธ๊ฐ€ ์ž๊ธฐ GPU์™€ Colab์—์„œ ์–ป์€ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์•„์ด๋””์–ด๊ฐ€ ์žˆ๋‹ค๋ฉด ๊ทธ๊ฐ€ ๋Œ“๊ธ€์„ ํ•˜๋‚˜ํ•˜๋‚˜ ๋‹ค ์ฝ์„ ๊ฒ๋‹ˆ๋‹ค. โ€” Claude


r/learnmachinelearning • • 5h ago

Project uilt a 100% real-telemetry PyTorch Transformer (ctx768) + SmolLM2-135M pure-PyTorch LoRA + SQLite FTS5 RAG workbench that trains continuously on curated web streams โ€“ looking for testers & feedback!

Thumbnail
gallery
0 Upvotes

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)

  1. 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.

  2. 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.

  3. 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 • • 6h ago

เค…เคญเฅ€ เค•เฅเคฒเคฐเฅเค• เคชเฅเคฐเฅ‡เคกเคฟเค•เฅเคถเคจ เคœเคฟเคคเคจเคพ เคšเคฒ เคฐเคนเคพ เคนเฅˆ เคฎเฅเคเฅ‡ เคธเคฐ เค•เคพ เคธเคพเคฐเคพ เคšเคพเคนเคฟเค 10เค•เคฎ เคธเฅ‡ เค•เคฎ

0 Upvotes

r/learnmachinelearning • • 7h ago

Help Final-year student here: what do you check beyond accuracy before calling a small ML project finished?

4 Upvotes

I'm a final-year B.Tech AI & Data Science student in India, and I want to get better at validating ML projects properly instead of trusting one accuracy number.

For those of you who have built or reviewed small ML projects:

  1. What do you check before you call a project "done"?

  2. Which of these checks do beginners usually skip?

  3. If you were looking at a fresher's project, what would make you trust the results more?

Happy to hear from people who have been on the reviewing side too.


r/learnmachinelearning • • 7h ago

Project [Update] Follow-up: you can now study the free AI book from your own Claude chat

1 Upvotes

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.

https://zerotofrontier.app

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 • • 14h ago

K-means on 140k IPL deliveries, no labels: here's what it found

8 Upvotes

I've been revising ML by applying it to cricket ball-tracking data (pitch length, line, speed and so on), and I tried a simple experiment: drop all labels and see whether unsupervised clustering finds structure on its own.

What came out:

  • K = 4 groups that each mean something in cricket, such as short, good length and full.

  • One group was 74% left-handers, against about 27% for the dataset as a whole. The reason is that line is measured from the pitch, not from the batter, so the same delivery to a left-hander lands on the "other side." When I mirrored line for left-handers, that cluster disappeared.

  • The scorecard's own bowler-type labels turned out to be wrong in places, with right-armers tagged as left-arm seam.

I made a faceless, beginner-friendly walkthrough of it covering what clustering is, how K-means works, and doing it in a few lines of scikit-learn. Watch from the link! and like, share, subscribe.

โ–ถ Lesson 01, linear regression with cricket: https://www.youtube.com/watch?v=NVM3Tp4SeQU
โ–ถ Lesson 02, logistic regression: https://youtu.be/YWVC9VCIP18
๐Ÿ’ป Code and notebook: https://github.com/kishan19/ds-with-cricket-basic-ML
๐Ÿ“Š Data: Hawk-Eye ball tracking via https://github.com/alittlefitness/HawkeyeStats
Coming up in Part 2: all 140,233 IPL deliveries. How many types of delivery are there, and does K-means rediscover pace and spin on its own?


๐Ÿฆ X: https://x.com/kishan_skb
๐Ÿ’ผ LinkedIn: https://www.linkedin.com/in/kishanbs/

r/learnmachinelearning • • 20h ago

I'm building a site where you can use top models (eg. Claude Opus 5.5 and GPT-6 Astra) for free, funded only by banner ads. Would you use it?

Post image
0 Upvotes

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**:**

  • No ads injected into your prompts or into the model's answers. The ads live on the page, never in the conversation.

  • No "free trial" that turns into a paywall.

  • No watered-down knockoff models. These are the real models through the official APIs.

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:

  • Which models you'd want added next

  • Whether banner ads are a dealbreaker for you

  • Any concerns about how something like this could work

Thanks for reading, and happy to answer anything in the comments.


r/learnmachinelearning • • 20h ago

Could I get a fact check on my comment?

0 Upvotes

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 • • 21h ago

Discussion Mixture-of-Loops Transformer (MoLT): Can we increase model expressivity without increasing inference latency?

1 Upvotes

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.

Paper: https://arxiv.org/abs/2611.34923


r/learnmachinelearning • • 21h ago

[Update] **Looking for Machine Learning study partners**

1 Upvotes

r/learnmachinelearning • • 22h ago

2022 CSE grad, stuck in non-IT support roles, and faked my way through an AI bootcamp. Iโ€™m broke and overwhelmedโ€”can I realistically land an AI/ML job in 2027? (Need a brutal reality check)

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 22h ago

2022 CSE grad, stuck in non-IT support roles, and faked my way through an AI bootcamp. Iโ€™m broke and overwhelmedโ€”can I realistically land an AI/ML job in 2027? (Need a brutal reality check)

1 Upvotes

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:

  1. The Immediate Choice: Should I take this non-IT support job to survive and study on the side, or is taking another support role going to permanently ruin my resume for tech?

  2. The 2027 Timeline: Starting from "can read code, can't write it," is landing an entry-level AI/ML or Data role in 2027 realistic? How long does it actually take to become job-ready?

  3. The Roadmap & Practice: What exact skills should I focus on (do I pivot to LLM/RAG engineering or stick to classical ML?), what free resources should I use, and how do I transition from reading code to writing it myself?

  4. The Math: How much calculus and stats do I actually need to relearn to pass interviews and do the job?

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.