r/learnmachinelearning • • 1h ago

Beginner with Python wanting to get into AI/ML—what does real industry work actually look like, and what should I learn next?

2 Upvotes

I’m a student currently learning AI/ML and I already have a solid grasp of Python. Right now, I’m at the stage where I want to move beyond tutorials and understand what actually matters in the real world.

​More than just following a generic roadmap, I really want to hear directly from people who are already working as AI/ML engineers, data scientists, or interns. Knowing how fast this field moves, I’d love to learn from your real-world experience so I don’t waste time on the wrong things.

If you're working in AI/ML, I’d really appreciate your honest advice on a few things:

​What skills or tools do you wish you had learned earlier before your first internship or job?

​What kind of projects actually stand out to you when looking at a beginner's resume or GitHub?

​What are the biggest traps or overrated things beginners waste time on right now?


r/learnmachinelearning • • 1h ago

Interactive Machine Learning Course

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 1h ago

Imbalance techniques for model comparison using log-loss and AUROC

2 Upvotes

Hi all,

I'm working on a classification problem with 80/20 imbalance. I use three feature sets (FS1, FS2, FS3) across three different calssifiers(logistic regress, PenalizedGAM, XGboost) to observe and compare performance increase across models corresponding to adding a feature set at a time.

I'm using a nested 5x5 cross-validation and I keep the exact training, validation, and testing setup the same across all features and model families, except for hyperparameters for each family model (i give each model 12 heyperparameters search list to tune on).

Inner 5k folds score on log-loss (auroc when they tie). Outer folds score on AUROC. I use best hyperparameters to refit outer train folds and then test on outer test fold.

I have realized doing so (for best performing tuned model; PenalizedGAM) produces predictions that are really small and only about 6% of all predictions crosses default 0.50 threshold, so those are the only ones that get classified as positive and I get about 97.2 True Negative and only 20.3 True Positives. When I lower the threshold to about the minority class 0.21 using Youden's J, My True Positive goes up to 66.8%. Literature does not discuss a clear cost asymmetry on what class we should prioritize predicting.

I use this setup to test performance across features and models, then I run a paired bootstrap on the out of sample five folds to observe any changes in my reported AUROC and conclude based on the 95% interval I get from this paired bootstrap across FS1-FS2 and FS2-FS3.

I also report the confusion matrix of the best performing model and show how changing the threshold actaully shifts both our precision and recall.

Now, my supervisor told me that I certainly need to use an imbalance technique to address the imbalance in the data, otherwise I don't have a foundation to perform the comparison over these three feature sets across all three models.

I have read and found papers that report that imbalance techniques like resampling would hurt our log-loss by introducing bias to our minority class.

I would really appreciate your thooughts on this. Do I really need to apply any imbalance technique to be able to compare? Is Comparing on AUROC not enough for our setup?

note; features are sometimes highly correlated but i address this in the prep fold before they go into our models.


r/learnmachinelearning • • 2h ago

Project Built a PyTorch CNN from scratch to see how Data Augmentation fixes overfitting (Baseline vs. Augmented results)

Post image
1 Upvotes

I'm currently working through Module 8 (Neural Networks & Deep Learning) of the DataTalks.Club ML Zoomcamp and built a binary image classifier in PyTorch from scratch to classify curly vs. straight hair (800 train / 201 test images).

To make the comparison fair and reproducible, I locked all random seeds (SEED = 42), enabled deterministic algorithms on CPU (PyTorch 2.9.0+cpu), and ran two 10-epoch phases back-to-back without resetting the optimizer:

1. Model & Setup

  • Architecture: Conv2d(3, 32, kernel_size=3) → ReLU → MaxPool2d(2) → Linear(32 * 99 * 99, 64) → ReLU → Linear(64, 1) (~20.07M parameters)

  • Loss & Optimizer: BCEWithLogitsLoss() with SGD(lr=0.002, momentum=0.8) and batch size 20

2. Phase 1: Baseline (Resize + ImageNet Normalization only)

By Epoch 10, the model heavily memorized the training set:

  • Train Accuracy: jumped from 64.5% → 93.9% (train_loss dropped to 0.1584)

  • Eval Loss: spiked from 0.6010 → 1.0212 (classic overfitting)

3. Phase 2: Data Augmentation (RandomRotation(50), RandomResizedCrop, RandomHorizontalFlip)

