Machine Learning with Python
68.4K subscribers
1.3K photos
95 videos
170 files
960 links
Learn Machine Learning with hands-on Python tutorials, real-world code examples, and clear explanations for researchers and developers.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Forwarded from Code With Python
Automatic translator in Python!

We translate a text in a few lines using deep-translator. It supports dozens of languages: from English and Russian to Japanese and Arabic.

Install the library:
pip install deep-translator


Example of use:
from deep_translator import GoogleTranslator

text = "Hello, how are you?"
result = GoogleTranslator(source="ru", target="en").translate(text)

print("Original:", text)
print("Translation:", result)


Mass translation of a list:
texts = ["Hello", "What's your name?", "See you later"]
for t in texts:
    print("โ†’", GoogleTranslator(source="ru", target="es").translate(t))


๐Ÿ”ฅ We get a mini-Google Translate right in Python: you can embed it in a chatbot, use it in notes, or automate work with the API.

๐Ÿšช @DataScience4
Please open Telegram to view this post
VIEW IN TELEGRAM
โค14๐Ÿ‘1๐Ÿ”ฅ1
In scientific work, the most time is spent on reading articles, data, and reports.

On GitHub, there is a collection called Awesome AI for Science -ยปยปยป a catalog of AI tools for all stages of research.

Inside:

-ยป working with literature
-ยป data analysis
-ยป turning articles into posters
-ยป automating experiments
-ยป tools for biology, chemistry, physics, and other fields

GitHub: http://github.com/ai-boost/awesome-ai-for-science

The list includes Paper2Poster, MinerU, The AI Scientist, as well as articles, datasets, and frameworks.
In fact, this is a complete set of tools for AI support in scientific research.

๐Ÿ‘‰ https://t.me/CodeProgrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
โค6๐Ÿ‘1๐ŸŽ‰1
Please open Telegram to view this post
VIEW IN TELEGRAM
โค15๐Ÿ‘5
This GitHub repository is not a dump of tutorials.

Inside, there are 28 production-ready AI projects that can be used.

What's there:

Machine learning projects
โ†’ Airbnb price forecasting
โ†’ Air ticket cost calculator
โ†’ Student performance tracker

AI for medicine
โ†’ Chest disease detection
โ†’ Heart disease prediction
โ†’ Diabetes risk analysis

Generative AI applications
โ†’ Live chatbot on Gemini
โ†’ Medical assistant tool
โ†’ Document analysis tool

Computer vision projects
โ†’ Hand tracking system
โ†’ Drug recognition app
โ†’ OpenCV implementations

Data analysis dashboards
โ†’ E-commerce analytics
โ†’ Restaurant analytics
โ†’ Cricket statistics tracker

And 10 more advanced projects coming soon:
โ†’ Deepfake detection
โ†’ Brain tumor classification
โ†’ Driver drowsiness alert system

This is not just a collection of code files.
These are end-to-end working applications.

View the repository ๐Ÿ˜ฒ
https://github.com/KalyanM45/AI-Project-Gallery

๐Ÿ‘‰ @codeprogrammer

