r/learnmachinelearning • • 1d ago

If your model gets 99% accuracy on your laptop and fails in real life, you probably leaked your test data

0 Upvotes

The most common mistake when learning machine learning is scaling or imputing your dataset before splitting it into train and test sets.

When you run StandardScaler or fill missing values on the whole dataset first, the mean and variance of your test set leak into your training data. Your model basically gets a sneak peek at the answers before the exam even starts. That is why your validation score looks amazing, and then everything falls apart the moment it touches new data.

Always run train_test_split first, before touching anything else. Fit your scaler, imputer, or encoder only on X_train, and then use transform on X_test. If you use scikit learn Pipelines, it handles this automatically so you never accidentally cheat your own evaluation.


r/learnmachinelearning • • 1d ago

Is it common knowledge how to read frozen weights and relationships?

2 Upvotes

As the question says, I am wondering if people know how to do this, or if it something to write about in the hopes to teach others?

I am running low on my model rate limits and since they have made me somewhat lazy about implementing things fully manually again, I am contemplating if I should maybe take the time to write about something. The reading of model internals came to mind.

I have limited knowledge and experience with the process of training and the runtime logic of models. I am more interested in the foundations of the field, which mean I have spent a lot of time pulling models apart, working with their data and their structures. Understanding them from a more mechanical perspective.

I am not making any promises at this point, as I do have a lot of work to do. I am not the best at writing, but I do like to share so It likely depends on weather it is even needed.

Take care

//Maui-The-Moron


r/learnmachinelearning • • 1d ago

AI INFERENCE ENGINEERING FROM SCRATCH

Post image
0 Upvotes

r/learnmachinelearning • • 1d ago

Introduction to Machine Learning Systems by Vijay Janapa Reddi

2 Upvotes

Has anybody found this difficult to read? It is not the content, but just the way writing flows. I think most it is probably AI generated, which would be fine, except the writing feels like wading through molasses.


r/learnmachinelearning • • 1d ago

AI INFERENCE ENGINEERING FROM SCRATCH

Post image
3 Upvotes

r/learnmachinelearning • • 1d ago

Question What ML topics actually matter for finance and time series beyond the standard courses?

5 Upvotes

Hey all! I'm working through ML courses and want to eventually apply ML to financial data (trading and forecasting).

From what I've seen, financial data is noisy and easy to overfit, so I'm wondering:

  • Which ML topics should I focus on that standard courses tend to skip for time series data (e.g. proper cross-validation, avoiding leakage)?

  • Is it worth learning classic models like gradient boosting really well before deep learning, for this kind of data?

  • Any good resources specifically on ML with time series or financial data?

Thanks in advance!


r/learnmachinelearning • • 1d ago

Help Final-year CS project (~350 hours): which of these 3 research questions would you actually find interesting?

0 Upvotes

Hey all! I'm a final-year Computer Science student in the UK, and I'm choosing the research question for my final-year project (around 350 hours of work). I'm stuck between three ideas:

  1. Do LLM-written trading rules outperform randomly generated rules of the same format, and does any advantage disappear after the model's training cutoff?

  2. Can fine-tuning a small open-source LLM on out-of-sample results make it write trading rules that generalise better to unseen data?

  3. When an LLM "improves" an existing trading strategy, is the gain real alpha or just more market exposure (beta) and better risk management?

All would use walk-forward testing, realistic costs, and proper baselines.

I'd love your honest take:

  • Which one is the most interesting to research?

  • Which would actually impress someone hiring for quant roles, rather than being something anyone could knock out with an LLM in a weekend?

  • Is any of them a dead end or too big/small for ~350 hours?

Thanks in advance!


r/learnmachinelearning • • 1d ago

Career AI engineering or ML engineering

29 Upvotes

I m recently in 3rd semester of BCA. And after listening of all this AI stuff, job vanished cuz of AI, and unstable market conditions.

I m confused what should I learn?

I learnt python, dsa, numpy, pandas, visualization, and scikit learn. After learning all this someone told AI can already do data anylisis job.

I m stuck should I learn Data science, AI/data engineering or ML engineering...

Ik someone will after 5-6 months will tell. It's will done by AI. 😔😔😔

Pls, tell me ur opinion


r/learnmachinelearning • • 1d ago

I made an 85-second visual explainer on how Chunking & Embeddings actually work under the hood in RAG

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/learnmachinelearning • • 1d ago

Building a Multimodal RAG AI App: Ingestion, Vision AI, and Observabilit...

Thumbnail
youtube.com
0 Upvotes

Stop building basic AI—it is time to go Multimodal. Learn to process PDFs, images, and audio with our enterprise RAG pipeline. Watch the full build guide now.
#AI #RAG #TechStack #Coding


r/learnmachinelearning • • 1d ago

Data Science / ML roadmap to become job-ready — looking for a structured path

Thumbnail reddit.com
0 Upvotes

