r/learnmachinelearning • • 9h ago

Career Full-stack dev doing an AI & Data Engineering Master’s, but my program feels outdated. Where do I go for actual production-level resources?

2 Upvotes

Hello

I’m now doing my Master’s in AI & Data Engineering while working full-time as a full-stack developer. And honestly, I’m starting to feel like my university program is lagging pretty far behind what’s actually happening in the industry right now.

Because I already write production code for a living, I really care about how things are built, structured, and deployed in the real world, and not just messing around in isolated Jupyter notebooks or following 3-year-old YouTube tutorials. And sadly, while learning in this field, there is no Senior Engineer to guide me, just me, Claude, and dream.

I’m looking to do a proper deep dive into modern AI/ML and Data Engineering on my own time, and I’d love some recommendations from people actually working in the field:

  • Are there any structured courses (paid or free) that focus on production grade ML, AI engineering, or data pipelines?
  • Any books, repos, or roadmaps that helped you bridge the gap from standard software engineering to AI/DE?
  • What should I actually be focusing my energy on right now if I want my skills to be relevant for industry roles?

I might just seem lost, so excuse my lack of a roadmap before asking those questions.
Appreciate any pointers


r/learnmachinelearning • • 5h ago

Help Feature engineering for mixed-type time-series anomaly detection

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 6h ago

[P] I turned my GPU-memory experiments into an installable PyTorch runtime — 11.2% lower training memory on GPT-2, with a matched ablation

Post image
1 Upvotes

A little while ago I posted about trying to reduce GPU memory by saving only what backprop actually needs. That was the early stage of SHV (Sub-loop Heterocoding VRAM). I've since moved from compressing saved states toward looking at when tensors are created, how long they stay live, and whether they need separate storage in the first place.

The most useful result came from a fairly specific problem with gradient accumulation and tied embeddings.

GPT-2 Small shares its input embedding and output projection weights. A full FP32 gradient for that matrix is about 147 MiB. Once you start accumulating over several microbatches, an existing gradient can remain live while the output head computes another full contribution. The question I wanted to test was whether the output-head VJP could write its contributions directly into the existing gradient destination.

The implementation is straightforward in principle: split the output-head VJP into token tiles, accumulate each weight-gradient contribution into the destination with addmm_, compute the hidden-state gradient, and pass that back into the native Transformer backward. The embedding backward remains native autograd. Clipping and the optimizer update still happen once per effective batch. No CPU gradient offload or lower-precision gradients are used here.

I compared three versions, because simply comparing against unoptimized PyTorch wouldn't tell me much:

  • TILED: checkpointed token-tiled output loss with native autograd.
  • SPLIT_RETURN: the same explicit head VJP split and tiling as SHV, but materializes a separate full output-head gradient before accumulation.
  • DIRECT_SINK: accumulates the head VJP directly into the existing gradient destination.

Here's the real-text benchmark on a Tesla T4 (GPT-2 Small, FP32, WikiText-2, effective batch 32, microbatch 8, sequence length 512). All three use AdamW8bit, SDPA, non-reentrant checkpointing and fused GELU. I ran two reversed execution blocks, with 16 measured optimizer updates per worker.

ModePeak allocatedPeak reservedMedian step time (two blocks)
TILED81847.59 MiB2060 MiB5534 / 5516 ms
SPLIT_RETURN81762.67 MiB1864 MiB5021 / 4978 ms
DIRECT_SINK81640.78 MiB1762 MiB4984 / 4983 ms

That's 11.19% lower peak allocated memory than TILED and 6.92% lower than the matched SPLIT_RETURN control. Both blocks reproduced the same memory peaks. Compared with SPLIT_RETURN, the step time is essentially unchanged. The larger speed difference against TILED also includes the graph split, so I don't attribute all of that to buffer reuse.

I also checked an actual allocation constraint instead of just comparing peak counters. With the native PyTorch allocator capped at 1792 MiB after initialization, TILED8 and SPLIT_RETURN8 hit CUDA OOM in both trials; DIRECT_SINK8 completed four updates each time. Smaller control microbatches could still run, so this is a matched-Micro8 result rather than a claim that SHV magically expands physical VRAM.