Like and Share
Please open Telegram to view this post
VIEW IN TELEGRAM
โค13๐Ÿ‘2๐ŸŽ‰1
transformer Q&A.pdf
1.3 MB
๐‡๐ž๐ซ๐žโ€™๐ฌ ๐š ๐ช๐ฎ๐ข๐œ๐ค ๐›๐ซ๐ž๐š๐ค๐๐จ๐ฐ๐ง ๐Ÿ๐ซ๐จ๐ฆ ๐ญ๐ก๐ž ๐ญ๐จ๐ฉ ๐“๐ซ๐š๐ง๐ฌ๐Ÿ๐จ๐ซ๐ฆ๐ž๐ซ๐ฌ ๐ˆ๐ง๐ญ๐ž๐ซ๐ฏ๐ข๐ž๐ฐ ๐๐ฎ๐ž๐ฌ๐ญ๐ข๐จ๐ง๐ฌ ๐Ÿ”ฅ๐Ÿ‘‡โฃโฃ
โฃโฃ
โœ… ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜ข ๐˜›๐˜ณ๐˜ข๐˜ฏ๐˜ด๐˜ง๐˜ฐ๐˜ณ๐˜ฎ๐˜ฆ๐˜ณ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ธ๐˜ฉ๐˜บ ๐˜ธ๐˜ข๐˜ด ๐˜ช๐˜ต ๐˜ช๐˜ฏ๐˜ต๐˜ณ๐˜ฐ๐˜ฅ๐˜ถ๐˜ค๐˜ฆ๐˜ฅ?โฃโฃ
๐˜๐˜ต ๐˜ด๐˜ฐ๐˜ญ๐˜ท๐˜ฆ๐˜ฅ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ญ๐˜ช๐˜ฎ๐˜ช๐˜ต๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ด ๐˜ฐ๐˜ง ๐˜™๐˜•๐˜•๐˜ด & ๐˜“๐˜š๐˜›๐˜”๐˜ด ๐˜ฃ๐˜บ ๐˜ถ๐˜ด๐˜ช๐˜ฏ๐˜จ ๐˜ด๐˜ฆ๐˜ญ๐˜ง-๐˜ข๐˜ต๐˜ต๐˜ฆ๐˜ฏ๐˜ต๐˜ช๐˜ฐ๐˜ฏ, ๐˜ฆ๐˜ฏ๐˜ข๐˜ฃ๐˜ญ๐˜ช๐˜ฏ๐˜จ ๐˜ฑ๐˜ข๐˜ณ๐˜ข๐˜ญ๐˜ญ๐˜ฆ๐˜ญ ๐˜ฑ๐˜ณ๐˜ฐ๐˜ค๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฏ๐˜จ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ค๐˜ข๐˜ฑ๐˜ต๐˜ถ๐˜ณ๐˜ช๐˜ฏ๐˜จ ๐˜ญ๐˜ฐ๐˜ฏ๐˜จ-๐˜ณ๐˜ข๐˜ฏ๐˜จ๐˜ฆ ๐˜ฅ๐˜ฆ๐˜ฑ๐˜ฆ๐˜ฏ๐˜ฅ๐˜ฆ๐˜ฏ๐˜ค๐˜ช๐˜ฆ๐˜ด ๐˜ญ๐˜ช๐˜ฌ๐˜ฆ ๐˜ฏ๐˜ฆ๐˜ท๐˜ฆ๐˜ณ ๐˜ฃ๐˜ฆ๐˜ง๐˜ฐ๐˜ณ๐˜ฆ!โฃโฃ
โฃโฃ
โœ… ๐˜š๐˜ฆ๐˜ญ๐˜ง-๐˜ˆ๐˜ต๐˜ต๐˜ฆ๐˜ฏ๐˜ต๐˜ช๐˜ฐ๐˜ฏ โ€“ ๐˜›๐˜ฉ๐˜ฆ ๐˜ฎ๐˜ข๐˜จ๐˜ช๐˜ค ๐˜ฃ๐˜ฆ๐˜ฉ๐˜ช๐˜ฏ๐˜ฅ ๐˜ช๐˜ตโฃโฃ
๐˜Œ๐˜ท๐˜ฆ๐˜ณ๐˜บ ๐˜ธ๐˜ฐ๐˜ณ๐˜ฅ ๐˜ถ๐˜ฏ๐˜ฅ๐˜ฆ๐˜ณ๐˜ด๐˜ต๐˜ข๐˜ฏ๐˜ฅ๐˜ด ๐˜ช๐˜ต๐˜ด ๐˜ค๐˜ฐ๐˜ฏ๐˜ต๐˜ฆ๐˜น๐˜ต ๐˜ช๐˜ฏ ๐˜ณ๐˜ฆ๐˜ญ๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ต๐˜ฐ ๐˜ฐ๐˜ต๐˜ฉ๐˜ฆ๐˜ณ๐˜ดโ€”๐˜ฎ๐˜ข๐˜ฌ๐˜ช๐˜ฏ๐˜จ ๐˜ฆ๐˜ฎ๐˜ฃ๐˜ฆ๐˜ฅ๐˜ฅ๐˜ช๐˜ฏ๐˜จ๐˜ด ๐˜ด๐˜ฎ๐˜ข๐˜ณ๐˜ต๐˜ฆ๐˜ณ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ฎ๐˜ฐ๐˜ฅ๐˜ฆ๐˜ญ๐˜ด ๐˜ฎ๐˜ฐ๐˜ณ๐˜ฆ ๐˜ค๐˜ฐ๐˜ฏ๐˜ต๐˜ฆ๐˜น๐˜ต-๐˜ข๐˜ธ๐˜ข๐˜ณ๐˜ฆ.โฃโฃ
โฃโฃ
โœ… ๐˜”๐˜ถ๐˜ญ๐˜ต๐˜ช-๐˜๐˜ฆ๐˜ข๐˜ฅ ๐˜ˆ๐˜ต๐˜ต๐˜ฆ๐˜ฏ๐˜ต๐˜ช๐˜ฐ๐˜ฏ โ€“ ๐˜š๐˜ฆ๐˜ฆ๐˜ช๐˜ฏ๐˜จ ๐˜ง๐˜ณ๐˜ฐ๐˜ฎ ๐˜ฎ๐˜ถ๐˜ญ๐˜ต๐˜ช๐˜ฑ๐˜ญ๐˜ฆ ๐˜ข๐˜ฏ๐˜จ๐˜ญ๐˜ฆ๐˜ดโฃโฃ
๐˜‹๐˜ช๐˜ง๐˜ง๐˜ฆ๐˜ณ๐˜ฆ๐˜ฏ๐˜ต ๐˜ข๐˜ต๐˜ต๐˜ฆ๐˜ฏ๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ฉ๐˜ฆ๐˜ข๐˜ฅ๐˜ด ๐˜ง๐˜ฐ๐˜ค๐˜ถ๐˜ด ๐˜ฐ๐˜ฏ ๐˜ฅ๐˜ช๐˜ง๐˜ง๐˜ฆ๐˜ณ๐˜ฆ๐˜ฏ๐˜ต ๐˜ณ๐˜ฆ๐˜ญ๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ด๐˜ฉ๐˜ช๐˜ฑ๐˜ด ๐˜ช๐˜ฏ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฅ๐˜ข๐˜ต๐˜ข. ๐˜๐˜ตโ€™๐˜ด ๐˜ญ๐˜ช๐˜ฌ๐˜ฆ ๐˜ฉ๐˜ข๐˜ท๐˜ช๐˜ฏ๐˜จ ๐˜ฎ๐˜ถ๐˜ญ๐˜ต๐˜ช๐˜ฑ๐˜ญ๐˜ฆ ๐˜ฆ๐˜น๐˜ฑ๐˜ฆ๐˜ณ๐˜ต๐˜ด ๐˜ข๐˜ฏ๐˜ข๐˜ญ๐˜บ๐˜ป๐˜ฆ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ด๐˜ข๐˜ฎ๐˜ฆ ๐˜ช๐˜ฏ๐˜ง๐˜ฐ๐˜ณ๐˜ฎ๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ!โฃโฃ
โฃโฃ
โœ… ๐˜—๐˜ฐ๐˜ด๐˜ช๐˜ต๐˜ช๐˜ฐ๐˜ฏ๐˜ข๐˜ญ ๐˜Œ๐˜ฏ๐˜ค๐˜ฐ๐˜ฅ๐˜ช๐˜ฏ๐˜จ โ€“ ๐˜›๐˜ฆ๐˜ข๐˜ค๐˜ฉ๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฎ๐˜ฐ๐˜ฅ๐˜ฆ๐˜ญ ๐˜ฐ๐˜ณ๐˜ฅ๐˜ฆ๐˜ณ ๐˜ฎ๐˜ข๐˜ต๐˜ต๐˜ฆ๐˜ณ๐˜ดโฃโฃ
๐˜š๐˜ช๐˜ฏ๐˜ค๐˜ฆ ๐˜›๐˜ณ๐˜ข๐˜ฏ๐˜ด๐˜ง๐˜ฐ๐˜ณ๐˜ฎ๐˜ฆ๐˜ณ๐˜ด ๐˜ฅ๐˜ฐ๐˜ฏโ€™๐˜ต ๐˜ฑ๐˜ณ๐˜ฐ๐˜ค๐˜ฆ๐˜ด๐˜ด ๐˜ฅ๐˜ข๐˜ต๐˜ข ๐˜ด๐˜ฆ๐˜ฒ๐˜ถ๐˜ฆ๐˜ฏ๐˜ต๐˜ช๐˜ข๐˜ญ๐˜ญ๐˜บ, ๐˜ต๐˜ฉ๐˜ช๐˜ด ๐˜ต๐˜ณ๐˜ช๐˜ค๐˜ฌ ๐˜ฆ๐˜ฏ๐˜ด๐˜ถ๐˜ณ๐˜ฆ๐˜ด ๐˜ต๐˜ฉ๐˜ฆ๐˜บ โ€œ๐˜ฌ๐˜ฏ๐˜ฐ๐˜ธโ€ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฑ๐˜ฐ๐˜ด๐˜ช๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ฐ๐˜ง ๐˜ฆ๐˜ข๐˜ค๐˜ฉ ๐˜ต๐˜ฐ๐˜ฌ๐˜ฆ๐˜ฏ.โฃโฃ
โฃโฃ
โœ… ๐˜“๐˜ข๐˜บ๐˜ฆ๐˜ณ ๐˜•๐˜ฐ๐˜ณ๐˜ฎ๐˜ข๐˜ญ๐˜ช๐˜ป๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ โ€“ ๐˜š๐˜ต๐˜ข๐˜ฃ๐˜ช๐˜ญ๐˜ช๐˜ป๐˜ช๐˜ฏ๐˜จ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ญ๐˜ฆ๐˜ข๐˜ณ๐˜ฏ๐˜ช๐˜ฏ๐˜จ ๐˜ฑ๐˜ณ๐˜ฐ๐˜ค๐˜ฆ๐˜ด๐˜ดโฃโฃ
๐˜๐˜ต ๐˜ด๐˜ฑ๐˜ฆ๐˜ฆ๐˜ฅ๐˜ด ๐˜ถ๐˜ฑ ๐˜ต๐˜ณ๐˜ข๐˜ช๐˜ฏ๐˜ช๐˜ฏ๐˜จ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ข๐˜ท๐˜ฐ๐˜ช๐˜ฅ๐˜ด ๐˜ท๐˜ข๐˜ฏ๐˜ช๐˜ด๐˜ฉ๐˜ช๐˜ฏ๐˜จ ๐˜จ๐˜ณ๐˜ข๐˜ฅ๐˜ช๐˜ฆ๐˜ฏ๐˜ต๐˜ด, ๐˜ญ๐˜ฆ๐˜ต๐˜ต๐˜ช๐˜ฏ๐˜จ ๐˜ฎ๐˜ฐ๐˜ฅ๐˜ฆ๐˜ญ๐˜ด ๐˜จ๐˜ฐ ๐˜ฅ๐˜ฆ๐˜ฆ๐˜ฑ๐˜ฆ๐˜ณ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ญ๐˜ฆ๐˜ข๐˜ณ๐˜ฏ ๐˜ฃ๐˜ฆ๐˜ต๐˜ต๐˜ฆ๐˜ณ.โฃโฃ

