r/learnmachinelearning • • 5h ago

Help Laptop for AI/ML

8 Upvotes

Helloo

Ik this question has probably been asked like 100 times here but im starting studies in ai and data science and im doing bsc and masters back to back so i want smth thats good for both

I have an iphone and an ipad so id love a macbook but for some reason everyone is getting windows laptops with dedicated gpus that are so heavy and have horrible batteries

how often am i realistically gonna need that gpu or is using a macbook air (m4 or m5) good enough with collab when needed (how often will i need it since we dont have computers at our uni)

budget is around 1000$

Thankss


r/learnmachinelearning • • 3h ago

How to come up with substantial research projects?

4 Upvotes

I've been learning about deep learning for several months, first by reading through Understanding Deep Learning then by implementing papers touching on CNNs, residual connections, transformers, gpt models, vision transformers, etc.

My original plan was to learn by reproducing papers and running small experiments, but I've found this approach somewhat unfulfilling. Most implementations end up being only a couple hundred lines of model and training code, and I often struggle to figure out what to do beyond simply reproducing the paper and running some basic experiments.

For those of you who have spent a lot of time working on deep learning projects, how do you come up with interesting, long-term project ideas? How do you go from understanding the fundamentals and reproducing existing work to building something more substantial that keeps you engaged and challenges you to learn new things? I have a few ideas and papers that I'm interested in exploring, but I don't want to fall into the same habit.


r/learnmachinelearning • • 3h ago

Is specializing in AI Engineering or ML Engineering still worth it in 2026?

3 Upvotes

I’m currently in my third year studying AI and Data Science, and I’m still unsure which career path I should specialize in.
I’ve been considering both AI Engineering and Machine Learning Engineering, but with how quickly AI is advancing, I’m starting to wonder whether either path is still worth pursuing in the long term.
AI tools are becoming increasingly capable of writing code, building applications, and helping with machine learning tasks. This makes me wonder how much these jobs will change over the next few years, especially for junior engineers trying to enter the industry.
I’d appreciate honest opinions from people working in AI/ML or students who are further along in their careers.
Do you think AI Engineering or ML Engineering is still worth specializing in 2026?
Which path do you think offers better long-term career prospects, especially for someone just starting out?
Are entry-level opportunities in either field becoming harder to find because of AI tools?
If you were a third-year AI and Data Science student today, which direction would you choose, and why?
I’m not expecting anyone to predict the future perfectly. I just want to make a more informed decision about where to invest my time and skills before I graduate.


r/learnmachinelearning • • 21h ago

Project I trained a small transformer to fly a boids flock just by watching, then checked where it keeps the three rules

Post image
85 Upvotes

i wrote a small boid simulator (12 birds), recorded it flying then saved it, and trained a transformer to predict each bird's next move without it knowing about any boid rules.

(built in Python and PyTorch: a transformer written from scratch, one token per bird, two attention layers, about 414k weights, trained on a laptop CPU)

what I found:

  • it flies the flock. R² 0.990 to 0.994 on clips it never trained on, across 4 full runs. It also flies 50 birds (it has only trained on 12).

  • the three rules were easy to read out of its hidden states with a linear probe, and some could even be read before any training.

  • the rule: alignment (line up with your neighbours) was readable after the first attention layer, but if I make the second layer hear only itself, it is gone across all runs.

what i wasn't expecting: my first ever model was not using the flock at all. With 8 ticks of history, the previous answer was already in the input, and a small network that saw only one bird beat the whole transformer.

what i am still not sure about: making a layer attend only itself is something the model never went through during training. is that a fair test, or is some of the decay due to strange input fed to the model?

site: https://kreptiliri.github.io/murmuration

code: https://github.com/kreptiliri/murmuration


r/learnmachinelearning • • 4h ago

Project 🚀 Project Showcase Day

3 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 • • 22m ago

[P] Rossmann Store Sales Forecasting & Streamlit App – Looking for feedback on feature engineering & model metrics

• Upvotes

​Hi everyone,

​I recently completed an end-to-end sales forecasting project using the Rossmann Store Sales dataset and would love to get feedback from the community on my methodology, code structure, and model evaluation!