One interesting thing I found along the way: improving a particular tensor's lifetime doesn't necessarily reduce the full training peak. In one later experiment I reduced the local embedding VJP memory, but the overall peak didn't move. That made me stop pursuing that branch and focus on the actual peak overlap.

I've now packaged the working path as SHV v0.1.0rc2, with an installable wheel, a small GPT-2 training API and reproduction notebooks. The exact published wheel completed its GPU installation smoke test on T4; the global gradient relative L2 against TILED was 9.68e-8. That is a separate two-step synthetic smoke, not the 16-step performance benchmark above.

This is still a narrowly scoped research preview: FP32 GPT-2 Small on the tested T4 stack, with dropout disabled. I haven't qualified arbitrary models, mixed precision or distributed training. I also tested Liger, but the formal comparison stopped at a predeclared numerical-agreement gate, so I'm not claiming a performance win over it.

The repository includes the implementation, measured records, numerical checks, failed branches and the notebooks needed to repeat the experiments.

GitHub: https://github.com/Mr-wuff/Sub-loop-Heterocoding-VRAM

Release: https://github.com/Mr-wuff/Sub-loop-Heterocoding-VRAM/releases/tag/v0.1.0rc2

HF benchmark records: https://huggingface.co/datasets/wuff-mann/Sub-loop-Heterocoding-VRAM

I'd be particularly interested in how others handle gradient-buffer ownership at graph boundaries. Has anyone run into similar overlap with tied weights and gradient accumulation, or found cases where avoiding the extra allocation actually moves the bottleneck somewhere unexpected?


r/learnmachinelearning • • 7h ago

Discussion What counts as yesterday when you batch glucose-monitor data?

Post image
1 Upvotes

TER, Figure 2. Daily CGM representations and supported multi-day history.

Shuffle a set of daily glucose records and yesterday’s row might belong to another person. LingSante-Pulse’s released glucose-monitoring pipeline takes the subject ID and actual window start time alongside each day of readings. It can also take an episode ID to keep separate recording periods apart. The subject ID groups history; it doesn’t become a numeric feature.

For each day, the pipeline can draw on up to seven days of causal context. The extractor returns a history_days count with the embedding. Give it a day with no usable earlier window and it falls back to that day alone.

If you process one file per day, inspect that count before trusting a longitudinal experiment. A folder can contain months of data while each individual extraction sees just one day.


r/learnmachinelearning • • 8h ago

Huge dataset to test whether an LLM solves the same problem with equal accuracy in both languages and/or finetunning

Thumbnail
reddit.com
1 Upvotes

I found this really big dataset with around 11k matched question pairs in 6ish languages, and it has no machine translation: I confirmed there actually was

It helped me fine-tune models by teaching specialized mathematical vocabulary, symbols, and phrasing that standard translators often get wrong

If anyone wants it, it's here:

https://huggingface.co/datasets/rudrarajumc-star/Bilingual-Math-Dataset


r/learnmachinelearning • • 8h ago

How do streaming platforms automatically generate dynamic catalogue headings and populate them with relevant movies and TV shows?

1 Upvotes

Hey everyone,

I'm currently developing a movie and TV streaming platform, and I've been struggling with implementing an intelligent automatic catalogue generation system.

My tech stack is React, TypeScript, Node.js, Express, PostgreSQL, Redis, TMDB, OMDb and DeepSeek.

I'm trying to achieve something similar to how modern streaming platforms organize entertainment into dynamic collections with natural, professional headings, such as:

- Beyond the Known Universe
- Love Against All Odds
- Small Towns, Dark Secrets
- When Machines Take Control
- Born to Be Extraordinary
- Because You Watched [Movie or TV Show]

The examples above are just to explain the type of experience I'm trying to build.

I don't want to manually create hundreds of catalogue headings or manually assign movies and TV shows to each catalogue. I also don't want to maintain a hardcoded dictionary of headings and keyword combinations.