๐Ÿ‘‰ @codeprogrammer

Like and Share ๐Ÿ‘
Please open Telegram to view this post
VIEW IN TELEGRAM
โค7๐Ÿ‘3๐Ÿ‘1๐ŸŽ‰1
Forwarded from Code With Python
A cheat sheet about functions and techniques in Python: shows useful built-in functions, working with iterators, strings, and collections, as well as popular tricks with unpacking, zip, enumerate, map, filter, and dictionaries

@DataScience4
โค9
Convert complex regular expressions into readable Python code with Pregex

Templates like [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} look intimidating and are hard to read. It's challenging for a team without experience in regular expressions to understand and modify such validations.

Pregex converts regular expressions into clear Python code from descriptive components.

What you get:
โ€ข The code itself explains the intent, even without comments
โ€ข You can modify it without knowledge of regular expressions
โ€ข You can compose patterns for complex validation
โ€ข If necessary, you can export it back to a regular regex

The tool is open source. Installation: pip install pregex

Full article: https://bit.ly/3IWAE5O
Run this code: https://bit.ly/4hdQjKM

๐Ÿ‘‰ @codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
โค4๐Ÿ‘1
Create a perfect resume without messing with templates.

You write content in YAML and generate a PDF.

The project is called RenderCV, and it's open-source
https://github.com/rendercv/rendercv