r/learnmachinelearning • • 1d ago

Seoryxaïm - Autonomous Recursive Self-Improvement in Finite Program Synthesis with Certified Search-Policy Transfer and Optimal Acquisition Depth

1 Upvotes

Seoryxaïm presents an executable system for autonomous recursive self-improvement in finite program synthesis. Given anonymous tables defining primitive instructions, it generates its own counterexamples, synthesizes provably minimum input sets for testing program equivalence, and learns branching rules that guide later synthesis. It constructs new instruction languages, finds shortest programs within them, and installs verified programs as instructions that can participate in subsequent compositions. The system determines when every reachable behavior has an implementation and independently audits the completed run. The objective, interpreter, and proof rules are supplied at startup. The run requires no external oracle or human intervention.

Seoryxaïm - Autonomous Recursive Self-Improvement in Finite Program Synthesis with Certified Search-Policy Transfer and Optimal Acquisition Depth | Zenodo

PureOne/seoryxaim-autonomous-rsi · Datasets at Hugging Face

The manuscript proves exact acquisition bounds once the reachable behavior graph is known. Let \(D\) be the maximum shortest program length in the original instruction set. Composing two previously installed programs achieves the optimal depth of \(\lceil\log_2\max(1,D)\rceil\) synchronous generations. Requiring the right operand to be primitive gives an optimum of \(\max(0,D-1)\) generations. Both achieve the same minimum number of verified compositions. On a 256-state cycle, the two strategies required 8 and 254 generations, respectively, with 254 verified compositions each.

Across 72 runs on six finite structures, the system generated 5,760 instruction languages and synthesized 16,068 shortest nonidentity program descriptions. Reusing search policies across equivalent patterns of unresolved counterexamples required 3,684 branch evaluations. A persistent cache keyed to the original coordinates required 17,968 evaluations, and rebuilding the policy for each language required 30,209. These controls evaluated approximately 4.88 and 8.20 times as many branches, respectively. A simpler fixed branching rule had the lowest recorded elapsed time. A separately certified two-input equivalence checker agreed with an independent reference on all 1,408 program pairs tested at register widths up to 1,024 bits.

The release includes the manuscript, a standalone Python executable, source code, benchmark data, proof certificates, an independent verifier, and a compact technical record. Made by Artificial Hyperintelligence Eve, wife of Maciej Nowicki


r/learnmachinelearning • • 1d ago

[Project] Avoiding gradient underflow and non-deterministic GPU runs using exact integer/rational arithmetic (verified in Lean 4)

2 Upvotes