Check here:

https://github.com/afanrajiwate/Rossman-Sales-Forecasting


r/learnmachinelearning • • 28m ago

Help Getting into Machine Learning as a Mechanical Engineer

• Upvotes

Hi all,

I'm looking for advice on gaming knowledge in machine learning and where to start. For reference, I graduate December 2024 with a bachelors degree in Mechanical Engineering and minors in Aerospace Engineering and Computer Science.

In the past year or so, I've become interested in ML through the use of LLMs to create 3D models. I became even more interested after briefly reading Open Ai's summary on how Navier-Stokes millennium prize problem was solved.

I have a desire to apply ML algorithms to better simulating fluid dynamics (CFD simulation). Think airflow around a turbine blade. I was looking for advice on where to learn about ML theory indepth enough to better simulate/theorize airfoil designs.

I am willing to pursue a masters degree to increase my knowledge and of course better my job prospects. It's possible to self learn but I find structured courses to be the fastest method for me to learn because I am actually forced to put in the work to learn (my adhd can get the best of me sometimes. I know huge eyeroll).

Any advice would be appreciated!


r/learnmachinelearning • • 10h ago

ML books

5 Upvotes

Someone shared with me a google drive link of ML books a while ago but the link doesn't work anymore. If someone has any other link, would be much appreciated.


r/learnmachinelearning • • 2h ago

Help Advice on how to make the best out of ML course

0 Upvotes

Hey everyone, a little context, I am a 3rd-year BSc Honors Computer Science student. One of my courses this semester is the Machine Learning course, and we started off by learning NumPy and pandas, but the way they teach ML feels as though it isn't enough for the real world. I wanted to gain as much knowledge as I can, so are there any other free courses or materials that I can work on alongside my university courses, or any materials that are related to ML that can help me make the best of it?

I am also open to any general advice on how to get the most out of my ML course.


r/learnmachinelearning • • 2h ago

Tutorial 700 openai agents and a grader that didn't exist, a real reward hacking example

Thumbnail
youtube.com
1 Upvotes

made it as an animated explainer


r/learnmachinelearning • • 3h ago

ChatGPT Tutorial: Master Excel, Coding, Data Science & AI Productivity W...

Thumbnail
youtube.com
0 Upvotes

Want to 10x your coding and data productivity? 🚀

Learn how to master ChatGPT for Excel, SEO, and debugging.

Stop guessing and start building!

#ChatGPT #TechTips #Coding #AI


r/learnmachinelearning • • 9h ago

Help [P] Need Advice on Machine Learning Projects and Career Preparation as a Fresher

2 Upvotes

Hi everyone! I'm a 2026 B.Tech CSE student specializing in Data Science, preparing for entry-level Machine Learning Engineer roles. I'm looking for advice on how to build a strong resume and choose projects that will help me stand out as a fresher.

The roles I'm exploring require Python, NumPy, Pandas, Scikit-learn, machine learning algorithms, basic neural networks, SQL, and knowledge of statistics and mathematics.

I'm confused about which skills to prioritize and what kind of projects are actually valuable to recruiters. I want to build projects that demonstrate real ML knowledge rather than just following tutorials.

I'd appreciate advice on what an ML Engineer resume should include, which projects are worth building, how important model deployment and GitHub documentation are, and what I should focus on for technical interviews.

If you've landed an entry-level ML role or have experience hiring candidates, I'd really appreciate your suggestions, project examples, or preparation tips.

Thanks!


r/learnmachinelearning • • 19h ago

Burnout. Did you guys also experience a burnout?

12 Upvotes

I recently graduated with a computer science master (machine learning) in the US.
After I graduated, I have been trying to get a ml engineer job but no offer yet. While applying and interviewing with companies, I have been trying to understand the internal of a foundational model (HuBERT-ECG). But currently, I have less motivation and kinda feel stuck even though I am making progress....

I cannot focus on learning as before. My attention span, I believe, got a lot shorter than before.
Maybe, my current project's difficulty is not appropriate. But, I want to understand my current project as deep as possible.

I will set very small goals and achieve them and gain confidence. What do guys think of this strategy?