๐Ÿ‘‰ https://t.me/DataScienceN
Please open Telegram to view this post
VIEW IN TELEGRAM
โค11๐Ÿ”ฅ1
Forwarded from Code With Python
Checking the reliability of a password with Python!

Sometimes you need to quickly check how secure a password is. Let's look at a simple example using regular expressions - a good opportunity to practice with re and conditional logic.

Import the module:
import re


Create a password check function:
def check_password_strength(password):
    length = len(password) >= 8
    upper = re.search(r"[A-Z]", password)
    lower = re.search(r"[a-z]", password)
    digit = re.search(r"\d", password)
    special = re.search(r"[@$!%*?&]", password)

    if all([length, upper, lower, digit, special]):
        return "โœ… Reliable password"
    else:
        return "โš ๏ธ Weak password"


Check a few examples:
print(check_password_strength("Qwerty123"))
print(check_password_strength("Qw!8zYt@1"))


Output example:
โš ๏ธ Weak password  
โœ… Reliable password


๐Ÿ”ฅ Example of how to check a string for compliance with several conditions using code - and practice with regular expressions.

๐Ÿšช @DataScience4
Please open Telegram to view this post
VIEW IN TELEGRAM
โค11๐Ÿ‘1๐Ÿ”ฅ1
ะšั€ะธะฝะถะพะฒั‹ะต ั‚ะฐะฝั†ั‹, ัะฝะตะณ, ะฟะฐั€ะพะดะธั ะฝะฐ ะกั‚ะตะบะปะพะฒะฐั‚ัƒ โ€” ะฟะพะปะฝั‹ะน ะฝะฐะฑะพั€ ะบะปะฐััะฝะพะณะพ ะฝะพะฒะพะณะพะดะฝะตะณะพ ะฟะพะทะดั€ะฐะฒะปะตะฝะธั ะพั‚ ะฟั€ะธะปะพะถะตะฝะธั ะดะปั ะพะฑั‰ะตะฝะธั ั ะดั€ัƒะทัŒัะผะธ ๐ŸŽ„