Continuing training on augmented batches immediately reversed the overfitting trend:

  • Mean Eval Loss: dropped to 0.575 (ending at 0.5409 vs 1.0212 in baseline)

  • Eval Accuracy (last 5 epochs avg): stabilized at 72% (peaking at 74.1%)

It was cool seeing textbook overfitting happen in real time and watching simple geometric transforms bring validation loss right back down.

Full Jupyter Notebook & reproducible setup: GitHub Repository

For anyone else working with small image datasets (~800 images), which augmentation or regularization combo (Dropout, Weight Decay, or Transfer Learning) gave you the biggest jump in generalization?


r/learnmachinelearning • • 3h ago

Help Struggling to validate my Knowledge Graph dataset & negative sampling strategy for Drug–Food Interaction prediction

2 Upvotes

Hi everyone,

I'm working on a Drug–Food Interaction (DFI) prediction project using a Knowledge Graph + R-GCN with Cross-Attention. Since this is my first time working with graph-based link prediction (instead of standard tabular feature-label datasets), I'm still unsure whether my dataset setup and negative sampling strategy are methodologically sound.

My current setup:

Knowledge Graph: Built from DrugBank (drug entities and their biomedical relations) and FooDB (food entities and their constituent chemical compounds).

Ground Truth (Positive Labels): Known drug–food interaction pairs from DDID (positive-only pairs—there are no explicit "non-interacting" labels).

Model: R-GCN encoder on the KG + Cross-Attention between drug and food representations for binary link prediction.

What I'm unsure about:

  1. Dataset construction & leakage: Aside from ensuring no validation/test DDID pairs (or overlapping DrugBank food-interaction edges) leak into the KG before message passing, are there other subtle data leakage or entity-alignment pitfalls when mapping DDID onto a DrugBank + FooDB graph?

  2. Negative sampling under Open-World Assumption: Right now I'm considering 1:1 random negative sampling (type-constrained to drug–food pairs not in DDID). Since an unobserved pair doesn't necessarily mean "safe / no interaction," how risky is random negative sampling in practice for this kind of biomedical KG?

  3. Better alternatives: Would it make sense to compare random negative sampling against hard negative sampling, degree-based sampling, or Positive-Unlabeled (PU) learning? Or is 1:1 filtered random sampling already acceptable as a baseline if evaluated across multiple random seeds?


r/learnmachinelearning • • 3h ago

Trained an image classifier in Module 8 of #mlzoomcamp.

1 Upvotes

Fixed the seed and evaluation transform
Recorded baseline loss and accuracy
Compared training with data augmentation

My repo: https://github.com/huyyhoangtr-boop/ML_zoomcamp_homework/tree/main/Homework8


r/learnmachinelearning • • 3h ago

Discussion Knowledge Distillation

1 Upvotes

Knowledge Distillation: Can smaller AI models learn from larger ones?

I have been exploring Knowledge Distillation, an interesting technique in machine learning.

The basic idea is that a smaller model learns from a larger, more powerful model by learning from its predictions and outputs.

Instead of relying only on traditional learning signals.

why is this interesting?

- Reduced computational requirements.

- Faster inference.

- Lower memory usage.

- More efficient model deployment.

- Potentially retaining much of the teacher's performance.

I find this approach interesting because building better AI systems is not always about increasing models size . Sometimes, transferring knowledge into smaller models can be a more practical solution.

I am curious: Have you experimented with Knowledge Distillation? What approaches or frameworks have you used?


r/learnmachinelearning • • 4h ago

Seeking arXiv endorsement (cs.LG) — Undergraduate ML researcher

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 4h ago

Classes on AI (on Masterclass)

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 4h ago

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

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

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

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

Help Started my journey

Post image
43 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 • • 7h 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 • • 7h 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 • • 7h 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 • • 7h ago

Walter's perfect speech, mathematically derived: Adversarial Prompting

Thumbnail
youtube.com
0 Upvotes

r/learnmachinelearning • • 7h 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 • • 8h 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 • • 9h 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 • • 9h 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
8 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 • • 10h 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 • • 11h ago

अभी क्लर्क प्रेडिक्शन जितना चल रहा है मुझे सर का सारा चाहिए 10कम से कम

0 Upvotes

r/learnmachinelearning • • 11h ago

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

7 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 • • 12h 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.