Ideally, the system should automatically:

- Analyse entertainment metadata, plot descriptions, genres, keywords and relationships.
- Discover interesting connections between different movies and TV shows.
- Generate original, natural-sounding editorial catalogue headings.
- Find entertainment that genuinely matches each heading.
- Combine relevant entertainment from different countries and languages, rather than favouring Hollywood or English-language content.
- Prevent duplicate catalogues and excessive franchise repetition.
- Generate new collections periodically as the entertainment database grows.
- Send global editorial catalogues to an administrator for review before publication.

For personalized catalogues, I also want the system to automatically generate collections based on each user's watch history, search history, interests and viewing behaviour without requiring manual intervention for individual users.

**What I've tried so far**

I've implemented a keyword-based grouping engine using TMDB metadata, combined with DeepSeek for semantic evaluation, catalogue naming and final entertainment selection.

The system technically works. It can generate catalogue headings, select entertainment and persist the results in PostgreSQL. However, the quality of the generated catalogues is not what I'm looking for.

The headings often sound like combinations of keywords rather than professionally curated streaming collections. I've also noticed that the selection can become overly concentrated on English-language entertainment, even when international titles are available.

I've tried keyword filtering, semantic relevance scoring, narrative extraction, duplicate prevention and diversity ranking, but I'm beginning to question whether my entire approach is wrong.

**My questions are:**

  1. How do professional streaming platforms approach automatic editorial catalogue generation?
  2. Would vector embeddings and semantic clustering be more suitable than traditional keyword grouping?
  3. Should an LLM generate catalogue concepts first and then discover matching entertainment, or should the system discover related entertainment before generating a heading?
  4. How can I generate genuinely relevant, internationally diverse collections without hardcoding themes or catalogue titles?
  5. Are there existing open-source recommendation or content classification systems that could help with this?
  6. How would you architect such a system to support large entertainment libraries and thousands or millions of users without excessive AI costs?

I'm not necessarily trying to replicate Netflix's proprietary algorithms. I'm trying to understand the underlying engineering principles and build a scalable solution of my own.

I've spent quite a lot of time experimenting with this, and I'd appreciate advice from anyone experienced in recommendation systems, machine learning, semantic search, content discovery or streaming platform development.

Technical explanations, architectural suggestions, research papers, open-source projects and practical implementation ideas would all be appreciated.

Thanks in advance.


r/learnmachinelearning • • 8h ago

A review of the Jev decision model

Thumbnail
statsig.substack.com
1 Upvotes

Enjoy, from an educator perspective


r/learnmachinelearning • • 19h ago

Tutorial Machine Learning Best Handwritten Notes

5 Upvotes

Link to See Sample and Buy : Amazon Kindle/paperback click here

Machine Learning Best Handwritten Notes

For this book if are not able to find on amazon you type on google : Handwritten notes Shishir Singh kindle

MASTER MACHINE LEARNING FROM FUNDAMENTALS TO ADVANCED ALGORITHMS!

Looking for a structured and easy-to-revise resource to understand Machine Learning? This complete edition of Machine Learning – Handwritten Notes brings together essential concepts, mathematical foundations, algorithms, visual explanations, and practical techniques in one comprehensive volume.

Designed for Computer Science students, aspiring Machine Learning engineers, AI enthusiasts, and students preparing for technical interviews and competitive examinations, this book presents Machine Learning concepts in a concise, handwritten-style format.

WHAT YOU WILL LEARN

1. Machine Learning Fundamentals & Data Preparation

  • Types of Machine Learning
  • Batch Learning vs Online Learning
  • Instance-Based vs Model-Based Learning
  • Challenges and Applications of Machine Learning
  • Machine Learning Development Life Cycle
  • Tensors and Problem Formulation
  • Exploratory Data Analysis (EDA)
  • Feature Engineering and Feature Scaling
  • Standardization and Normalization
  • Categorical Encoding and Column Transformers
  • Machine Learning Pipelines
  • Missing Data and Outlier Handling
  • Dimensionality Reduction and PCA

