r/learnpython • • 14d ago

Ask Anything Monday - Weekly Thread

Welcome to another /r/learnPython weekly "Ask Anything* Monday" thread

Here you can ask all the questions that you wanted to ask but didn't feel like making a new thread.

* It's primarily intended for simple questions but as long as it's about python it's allowed.

If you have any suggestions or questions about this thread use the message the moderators button in the sidebar.

Rules:

  • Don't downvote stuff - instead explain what's wrong with the comment, if it's against the rules "report" it and it will be dealt with.
  • Don't post stuff that doesn't have absolutely anything to do with python.
  • Don't make fun of someone for not knowing something, insult anyone etc - this will result in an immediate ban.

That's it.

7 Upvotes

7 comments sorted by

View all comments

2

u/ConnectAffect2346 14d ago edited 14d ago

Well i hope someone can explain to me how can a machine learning model be created in python, like are mathematics and theory of graphs used in order to orgsnize everything inside its neural network like i saw on couple of posts regarding ML models or are those graphic visualizations of neural network actually just visual representations of how the algorithm works?? I am very new to ML and neural networks and for now i didn't yet have the opportunity to learn about the algorithms behind those terms

2

u/TeaDiscombobulated98 14d ago

You generally end up using one of the popular ML packages like tensorflow or pytorch to define your architecture. The graphics you see are generally for pedagogical reasons. You can use maths and graphs to define your architecture, but someone has already done the effort of all that and packaged it nicely for you.
You use composition to declaratively define your architecture. What this basically means is that you will instantiate some construct for your layer and then some construct for your nodes and link them in code.
For people who make these libraries, they do indeed have to think about a lot of math and computational graphs. And there is a whole field of applied numerical mathematics called Automatic Differentiation (AD) that allows the derivatives to happen automatically for the various optimization processes.

1

u/ConnectAffect2346 13d ago

I understand, thank you very much for explaining🙂