r/learnpython • u/Ok-Acanthisitta-5940 • 2d ago
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?
2
u/blandarflek 2d ago
How quickly can you learn things? Why not try something simple and see what you think?
0
u/SprinklesFresh5693 2d ago
Just start working on machine learning, youll eventually realise where is your knowledge lacking.
0
u/Plenty-Midnight2075 2d ago
High school math is enough to start actually building things with PyTorch.
You don't need to finish undergraduate linear algebra, calculus, probability, etc. before touching ML. You'll probably learn faster if you do both in parallel.
Start training simple models, and whenever you hit something like gradients, matrix multiplication, probability distributions, loss functions, or optimization that you don't understand, learn that piece of math properly.
Eventually, if you want to understand papers or why models behave the way they do, you'll want linear algebra, basic calculus, probability/statistics, and optimization. But don't make "learn all the math first" a prerequisite to writing your first model.
0
u/DonkeyTron42 2d ago
For basic ML it’s probably ok but when you get to LLMs the math complexity increases greatly.
1
u/2hands10fingers Experienced Pythonista 2d ago
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 2d ago
Machine learning is one of the fields where advanced math is useful and necessary. Graphics and vision is another.
1
u/FoolsSeldom 2d ago
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 2d ago
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
0
u/West-Mycologist-6490 2d ago
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
11
u/EntrepreneurHuge5008 2d ago
You can read the book, but I think you'll quickly realize high school maths is not enough.