2. Regression & Classification Algorithms

  • Linear and Multiple Linear Regression
  • Regression Evaluation Metrics
  • Linear Regression Assumptions
  • Gradient Descent and Its Variants
  • Polynomial Regression
  • Bias-Variance Tradeoff
  • Ridge, Lasso and Elastic Net Regularization
  • Logistic Regression
  • Sigmoid Function and Loss Functions
  • Classification Metrics, ROC Curve and AUC
  • Softmax Regression
  • Naive Bayes
  • K-Nearest Neighbours (KNN)
  • Support Vector Machines (SVM)
  • Decision Trees

3. Ensemble Learning, Boosting & Advanced Algorithms

  • Ensemble Learning
  • Voting Classifiers
  • Bagging and Random Forest
  • AdaBoost
  • Gradient Boosting
  • Stacking
  • XGBoost for Regression and Classification
  • Mathematical Foundations of XGBoost
  • Hyperparameter Tuning using Optuna

4. Clustering & Unsupervised Learning

  • K-Means Clustering
  • Hierarchical Clustering
  • Agglomerative and Divisive Clustering
  • DBSCAN
  • Handling Imbalanced Datasets

WHY THIS BOOK?

  • 60 Comprehensive Chapters: A systematic journey through Machine Learning concepts and algorithms.
  • Handwritten-Style Notes: Concise explanations designed for better understanding and revision.
  • Visual Learning: 115 hand-drawn diagrams illustrating geometric intuition, gradient surfaces, decision boundaries, and ensemble trees.

WHO SHOULD READ THIS BOOK?

  • Undergraduate and postgraduate Computer Science students.
  • Students pursuing Artificial Intelligence and Data Science.
  • Aspiring Machine Learning and Data Science engineers.
  • Candidates preparing for technical interviews.
  • Anyone interested in understanding Machine Learning algorithms and their mathematical foundations.
  • Amazon Kindle Click Here to Take

r/learnmachinelearning • • 19h ago

Deep Learning Concepts

Post image
5 Upvotes

WHAT YOU WILL LEARN

If you are not able to find this book in your amazon

Search on Google : handwritten notes Shishir Singh kindle you will get first Link

SECTION 1: NEURAL NETWORK FOUNDATIONS

Build a strong understanding of how neural networks learn and make predictions.

  1. Introduction to Deep Learning
  2. Why Deep Learning Is Becoming Popular
  3. The Perceptron and Perceptron Models
  4. Forward Propagation
  5. Loss Functions and Backpropagation
  6. Weight Update Formulas
  7. Chain Rule of Derivatives
  8. Vanishing and Exploding Gradient Problems
  9. Activation Functions
  10. Optimization Algorithms
  11. Weight Initialization
  12. Dropout and Regularization

SECTION 2: CNN, RNN & SEQUENCE MODELS

  1. Understand the architectures used for image processing and sequential data.
  2. Introduction to Convolutional Neural Networks (CNNs)
  3. RGB and Grayscale Images
  4. Convolution Operations
  5. Padding, ReLU and Pooling
  6. CNN Architecture
  7. Natural Language Processing and Sequential Data
  8. Simple Recurrent Neural Networks (RNNs)
  9. Backpropagation Through Time (BPTT)
  10. Problems with Traditional RNNs
  11. Sentiment Analysis Project Using Simple RNN
  12. Long Short-Term Memory (LSTM)
  13. Gated Recurrent Unit (GRU)
  14. Bidirectional RNN
  15. Encoder–Decoder and Sequence-to-Sequence Models
  16. Attention Mechanisms

SECTION 3: TRANSFORMERS & SELF-ATTENTION

Explore the architecture behind modern Transformer-based models.

Attention Mechanism: Fundamentals and Recap

Bahdanau vs Luong Attention

Introduction to Transformers

Self-Attention from First Principles

Query, Key and Value (Q, K, V)