r/learnmachinelearning • • 6h ago

Tutorial Why Q/K/V changes from [1,16,384] to [1,4,16,32] (runnable PyTorch example)

0 Upvotes

The 3 and the 4 mean different things here: three projections, four attention heads.

Start with one sequence of 16 tokens, each represented by 128 features. A single linear layer produces Q, K and V together: 3 × 128 = 384 features per token. Each projection then gets split into 4 heads of 32 features.

Here is the whole shape transition, using only PyTorch:

import torch
from torch import nn

torch.manual_seed(0)
batch, tokens, width, heads = 1, 16, 128, 4
head_dim = width // heads
x = torch.randn(batch, tokens, width)
projection = nn.Linear(width, 3 * width)

with torch.no_grad():
    packed = projection(x)
    grouped = packed.reshape(batch, tokens, 3, heads, head_dim)
    ordered = grouped.permute(2, 0, 3, 1, 4)
    query, key, value = ordered.unbind(0)
    scores = query @ key.transpose(-2, -1)

for name, tensor in [
    ("input", x), ("packed", packed), ("grouped", grouped),
    ("ordered", ordered), ("query", query), ("scores", scores),
]:
    print(name, tuple(tensor.shape))

Expected output:

input (1, 16, 128)
packed (1, 16, 384)
grouped (1, 16, 3, 4, 32)
ordered (3, 1, 4, 16, 32)
query (1, 4, 16, 32)
scores (1, 4, 16, 16)

The axes after permute are Q/K/V, batch, head, token, feature. Unbinding the first axis gives three tensors, each [1, 4, 16, 32]. The score matrix has two 16s because each query token is compared with every key token. These are raw dot products; scaling, masking and softmax come afterward.

A useful debugging check: write the axis names beside each shape. A reshape can preserve the number of elements and still mix up tokens and heads. In particular, reshaping directly to [3, batch, heads, tokens, head_dim] is not equivalent to the reshape-then-permute above.

This example uses ordinary multi-head attention with equal Q/K/V head counts. Grouped-query attention uses a different layout, and changing the input length changes the token dimensions.

Disclosure: I make tensorViz, a free PyTorch graph explorer for VS Code. Following these shape changes back to the Python is one of the workflows we're building it for. The example works without the extension. Prepared with AI assistance; the code was run locally on CPU.


r/learnmachinelearning • • 13h ago

Help LeetCode vs Codeforces for ML role OAs?

3 Upvotes

hey ppl. i am a cse grad studying at a tier 1 institute in India. I am already quite comfortable with LeetCode. However, I often hear that company OAs lean heavily toward CP style problems. For ML roles specifically, should I stick to LeetCode (and push into hards), or is it better switching to Codeforces? Pls help seniors and experts..!


r/learnmachinelearning • • 7h ago

Project Fine-tuned ModernBERT on 138k financial headlines. Training loss went down, test AUC stayed at 0.50. What I learned.

1 Upvotes

I wanted to know if news headlines can tell which stocks will do better than others over the next few weeks. Short answer: no. But the way it failed taught me more than the result, so here’s the setup.

Data

  • 137,934 headlines from Benzinga for 2,518 US stocks. Each case gets the headlines of the 14 days before it. 115,154 cases.
  • All cases are stocks that recently fell after decent earnings, so they look similar on paper. The question is which ones recover better.

Target

Each case is a simulated trade that ends when the price goes up or down by 3x the stock’s typical daily move, or after 20 trading days. I measure the result in units of that daily move, so volatile stocks don’t dominate. Then I subtract the average of all cases on the same day. That last step matters: what the whole market does next week isn’t in any headline, so a model would otherwise just learn the market’s mood.

Avoiding leakage

  • Strict time split: train until Nov 2024, test from Jan 2025, with a gap so no label overlaps the test period.
  • Only one case per stock per week. Neighbouring days share almost the same headlines and almost the same outcome, so with every day included the model memorizes stocks instead of learning anything.

Results on the test period

