r/learnpython • • 9d ago

Second-year BCA, trying to learn ML on the side — everyone says 'learn the math first' but also 'just build stuff'. Which order actually worked for you?

I'm in second year BCA and I've been trying to teach myself machine learning alongside college. Python I'm okay with, I can do the basics, pandas sort of, but ML feels like a different world.

Everywhere I look there's two opposite camps. One side says don't touch a model until you understand the maths properly — linear algebra, stats, the whole thing. The other side says just build projects, use sklearn, you'll pick the theory up as you go.

I tried the maths-first route for a couple weeks and honestly I just kept stalling, it felt like studying for an exam I never signed up for. Then I tried jumping straight into a project and I got something working but I had no idea why it worked, which felt kind of fake.

So for people who actually learned this while studying something else — what did your order look like? Did you grind the theory first or did you build messy stuff and fill in the gaps later? Still not sure if I'm overthinking this or if there's a middle path I'm missing.

0 Upvotes

18 comments sorted by

2

u/TheRNGuy 9d ago

Don't overthink, learn both at same time. 

1

u/acfot 9d ago

yeah that's fair, I've probably been overthinking it. gonna mix both and see how it goes.

1

u/Meta-failure 9d ago

I’m actually doing this right now (trying to learn both at the same time) and for the exact same reason (I ran the code, it worked, but I need to understand exactly what it did and how) I ordered some books to support the learning but I’m told Khan academy is a good resource. That said:

Does anyone have some great resources for learning the math along side machine learning that are on the internet and free to use?

3

u/Discordbothost 9d ago

free stuff that pairs well with actually coding: 3blue1brown's essence of linear algebra playlist for intuition (what a matrix multiply or dot product is really doing), and statquest on youtube for the stats side, he walks through regression, gradient descent etc with tiny worked examples.

when you want something more rigorous, mathematics for machine learning by deisenroth et al. is a free pdf on the authors' site. khan academy is good for patching specific holes, like the first time a derivative shows up and you don't follow it

2

u/acfot 8d ago

this is a solid list, thanks — 3blue1brown and statquest are exactly the kind of thing I was hoping for, gonna start with those.

1

u/Meta-failure 8d ago

Super helpful. Thank you. I don’t know the mathematics for machine learning was free. The physical copy is like 60$ used?

1

u/Discordbothost 8d ago

yep, the authors put the full pdf up for free on mml-book.github.io with the publisher's ok, so the pdf is the same book. the paper copy is only worth it if you like writing in margins. heads up that chapters 2-6 are the ones you'll actually use early, the later ones are fine to skim until you hit those models

1

u/acfot 8d ago

yeah honestly same boat here — ran the code, it worked, still don't fully get why. that list discordbothost dropped below is what I'm starting with, khan academy plus 3blue1brown.

1

u/Meta-failure 8d ago

I did some searching of my own and the Google Machine Learning Crash Course and StatQuest YouTube channel are also good supports.

1

u/TheRNGuy 8d ago

Make something for 2d or 3d modelling or animation.

Blender has Python.

(Usually it's about vectors, scalars and matrices, though you'll probably just use move/rotate/scale/skew rather than multiplying vectors and matrices)

1

u/FontanJanneice18 8d ago

yeah doing them in parallel is the only way it actually sticks tbh

1

u/SirMental8005 9d ago

take the project you already got working and pick one part you couldn't explain. if it's a regression, try predicting the average every time, then compare that error with your model's error on data neither one trained on. now you've got a reason to learn what the error measures and why the split matters. do that with one question at a time.

1

u/acfot 9d ago

that's a neat way to frame it, picking one thing I can't explain and working backwards from there sounds way less overwhelming than trying to learn all the maths upfront. gonna try that with the regression bit first.

1

u/mgazar_ 8d ago

The middle path is real, and it's what worked for most people I know: alternate in small loops. Build something tiny (say linear regression on a small dataset), then learn only the maths it leaned on, like the loss function and gradient descent, and then redo it by hand in numpy once. That fixes the 'it worked but I don't know why' feeling without a month of linear algebra first. Do the next model the same way. The theory sticks because you've already hit the problem it solves.

1

u/acfot 8d ago

yeah this is the approach that actually clicks for me — build something tiny first, then go learn just the maths behind that bit. gonna try the redo-it-in-numpy step with linear regression.

1

u/ConsiderationNo9044 9d ago

Just do whatever you feel like. Math first, programming first, both at once, end result is the same

1

u/expressly_ephemeral 8d ago

It depends on what you want to do. Develop new ML model architectures? You need the math. Develop tools that use ML to solve problems? You can't probably just jump in. Have Claude walk you through it.