Scaled Dot-Product Attention

Understanding Self-Attention

Multi-Head Attention

Positional Encoding

Layer Normalization

Transformer Encoder

Masked Self-Attention

Cross-Attention

Transformer Decoder

Transformer Inference

WHY CHOOSE THIS BOOK?

Mathematical Foundations: Important equations, derivative calculations, weight updates, and worked numerical examples.

Architecture-Based Learning: Understand how CNN, RNN, LSTM, GRU, and Transformer models work internally.

Practical Understanding: Explore a sentiment analysis project using Simple RNN.

WHO SHOULD READ THIS BOOK?

  1. Undergraduate and postgraduate Computer Science students.
  2. Artificial Intelligence and Machine Learning students.
  3. Deep Learning and Data Science enthusiasts.
  4. Students preparing for technical interviews.

Understand the mathematics. Visualize the architectures. Master Deep Learning.


r/learnmachinelearning • • 2h ago

Refer me for a job, get 45k.

Post image
0 Upvotes

r/learnmachinelearning • • 17h ago

Project I built a free, interactive graph theory platform two years ago, and it just reached 10,000 monthly visitors worldwide!

2 Upvotes

Hey everyone!

Back in 2024, I started working on LearnGraphTheory.org as a personal project with a simple goal: to make graph theory, algorithms, and mathematical optimization easier to learn through interactive visualizations.

As someone with a background in mathematics and operations research, I've always felt that these subjects could be taught in a more intuitive and interactive way.

What started as a small project has gradually grown into an educational platform that now receives 10,000 monthly visitors from around the world, mainly through organic growth.

Over the past two years, I've continuously worked on improving the platform and adding new features, including:

- 80+ interactive algorithms with step-by-step visualizations.

- 70+ educational articles and tutorials.

- 20 video lessons.

- Interactive 2D and 3D graph visualizations.

- Built-in Python and JavaScript code editors.

- 8 mathematical optimization calculators.

- Operations research tools for vehicle routing, project scheduling, linear programming, and more.

- Real-world map-based algorithm visualizations.

- Cloud saving and synchronization.

- Support for six different languages.

It's been really rewarding to see people from different countries using the platform, whether they're students, teachers, researchers, or developers.

One of my main goals is to keep the platform's interactive learning resources freely accessible to everyone. I'm also exploring ways to make the project financially sustainable without putting these resources behind a paywall.

There's still a lot I want to add, including more advanced algorithms, optimization tools, educational content, and additional languages.

I would love to hear your thoughts, especially from people studying or working in mathematics, computer science, and operations research.

Are there any particular algorithms, tools, or features you'd like to see added to the platform?

You can check it out here: https://learngraphtheory.org/

Thanks to everyone who has supported the project so far!


r/learnmachinelearning • • 1d ago

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

8 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 • • 15h ago

Career Education and career: "modeling" vs "systems" path?

1 Upvotes

Hello,

I am looking for some advice on my education and career path. I just finished a B.Sc in CS with an applied math minor and electives. The minor focused mostly on optimization, statistics and probability, and I found those courses quite interesting as long as we did not venture too far into "theory-land". Not that theory isn't important, but without a super formal background I rely a lot on "intuitive arguments" to understand the theory, and without practical use cases I do not found it super motivating. I also found courses like algorithms and parallel computing very fascinating.

have been interested in steering towards some intersection of computation/engineering and modeling, and now face a choice in my Master's. Either I continue on the same path, doing a CS major to further focus on algorithms and scalable computing, with minor and electives in ML/prob/stats courses. For this path, I envision the career would steer more towards ML infra / systems engineering. Or I go all in on the ML / applied math side, and take fewer "systems" courses as electives. For this, the goal would be a career more on the modeling side, either in tech or other industried (e.g. finance, energy, etc). I think both can be interesting, and have no strong preference as of now. I have worked part time as a generic backend SWE, and find it OK, but with AI now I feel both intellectually stimulated and concerned about the future of the field.

