Работаем с атрибутами объектов
Помимо привычного обращения к атрибутам объектов через точку, в Python есть 4 специальных функции: getattr, setattr, delattr и hasattr.
По названиям можно понять, что первые три отвечают за получение, установку и удаление атрибута. А последний проверяет, существует ли атрибут с указанным названием у объекта или нет.
Во всех функциях первыми двумя аргументами идут объект и название атрибута в виде строки. В setattr также нужно передать новое значение для атрибута.
На практике использование подобного — довольно редкий случай, но иногда может сильно выручить, так что берите на вооружение.
#python#tips
5 ta eng mashhur Python kutubxonasi
Python dasturlash tili kuchli kutubxonalar bilan mashhur. Quyida eng ommabop va keng qo‘llaniladigan 5 ta Python kutubxonasi bilan tanishing.
🔹1. TensorFlow –🔗Rasmiy sayt
– Google va Brain jamoasi tomonidan ishlab chiqilgan mashinaviy o‘rganish (ML) kutubxonasi.
– Katta hajmdagi ma’lumotlar bilan ishlash va neyron tarmoqlarni yaratish imkonini beradi.
🔹2. Keras –🔗Rasmiy sayt
– Mashinaviy o‘rganish uchun eng qulay va kuchli kutubxonalardan biri.
– Neyron tarmoqlarni yaratish va o‘qitish uchun sodda API taqdim etadi.
🔹3. NumPy – 🔗Rasmiy sayt
– Sonli hisob-kitoblar va massivlar bilan ishlash uchun ishlatiladi.
– TensorFlow va boshqa ML kutubxonalari NumPy’dan foydalanadi.
🔹4. Scikit-learn –🔗Rasmiy sayt
– Ma’lumotlarni tahlil qilish va mashinaviy o‘rganish uchun eng mashhur kutubxonalardan biri.
– NumPy va SciPy asosida yaratilgan.
🔹5. Django –🔗Rasmiy sayt
– Veb-saytlar yaratishni tezlashtiradigan kuchli Python kutubxonasi.
– Kamroq kod bilan ko‘proq ish bajarish imkonini beradi.
🚀Qaysi kutubxonadan foydalanasiz? Izohlarda fikringizni qoldiring!
#Python#Django#MachineLearning#Numpy
💻@dasturlash_hayoti— dasturchilar hayoti va dasturlash olami haqida!
#python#AI#ML
😉
Essentials of Python for Artificial Intelligence and Machine Learning (2024)
-----
Main channel: @repo_science
Coupons: @freecoupons_reposcience
-----
Here are ten poetic #metaphors you can use in your poems:
1. A storm of thoughts - Describing a mind overwhelmed by ideas or worries.
2. Her voice is honey - Conveying the sweetness and soothing quality of someone's voice.
3. The city is a sleeping giant - Representing a city that seems quiet but is full of latent energy.
4. Time is a thief - Illustrating how quickly time passes and takes moments away.
5. His heart is a locked door - Depicting someone who is emotionally closed off.
6. The sky is a canvas - Imagining the sky as a work of art, painted by the elements.
7. A river of memories - Referring to a continuous flow of past experiences.
8. Her smile is sunshine - Comparing someone's smile to the warmth and brightness of the sun.
9. Life is a fragile thread - Expressing the delicate and transient nature of life.
10. Words are seeds - Suggesting that words have the power to grow into ideas or influence.
Each of these metaphors can add depth and emotion to your poetry, creating vivid images in the reader's mind.
#tips
❗️
❗️
❗️
❗️
❗️
❗️
❗️
❗️
❗️
❗️
❗️
❗️
Writing #Tips from #Ficiton Authors:
"My first rule was given to me by TH White, author of The Sword in the Stone and other Arthurian fantasies and was: Read. Read everything you can lay hands on. I always advise people who want to write a fantasy or science fiction or romance to stop reading everything in those genres and start reading everything else from Bunyan to Byatt."
— Michael Moorcock
@WritersCafe
#вакансия#LoRa#ai#engineer#sql#python
AI engineer / Expert AI / AI model trainer (LoRa / Stable diffusion)
We are looking for an AI/StableDiffusion engineer as a full-time project employee.
The job is mostly related to high quality training of LORA, composing prompts related to certain scenes (based on sketches from artist) and programming on Python. We are currently in prove-of-concept phase and need to run many experiments to get certain results (can explain on the call).
The job also includes research of new technologies related to SD/other AI networks. The proposed salary level is $5000-6000.
The work process includes daily/on-demand calls, weekly reports, etc.
In addition to AI related knowledge,
following skills are required:
- Linux, advanced CLI commands
- SQL
- Basic image processing (transparency, simple drawings, scaling, rotation)
- Advanced Python programming (image processing pipelines, training pipelines)
- English (reading/writing. Speaking is highly welcomed)
Contact me and we will be happy to discuss our project! @levanm
We consider Russian-speaking specialists. The preferred time zone is UTC+3 or similar.
#вакансия#LoRa#ai#engineer#sql#python
AI engineer / Expert AI / AI model trainer (LoRa / Stable diffusion)
We are looking for an AI/StableDiffusion engineer as a full-time project employee.
The job is mostly related to high quality training of LORA, composing prompts related to certain scenes (based on sketches from artist) and programming on Python. We are currently in prove-of-concept phase and need to run many experiments to get certain results (can explain on the call).
The job also includes research of new technologies related to SD/other AI networks. The proposed salary level is $5000-6000.
The work process includes daily/on-demand calls, weekly reports, etc.
In addition to AI related knowledge,
following skills are required:
- Linux, advanced CLI commands
- SQL
- Basic image processing (transparency, simple drawings, scaling, rotation)
- Advanced Python programming (image processing pipelines, training pipelines)
- English (reading/writing. Speaking is highly welcomed)
Contact me and we will be happy to discuss our project! @levanm
We consider Russian-speaking specialists. The preferred time zone is UTC+3 or similar.
Пост-знакомство #2
Вас стало много! Пришло время обновить информацию о себе и канале✨
Кто я👀
Соня Шандыбина, редактор инфографики в образовательной команде космического "БЮРО 1440". Экс-редактор инфографики ТАСС.
Обожаю визуализацию данных и посвящаю ей не только рабочее, но и личное время. Свои проекты, сделанные для души, собираю на страничке:
https://dataviz_addict.tilda.ws
Интересуюсь всем, кроме политики. Особенно вдохновляют темы космоса, физики, биологии и других естественных наук про окружающий мир. Также увлекаюсь анализом текстов, изображений и видео с помощью python.
О чем канал📌
Тут я показываю рабочие и личные проекты, интересные датавизные находки и референсы, иногда делюсь кодом python и его разбором. В канале есть навигация по хэштегам:
#degraphing — рубрика с подробным разбором интересных визуализаций
#рабочее — рабочие проекты
#личное — личные проекты
#python — код или проекты, сделанные с использованием python
#датавиз — точное и понятное с графиками, диаграммами и т.д.
#датаарт — красивое и абстрактное, основанное на данных
#датамем — несерьезное или смешное про датавиз
#инфографика — постерное и(или) с преобладанием схем, иллюстраций и текстов над графиками
(трактовка понятий свободная, удобная лично мне)
P.S. Все посты в канале создаются без использования ИИ✅
Добро пожаловать в мой датавизнутый мир🙂