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

Show parent comment

2

u/TeaDiscombobulated98 17d 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 16d ago

I understand, thank you very much for explaining🙂