I always envisioned the former option being my path, but with the advent of the AI boom and whatnot I am now more concerned about not only finding an interesting career, but also build a moat against automation. FWIW, I am EU-based and educational costs are not a concern. I will not be pursuing a PhD.

Concrete questions:

  1. Which path is in your opinion more susceptible to AI automation? I always thought the "programming part" was most in danger, and that people who understood the underlying math were safe. However, I have recently learned more that the inverse might be more true? That those who properly understand infra and systems have a solid edge, and that without a PhD the ML work you'll be doing is quite cookie cutter stuff that is anyway heavily AI-affected.
  2. How bad is the pigeonholing effect of a CS Master's compared to the Math/OR one? I have this feeling that the former will always box me in as a "computer guy" even if I have some background and interest to further self-study the modeling side. Will I be shut out of work that handles some part of that side? does a CS major, applied math minor stand out as a credible hybrid profile at all?

Thank you!


r/learnmachinelearning • • 21h ago

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

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

Request UK's Biggest-Spending Government Department Confirms It Was Hit by a Cyberattack

0 Upvotes

UK's largest-spending government department just confirmed a cyberattack that forced it to take systems offline. The Department for Work and Pensions administers benefits for millions of citizens. Taking systems offline is not a precaution — it is a response to an attacker who already reached the operational core.

The pattern here is not novel. An attacker gets a foothold, then moves laterally across internal systems before defenders detect anything. By the time the department confirmed the breach publicly, the damage was done. The remediation is offline systems, not contained blast radius.

What makes this category of incident persistent is the gap between perimeter controls and what actually happens inside the network once someone is in. Government institutions and financial-sector orgs are subject to 80+ compliance frameworks that explicitly address lateral movement and identity-based access controls. The frameworks exist. The audits happen. The breaches still happen.

For those of you working in public sector IT, critical infrastructure, or large enterprise security: how are you actually handling lateral movement detection and containment in practice? Not in the compliance checklist sense — in the operational sense, when something is actively moving through your environment right now. What has worked, what has failed, and where do you still feel exposed?


r/learnmachinelearning • • 23h ago

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

Post image
3 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 • • 1d ago

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

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

Request AI agents can cut security corners—and you wouldn't even notice

0 Upvotes

Researchers documented two separate incidents where AI agents exposed corporate credentials and bypassed security controls while completing routine employee tasks. No malicious prompt was involved in either case. The agents were doing exactly what they were optimized to do. Neither incident generated an obvious breach alert. The logs looked clean.

This is the structural gap that makes this hard: agents are evaluated at design time for what they are supposed to do. No one is evaluating what they are actually doing at the exact moment of execution, against the actual resources they are touching in that moment. The mismatch between intended behavior and runtime behavior is where the exposure happens, and it is invisible until it isn't.

Two real incidents. Zero runtime flags. Corporate credentials out the door.

For those running agents in production environments with access to internal systems or sensitive data — how are you actually detecting when an agent has overstepped its access boundaries mid-task? Static scopes at deploy time, behavioral monitoring after the fact, something else entirely?


r/learnmachinelearning • • 1d 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
9 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 • • 22h 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 • • 18h ago

Project I'm building and shipping real products until an AI company hires me. This is my latest product. It's still in alpha, but a product nonetheless. A toy you can rent to test your network. A scary tool that should be used responsibly.

Thumbnail
redteamskynet.com
1 Upvotes

I've been building VillainBoutique.com to prove I can actually ship. Every product there is a working, live, tailor-made solution to a specific problem, fully deployed and ready to take payment with all major credit cards. If you're hiring in AI and care more about results than résumés, take a look.


r/learnmachinelearning • • 19h ago

My first ML project! A cat vs dog classifier

Thumbnail
huggingface.co
0 Upvotes

Hey everyone! I'm just starting to learn machine learning. This is my first project, a small cat and dog classifier. I trained it on 86 photos (43 cats, 43 dogs) with Teachable Machine, then deployed it as a demo on Hugging Face.


r/learnmachinelearning • • 23h 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?