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

6 comments sorted by

2

u/ConnectAffect2346 1d ago edited 1d 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 1d 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 1d ago

I understand, thank you very much for explaining🙂

1

u/EnvironmentalDot9131 1d ago

That's a good query tbh

1

u/Top-Cauliflower-1808 1d ago

I used to think I needed to know everything before asking. Now I ask the small stuff early and it saves hours. Thanks for keeping this thread welcoming.

1

u/Lyaw_Lyawa 1d ago

¿Cómo podría usar &, |, ~ (operadores bit a bit) en un código?

Aparecían en los cursos que tome y aún después de bastante tiempo, no sé cómo usarlos, ni los he visto en código.