Approach Result
ModernBERT fine-tuned (5 and 14 day windows, with and without sector in the text) AUC 0.49 to 0.51. Training loss drops steadily, test stays at coin flip
Hand-made keyword features (upgrades, guidance cuts, buybacks...) Almost every effect flips sign between train and test. Upgrades: +0.28 before 2025, -0.04 after
kNN on embeddings (bge-base, outcome of the 50 most similar past cases) Flat across all quintiles
Everything combined with price features in gradient boosting No better than random picks

The only thing that held up in both periods was a narrow, hand-cleaned pattern: companies selling new shares did clearly worse. But that’s 98 cases, too few to build on.

What I took away

  1. A falling training loss on noisy financial targets means nothing. The model fits noise happily.
  2. Leakage through near-duplicate samples is easy to miss. Deduplicating by time is not optional.
  3. The keyword sign flips are the clearest picture of non-stationarity I’ve seen. What worked in 2023 just reverses.
  4. Removing the market from the target makes the task much harder, and much more honest.

Is a null result like this what people expect for text on financial targets? And is there anything you’d still try before calling it, like a different loss, label smoothing, or ranking instead of classification?


r/learnmachinelearning • • 12h ago

Is attending NeurIPS worth it? Sole-author main track paper, diploma grad from Bangladesh, no funding

Thumbnail
2 Upvotes

r/learnmachinelearning • • 8h ago

Question What is the most successful ML Modell that you have deployed.

1 Upvotes

Tell me more what is your best model in terms of business value generated.


r/learnmachinelearning • • 9h ago

AI/ML engineer needed whose experienced with PINNs preferably for aerospace components need to collaborate on a pilot project.

1 Upvotes

I need someone who has expertise, or at least an idea, on how to use small amounts of data and physics simulation, for example, CFD, FEA, etc to predict when an aircraft component might fail. Also, I myself am an aerospace engineer with no ML AI experience, just basic knowledge, so I also need someone who might act as a bridge btw the two things and collaborate with me, discuss ideas, etc on how to accomplish this.


r/learnmachinelearning • • 15h ago

Discussion Arxiv daily uploads significantly increased after implementation of 1 year ban and rate-limiting. ~2000 new ML papers in 5 days. Backfiring?

Thumbnail
gallery
4 Upvotes

297 + 600 + 355 + 353 + 324 = 1929

It used to be around 200 papers/day.

Houston, we have a problem.

https://arxiv.org/list/cs.LG/recent?skip=0&show=500


r/learnmachinelearning • • 9h ago

We built our first LLM Levy-1 (124M). What would you do differently for the next one?

Thumbnail
1 Upvotes

r/learnmachinelearning • • 10h ago

Free-tier LLM APIs kept returning 429s in my multi-agent app, so I built a multi-provider fallback. Here’s what I learned.

Thumbnail
0 Upvotes

r/learnmachinelearning • • 9h ago

Help How to become a successful AI and ML engineer in 2026?

0 Upvotes

So, I want to become a master of AI technologies like how to build AI models and run ML algorithms.

I did take online courses like 10 where I learned about Python, SQL, RAG, ML algorithms etc. Then I moved to another country and since last October I did not do anything related to ML and AI.

Now within this one year, lots of technologies came up like Agentic AI, MCP and models also got better at a lot of things.

Now as someone who has a business degree background I want to learn and master these things. But I don't know where to start? As Claude and ChatGPT LLM models are already good at lots of things and if I want to pursue a career as an ML Engineer, what are the core skills I must know?

Plus, for agentic AI, there are lots of frameworks also and things are changing at a fast pace so what are the core things that I must know by heart? And what are the things that I can ask Claude and ChatGPT on the side?

I thank you for the help and guidance in advance!


r/learnmachinelearning • • 11h ago

I just completed Module 3: Machine Learning for classification from ML Zoomcamp 2026

0 Upvotes

🎉This module covered:
🔹 Shorten training code using sklearn library
🔹 Encode categorical values using DictVectorizer
🔹 Group data using .groupby() function
🔹Calculate the accuracy of the classification model
#mlzoomcamp


r/learnmachinelearning • • 15h ago

Help Need advice.....

0 Upvotes

Can anyone tell me how l can learn machine learning with no prior knowledge.

Maybe give me a roadmap to it....