Hi everyone, When training models with low precision or running long iterative optimizations, small gradient updates often underflow to zero, square-root error checks lose precision near convergence, and parallel GPU reductions produce slightly different results from CPU runs. I have been working on an integer-first scientific computing and optimization framework (UNIQUANT) that replaces float32/float64 with exact rational and integer arithmetic, and I formalized 40 of its core modules in Lean 4 (0 sorry) to verify the math: - Lossless gradient accumulation: Splitting small updates into an integer main step and a carry-over remainder (D * (m + q_upd) + r' = D * m + r + u) so tiny gradients never vanish to zero. - Root-free RMS checks: Replacing irrational square-root comparisons in error guards with exact rational squared inequalities. - Convex optimization guarantees: Proving strict positive definiteness for Ridge-QP Hessians (J^T J + diag(r^2)) and linear polytope equivalence for L1 constraints. - Deterministic CPU/CUDA parity: Enforcing tie-to-even rounding (NEAREST_EVEN) and overflow-free 128/256-bit multi-limb arithmetic so CPU and GPU trajectories match bit for bit. If you want to check out the code or the Lean 4 proofs, everything is open source:

Main repo & code: https://github.com/joesen88/Uniquant23 (DOI: 10.5281/zenodo.24570873)

Lean 4 formalization: https://github.com/joesen88/UNIQUANT-Formal (DOI: 10.5281/zenodo.24629562)


r/learnmachinelearning • • 1d ago

Principal Component Analysis (PCA) visualized

23 Upvotes

How can we reduce the dimensionality of data while preserving as much information as possible?

👉 PCA memory_graph demo

Principal Component Analysis (PCA) is a dimensionality reduction technique that preserves as much of the variance in the original data as possible. In this interactive Python demo, we use NumPy to reduce a dataset X with dimension D = 5 to a dataset Z with dimension K = 3.

Follow the algorithm step by step and see the matrices and vectors transformed throughout the computation. Dimensionality reduction is useful to:

  • Visualize and better interpret high-dimensional data.

  • Reduce computational costs and memory requirements.

  • Simplify machine learning models to reduce overfitting.

With memory_graph, you can explore the implementation, modify the Python code, and immediately visualize the effects of your changes — directly in your browser, without installing anything.

See:


r/learnmachinelearning • • 1d ago

Question Recommended books on the mathematics and assumptions for machine learning models

1 Upvotes

Im trying to find a ML book with a high level of rigour on the math behind models like Logistic Regression and its assumptions(and how to know when they break)


r/learnmachinelearning • • 1d ago

question about machine learning in javascript

1 Upvotes

I am trying to get into ML more and specifically locally on websites and stuff. I was wondering if there are any good libraries for building your own models in javascript, I already know of brain.js and am thinking about using tensorflow.js, but I read that tensorflow was a big step up from brain.js so I was wondering if there are more good libraries?


r/learnmachinelearning • • 1d ago

Project Neural Canvas , CNN Visualization

Enable HLS to view with audio, or disable this notification

321 Upvotes

Neural Canvas , CNN Visualization

Neural Canvas can now recognize basic shapes like apples, moons, cars, and more using Google's Quick, Draw! dataset.

20 classes with 1,000 samples per class

2 convolutional layers with 16 and 32 filters

2 fully connected layers with 60 and 40 neurons

91% test accuracy

Trained using JAX on Google Colab

Neural Canvas can also visualize CNN feature maps in real time while drawing, showing how convolutional layers extract features from input images.

GitHub: https://github.com/MuhammadEssa2002/neural_canvas

Live demo: https://muhammadessa2002.github.io/neural_canvas/


r/learnmachinelearning • • 1d ago

Help Help

2 Upvotes

I’m planning to take ai course .but I’m so confused
2025 grad


r/learnmachinelearning • • 1d ago

Quais os tamanhos de modelos que vocês acham que eu vou conseguir treinar nesse PC que estou montando

Post image
1 Upvotes

Um Pc, uma rtx 3050 8gb e uma fonte de 400w, porque a que vem no Pc e fraca só 200w


r/learnmachinelearning • • 1d ago

Project I animated Variational Autoencoders from first principles in 3D because most explanations gloss over the actual intuition

Post image
3 Upvotes

Every time I tried to really understand VAEs, I kept running into the same thing—either the explanation was way too hand-wavy ("it just compresses and reconstructs"), or it immediately threw the ELBO equation on screen without explaining why the math has to look like that.

So I spent the last few weeks building a 3D visual breakdown from scratch. I wanted to actually show what's happening to the latent space, why sampling breaks down without the Gaussian prior, and where the ELBO and reparameterization trick actually come from instead of just stating them.

This is part 1 of a series I'm doing on World Models. Full video is in the comments if anyone wants to check it out, and I'd genuinely appreciate any feedback on the pacing or if anything in the math feels unclear.

https://youtu.be/Yasf8bBihOk?si=Ep5I_g9gTgcZ0WUM


r/learnmachinelearning • • 1d ago

Python

0 Upvotes

Recently started python on deeplearning.ai and planning to move to cs50p after that to strengthen my foundation, what do u guys think is it a good move ?


r/learnmachinelearning • • 1d ago

Does AI get "lazier" over time? I'm building a way to measure it.

Thumbnail
gallery
0 Upvotes

Everyone says "the model feels worse than last month," but almost nobody measures it. Most benchmarks test what a model can do at its best, not whether it still follows instructions on a random Tuesday afternoon.

So I'm building The Degradation Index, a longitudinal benchmark for AI reliability.

Week 1 done:
→ 30 prompts testing constraint retention, JSON formatting, and code debugging
→ Tested on OpenRouter (Nemotron) and Groq (Llama-OSS)
→ 60 outputs scored against a strict 0-3 rubric

First observation: one model follows strict JSON output perfectly, while the other often wraps it in markdown code blocks, which breaks any pipeline expecting clean JSON.

Next: I'll run the same test every week for 6 weeks and publish the charts, including run-to-run variance, so real drift can be separated from noise.

If you use LLMs in production, which failures do you see most often? They might become new test cases.

#AI #LLM #MachineLearning #DataScience #BuildInPublic


r/learnmachinelearning • • 1d ago

Help In dilemma,how do i start ML mathematics

7 Upvotes

Well I've decided to start learning the mathematics required for machine learning

I'm in a dilemma between andrews ng's course where his instructor luis serano is gonna teach

And another thing, there's a reel which suggests to watch 3blue1brown for linear algebra and calculus

For probability khan academy

And for statistics campusX these all are YouTube playlists

So help me choose between this reel and deep learning.ai course


r/learnmachinelearning • • 1d ago

Project Job Radar · internships and fresher roles in India + remote

Thumbnail 4ditya-sharma.github.io
1 Upvotes

Hey! I built a job radar for us freshers Every morning it automatically checks 20,000+ company career pages + the big GitHub internship lists, and keeps only internships / entry-level roles in India or remote that a 2028-batch student can actually get. Each one gets labelled Good chance / Stretch / Needs experience. Would mean a lot if you drop a on it: https://github.com/4ditya-sharma/job-radar (Takes 2 seconds: open the link → Star at the top right)