PythonHub
2.48K subscribers
2.35K photos
49.7K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Design Patterns in Machine Learning Code and Systems

Design patterns are not just a way to structure code. They also communicate the problem addressed and how the code or component is intended to be used. Here are some patterns I’ve observed in machine learning code and systems.

https://eugeneyan.com/writing/design-patterns/
Parallelization with MultiProcessing in Python

Run your data science tasks in parallel to speed up computation timeContinue reading on Towards ...

https://towardsdatascience.com/parallelization-w-multiprocessing-in-python-bd2fc234f516
Appreciating Python's match-case by parsing Python code

Python's match-case blocks are complex structural pattern matching tools that are often more hassle than they're worth. But they're great for parsing abstract syntax trees.

https://www.pythonmorsels.com/match-case-parsing-python/
How to optimize PostgreSQL queries from Django using pgMustard

Slow queries happen, and when they do, it can be tough to dissect why they’re slow. This difficulty is compounded by using Django’s ORM, since it generates the SQL for you, so you may have little idea of the actual queries “under the hood”. In this post we’ll look at what pgMustard does and how to use it with the Django ORM.

https://adamj.eu/tech/2022/06/21/optimize-postgresql-queries-from-django-using-pgmustard/