r/learnpython • • 14d 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?

0 Upvotes

18 comments sorted by

2

u/TheRNGuy 14d ago

Don't overthink, learn both at same time. 

1

u/FontanJanneice18 13d ago

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

1

u/[deleted] 14d ago

[removed] — view removed comment

1

u/Meta-failure 14d 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 14d 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

1

u/Meta-failure 13d 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 13d 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/TheRNGuy 14d 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/[deleted] 14d ago

[removed] — view removed comment

1

u/Meta-failure 13d 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/ConsiderationNo9044 14d ago

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

1

u/SirMental8005 14d 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/mgazar_ 14d 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/expressly_ephemeral 14d 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.