https://t.me/blinkmap/1110
โค1
๐Ÿ›ก๏ธ VPN Proxy ๐Ÿ›ก๏ธ

Ever felt the frustration of blocked sites or slow connections? Here, find freedom to browse with peace of mindโ€”uninterrupted, secure, private. Unlock whatโ€™s hidden; regain control. ๐ŸŒ

No more worries about privacy leaks, geo-restrictions, or spying eyes. Just smooth, safe, and fast internet every time. ๐Ÿ”’

Secure your connection, protect your data, surf without borders. Ready to browse freely? ๐ŸŒ

Join now and unlock the internet โ†’ VPN Proxy ๐Ÿš€

#ad InsideAds
Harvard has made its textbook on ML systems publicly available. It's extremely practical: not just about how to train models, but how to build production systems around them - what really matters.

The topics there are really top-notch:

> Building autograd, optimizers, attention, and mini-PyTorch from scratch to understand how the framework is structured internally. (This is really awesome)
> Basic things about DL: batches, computational accuracy, model architectures, and training
> Optimizing ML performance, hardware acceleration, benchmarking, and efficiency

So this isn't just an introductory course on ML, but a complete cycle from start to practical application. You can already read the book and view the code for free. For 2025, this is one of the strongest textbooks to have been released, so it's best not to miss out.

The repository is here, with a link to the book inside ๐Ÿ‘

๐Ÿ‘‰ @codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
โค2