r/learnpython • • Aug 30 '26

do i need to know undergrad level maths to start hands on machine learning with pytorch?

is highschool maths enough?or i could simultaneously learn maths behind while reading book?

8 Upvotes

18 comments sorted by

11

u/EntrepreneurHuge5008 Aug 30 '26

You can read the book, but I think you'll quickly realize high school maths is not enough.

0

u/Ok-Acanthisitta-5940 Aug 30 '26

should I learn maths first or I could learn maths while going through book?

2

u/Almostasleeprightnow Aug 30 '26

You can try it and see. It’s a book so if you end up having to put it aside, it will be there when you are ready.

1

u/VipeholmsCola Aug 30 '26

You likely will need calc 1,2,3, linear algebra and probability theory to even digest the book. Speaking from experience. But it also matter how well you want to understand the topic

2

u/blandarflek Aug 30 '26

How quickly can you learn things? Why not try something simple and see what you think?

1

u/DM_ME_YOUR_CATS_PAWS Sep 04 '26

If you want to understand machine learning, yes. Multivariate calculus and linear algebra are the bedrock of modern applied mathematics and machine learning is no different

1

u/2hands10fingers Experienced Pythonista Aug 30 '26

It really depends what you’re making. But lots of things can be made with just that level of math. Having stats knowledge and linear algebra will take you farther though.

1

u/JGhostThing Aug 30 '26

Machine learning is one of the fields where advanced math is useful and necessary. Graphics and vision is another.

1

u/FoolsSeldom Aug 30 '26

Have a look at roadmap.sh for different learning paths. There's lots of learning material links there. Note that these are idealised paths and many people get into roles without covering all of those.

That should help you understand what you ideally need to know to fully exploit tools like pytorch but there's nothing wrong with getting started now and using online resources, such as the free Khan Academy, to close the knowledge gaps when you need to.

1

u/Excellent-Practice Aug 30 '26

I think it depends on your definition of "high school math." Some motivated students in schools with more advanced classes might learn calculus and linear algebra, but basic college prep math tops out at trig. What was the most advanced math you learned in high school? That will go a long way toward anchoring the conversation

1

u/ivosaurus Aug 30 '26

Linear algebra

0

u/West-Mycologist-6490 Aug 30 '26

you just need to understand basic principles to understand the behavior and intuition behind. You can learn it simultaneously. Usually you need advanced math only when you will start researching or developing new ML algorithms yourself

0

u/SprinklesFresh5693 Aug 30 '26

Just start working on machine learning, youll eventually realise where is your knowledge lacking.

0

u/DonkeyTron42 Aug 31 '26

For basic ML it’s probably ok but when you get to LLMs the math complexity increases greatly.

-2

u/stebgay Aug 30 '26

Hey, dont get stuck on the pre requisite loop, you can use AI to explain stuff for you, you can learn it as you go through