TGViewer
Channel Public Channel
Machine Learning with Python

Machine Learning with Python

@codeprogrammer

Learn Machine Learning with hands-on Python tutorials, real-world code examples, and clear explanations for researchers and developers.

Admin: @HusseinSheikho || @Hussein_Sheikho
Subscribers
68.6K
Photos
1.6K
Videos
136
Links
1.3K

Showing posts older than #4661 ยท Back to latest

Older Posts 20 shown
Post #4660 6.2K
๐Ÿ‘ฉโ€๐Ÿ’ป FREE 2026 IT Learning Kits Giveaway

๐Ÿ”ฅWhether you're preparing for #Cisco #AWS #PMP #Python #Excel #Google #Microsoft #AI or any other in-demand certification โ€“ SPOTO has got you covered!

๐ŸŽ Explore Our FREE Study Resources
ยทIT Certs E-book : https://bit.ly/3YvSMHL
ยทIT exams skill Test : https://bit.ly/4r4VHnd
ยทPython, ITIL, PMP, Excel, Cyber Security, cloud, SQL Courses : https://bit.ly/4qNWl8r
ยทFree AI online preparation material and support tools : https://bit.ly/4qKiKTN

๐Ÿ”— Need IT Certs Exam Help๏ผŸ contact: wa.link/dm4kyz
๐Ÿ“ฒ Join IT Study Group for insider tips & expert support:
https://chat.whatsapp.com/BEQ9WrfLnpg1SgzGQw69oM
  • โค 5
  • ๐Ÿ‘ 4
Post #4659 6.18K
๐Ÿ“ˆ_๐‹๐จ๐ ๐ข๐ฌ๐ญ๐ข๐œ_๐‘๐ž๐ ๐ซ๐ž๐ฌ๐ฌ๐ข๐จ๐งโฃโฃ.pdf10.5 MB
๐Ÿ“ˆ ๐‹๐จ๐ ๐ข๐ฌ๐ญ๐ข๐œ ๐‘๐ž๐ ๐ซ๐ž๐ฌ๐ฌ๐ข๐จ๐งโฃโฃ

Why Logistic Regression is not regressionโฃโฃ
How Sigmoid (Logistic) function worksโฃโฃ
Binary vs Multiclass Logistic Regressionโฃโฃ
Decision boundaries and probability interpretationโฃโฃ
Where Logistic Regression beats complex modelsโฃโฃ
โฃโฃ
๐ŸŽฏ ๐“๐จ๐ฉ ๐Ÿ๐ŸŽ ๐ˆ๐ง๐ญ๐ž๐ซ๐ฏ๐ข๐ž๐ฐ ๐๐ฎ๐ž๐ฌ๐ญ๐ข๐จ๐ง๐ฌ (๐Œ๐ฎ๐ฌ๐ญ-๐Š๐ง๐จ๐ฐ)โฃโฃ
โฃโฃ
1๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜“๐˜ฐ๐˜จ๐˜ช๐˜ด๐˜ต๐˜ช๐˜ค ๐˜™๐˜ฆ๐˜จ๐˜ณ๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฐ๐˜ฏ?โฃโฃ
2๏ธโƒฃ ๐˜ž๐˜ฉ๐˜บ ๐˜ช๐˜ด ๐˜“๐˜ฐ๐˜จ๐˜ช๐˜ด๐˜ต๐˜ช๐˜ค ๐˜™๐˜ฆ๐˜จ๐˜ณ๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฐ๐˜ฏ ๐˜ถ๐˜ด๐˜ฆ๐˜ฅ ๐˜ง๐˜ฐ๐˜ณ ๐˜ค๐˜ญ๐˜ข๐˜ด๐˜ด๐˜ช๐˜ง๐˜ช๐˜ค๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ, ๐˜ฏ๐˜ฐ๐˜ต ๐˜ณ๐˜ฆ๐˜จ๐˜ณ๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฐ๐˜ฏ?โฃโฃ
3๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜ต๐˜ฉ๐˜ฆ ๐˜š๐˜ช๐˜จ๐˜ฎ๐˜ฐ๐˜ช๐˜ฅ ๐˜ง๐˜ถ๐˜ฏ๐˜ค๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ธ๐˜ฉ๐˜บ ๐˜ช๐˜ด ๐˜ช๐˜ต ๐˜ฏ๐˜ฆ๐˜ฆ๐˜ฅ๐˜ฆ๐˜ฅ?โฃโฃ
4๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜“๐˜ฐ๐˜จ ๐˜“๐˜ฐ๐˜ด๐˜ด / ๐˜Š๐˜ณ๐˜ฐ๐˜ด๐˜ด-๐˜Œ๐˜ฏ๐˜ต๐˜ณ๐˜ฐ๐˜ฑ๐˜บ ๐˜“๐˜ฐ๐˜ด๐˜ด?โฃโฃ
5๏ธโƒฃ ๐˜‹๐˜ช๐˜ง๐˜ง๐˜ฆ๐˜ณ๐˜ฆ๐˜ฏ๐˜ค๐˜ฆ ๐˜ฃ๐˜ฆ๐˜ต๐˜ธ๐˜ฆ๐˜ฆ๐˜ฏ ๐˜“๐˜ฐ๐˜จ๐˜ช๐˜ด๐˜ต๐˜ช๐˜ค ๐˜™๐˜ฆ๐˜จ๐˜ณ๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฐ๐˜ฏ ๐˜ข๐˜ฏ๐˜ฅ ๐˜“๐˜ช๐˜ฏ๐˜ฆ๐˜ข๐˜ณ ๐˜™๐˜ฆ๐˜จ๐˜ณ๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฐ๐˜ฏ?โฃโฃ
6๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜ข ๐˜ฅ๐˜ฆ๐˜ค๐˜ช๐˜ด๐˜ช๐˜ฐ๐˜ฏ ๐˜ฃ๐˜ฐ๐˜ถ๐˜ฏ๐˜ฅ๐˜ข๐˜ณ๐˜บ?โฃโฃ
7๏ธโƒฃ ๐˜๐˜ฐ๐˜ธ ๐˜ฅ๐˜ฐ๐˜ฆ๐˜ด ๐˜™๐˜ฆ๐˜จ๐˜ถ๐˜ญ๐˜ข๐˜ณ๐˜ช๐˜ป๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ (๐˜“1 ๐˜ท๐˜ด ๐˜“2) ๐˜ธ๐˜ฐ๐˜ณ๐˜ฌ ๐˜ช๐˜ฏ ๐˜“๐˜ฐ๐˜จ๐˜ช๐˜ด๐˜ต๐˜ช๐˜ค ๐˜™๐˜ฆ๐˜จ๐˜ณ๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฐ๐˜ฏ?โฃโฃ
8๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜–๐˜ฅ๐˜ฅ๐˜ด ๐˜™๐˜ข๐˜ต๐˜ช๐˜ฐ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ฉ๐˜ฐ๐˜ธ ๐˜ฅ๐˜ฐ ๐˜บ๐˜ฐ๐˜ถ ๐˜ช๐˜ฏ๐˜ต๐˜ฆ๐˜ณ๐˜ฑ๐˜ณ๐˜ฆ๐˜ต ๐˜ค๐˜ฐ๐˜ฆ๐˜ง๐˜ง๐˜ช๐˜ค๐˜ช๐˜ฆ๐˜ฏ๐˜ต๐˜ด?โฃโฃ
9๏ธโƒฃ ๐˜๐˜ฐ๐˜ธ ๐˜ฅ๐˜ฐ ๐˜บ๐˜ฐ๐˜ถ ๐˜ฉ๐˜ข๐˜ฏ๐˜ฅ๐˜ญ๐˜ฆ ๐˜ค๐˜ญ๐˜ข๐˜ด๐˜ด ๐˜ช๐˜ฎ๐˜ฃ๐˜ข๐˜ญ๐˜ข๐˜ฏ๐˜ค๐˜ฆ?โฃโฃ
๐Ÿ”Ÿ ๐˜ž๐˜ฉ๐˜ฆ๐˜ฏ ๐˜ด๐˜ฉ๐˜ฐ๐˜ถ๐˜ญ๐˜ฅ ๐˜บ๐˜ฐ๐˜ถ ๐˜ข๐˜ท๐˜ฐ๐˜ช๐˜ฅ ๐˜“๐˜ฐ๐˜จ๐˜ช๐˜ด๐˜ต๐˜ช๐˜ค ๐˜™๐˜ฆ๐˜จ๐˜ณ๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฐ๐˜ฏ?โฃโฃ

https://t.me/CodeProgrammer โœ…
  • โค 7
  • ๐Ÿ‘ 1
Post #4654 4.98K

Forwarded from Machine Learning

The single most undervalued fact of linear algebra: matrices are graphs, and graphs are matrices.

Encoding matrices as graphs is a cheat code, making complex behavior simple to study.

https://t.me/DataScienceM
  • โค 6
  • ๐Ÿ‘ 4
Post #4653 5.49K
This channels is for Programmers, Coders, Software Engineers.

0๏ธโƒฃ Python
1๏ธโƒฃ Data Science
2๏ธโƒฃ Machine Learning
3๏ธโƒฃ Data Visualization
4๏ธโƒฃ Artificial Intelligence
5๏ธโƒฃ Data Analysis
6๏ธโƒฃ Statistics
7๏ธโƒฃ Deep Learning
8๏ธโƒฃ programming Languages

โœ… https://t.me/addlist/8_rRW2scgfRhOTc0

โœ… https://t.me/Codeprogrammer
  • โค 8
  • ๐ŸŽ‰ 1
Post #4652 7.4K
๐’๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ_๐•๐ž๐œ๐ญ๐จ๐ซ_๐Œ๐š๐œ๐ก๐ข๐ง๐ž๐ฌ_๐’๐•๐Œโฃ.pdf5.8 MB
๐Ÿ“ ๐’๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ ๐•๐ž๐œ๐ญ๐จ๐ซ ๐Œ๐š๐œ๐ก๐ข๐ง๐ž๐ฌ (๐’๐•๐Œ)โฃ

๐Ÿ”น What I covered todayโฃ
What SVM is and how it worksโฃ
Concept of hyperplane, margin, and support vectorsโฃ
Hard margin vs Soft marginโฃ
Role of kernel trickโฃ
โฃ
When SVM performs better than other classifiersโฃ
โฃ
๐ŸŽฏ ๐“๐จ๐ฉ ๐Ÿ๐ŸŽ ๐ˆ๐ง๐ญ๐ž๐ซ๐ฏ๐ข๐ž๐ฐ ๐๐ฎ๐ž๐ฌ๐ญ๐ข๐จ๐ง๐ฌ (๐Œ๐ฎ๐ฌ๐ญ-๐Š๐ง๐จ๐ฐ)โฃ
โฃ
1๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜š๐˜ถ๐˜ฑ๐˜ฑ๐˜ฐ๐˜ณ๐˜ต ๐˜๐˜ฆ๐˜ค๐˜ต๐˜ฐ๐˜ณ ๐˜”๐˜ข๐˜ค๐˜ฉ๐˜ช๐˜ฏ๐˜ฆ (๐˜š๐˜๐˜”)?โฃ
2๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ข๐˜ณ๐˜ฆ ๐˜ด๐˜ถ๐˜ฑ๐˜ฑ๐˜ฐ๐˜ณ๐˜ต ๐˜ท๐˜ฆ๐˜ค๐˜ต๐˜ฐ๐˜ณ๐˜ด?โฃ
3๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜ข ๐˜ฎ๐˜ข๐˜ณ๐˜จ๐˜ช๐˜ฏ ๐˜ช๐˜ฏ ๐˜š๐˜๐˜”?โฃ
4๏ธโƒฃ ๐˜‹๐˜ช๐˜ง๐˜ง๐˜ฆ๐˜ณ๐˜ฆ๐˜ฏ๐˜ค๐˜ฆ ๐˜ฃ๐˜ฆ๐˜ต๐˜ธ๐˜ฆ๐˜ฆ๐˜ฏ ๐˜ฉ๐˜ข๐˜ณ๐˜ฅ ๐˜ฎ๐˜ข๐˜ณ๐˜จ๐˜ช๐˜ฏ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ด๐˜ฐ๐˜ง๐˜ต ๐˜ฎ๐˜ข๐˜ณ๐˜จ๐˜ช๐˜ฏ?โฃ
5๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜ต๐˜ฉ๐˜ฆ ๐˜ฌ๐˜ฆ๐˜ณ๐˜ฏ๐˜ฆ๐˜ญ ๐˜ต๐˜ณ๐˜ช๐˜ค๐˜ฌ ๐˜ข๐˜ฏ๐˜ฅ ๐˜ธ๐˜ฉ๐˜บ ๐˜ช๐˜ด ๐˜ช๐˜ต ๐˜ฏ๐˜ฆ๐˜ฆ๐˜ฅ๐˜ฆ๐˜ฅ?โฃ
6๏ธโƒฃ ๐˜Š๐˜ฐ๐˜ฎ๐˜ฎ๐˜ฐ๐˜ฏ ๐˜ฌ๐˜ฆ๐˜ณ๐˜ฏ๐˜ฆ๐˜ญ๐˜ด ๐˜ถ๐˜ด๐˜ฆ๐˜ฅ ๐˜ช๐˜ฏ ๐˜š๐˜๐˜” (๐˜“๐˜ช๐˜ฏ๐˜ฆ๐˜ข๐˜ณ, ๐˜—๐˜ฐ๐˜ญ๐˜บ๐˜ฏ๐˜ฐ๐˜ฎ๐˜ช๐˜ข๐˜ญ, ๐˜™๐˜‰๐˜)?โฃ
7๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜ต๐˜ฉ๐˜ฆ ๐˜ณ๐˜ฐ๐˜ญ๐˜ฆ ๐˜ฐ๐˜ง ๐˜Š (๐˜ณ๐˜ฆ๐˜จ๐˜ถ๐˜ญ๐˜ข๐˜ณ๐˜ช๐˜ป๐˜ข๐˜ต๐˜ช๐˜ฐ๐˜ฏ ๐˜ฑ๐˜ข๐˜ณ๐˜ข๐˜ฎ๐˜ฆ๐˜ต๐˜ฆ๐˜ณ)?โฃ
8๏ธโƒฃ ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜จ๐˜ข๐˜ฎ๐˜ฎ๐˜ข ๐˜ช๐˜ฏ ๐˜™๐˜‰๐˜ ๐˜ฌ๐˜ฆ๐˜ณ๐˜ฏ๐˜ฆ๐˜ญ?โฃ
9๏ธโƒฃ ๐˜Š๐˜ข๐˜ฏ #๐˜š๐˜๐˜” ๐˜ฃ๐˜ฆ ๐˜ถ๐˜ด๐˜ฆ๐˜ฅ ๐˜ง๐˜ฐ๐˜ณ ๐˜ณ๐˜ฆ๐˜จ๐˜ณ๐˜ฆ๐˜ด๐˜ด๐˜ช๐˜ฐ๐˜ฏ? (๐˜š๐˜๐˜™)โฃ
๐Ÿ”Ÿ ๐˜ž๐˜ฉ๐˜ฆ๐˜ฏ ๐˜ด๐˜ฉ๐˜ฐ๐˜ถ๐˜ญ๐˜ฅ ๐˜บ๐˜ฐ๐˜ถ ๐˜ข๐˜ท๐˜ฐ๐˜ช๐˜ฅ ๐˜ถ๐˜ด๐˜ช๐˜ฏ๐˜จ ๐˜š๐˜๐˜”?โฃ

https://t.me/CodeProgrammer โœˆ๏ธ
  • โค 9
  • ๐Ÿ‘ 1
Post #4651 5.57K
nature papers: 1400$

Q1 and  Q2 papers    900$

Q3 and Q4 papers   500$

Doctoral thesis (complete)    700$

M.S thesis         300$

paper simulation   200$

Contact me
https://t.me/m/-nTmpj5vYzNk
  • โค 3
Post #4647 6.41K
For beginners: a free online course on Python programming

On the site, you can run code directly in the browser, solve problems, and learn the basics of the language step by step

Start your improvement ๐Ÿ‘

๐Ÿ‘‰ @codeprogrammer
  • โค 9
  • ๐Ÿ‘ 3
Post #4646 6.16K
ML engineers, this is for you: an interactive math tutorial for machine learning

Recently, they posted several more blogs on the basics of mathematical analysis for machine learning, with interactive simulations.

Among the topics:

- backprop and gradient descent
- local minima and saddle points
- vector fields
- Taylor series
- Jacobian and Hessian
- partial derivatives

The material is specifically focused on the ML context, with an emphasis on clarity and practical understanding. โœŒ๏ธ

Let's practice here

๐Ÿ‘‰ @codeprogrammer
  • โค 10
Post #4642 7.05K
OnSpace Mobile App builder: Build AI Apps in minutes

Visit website: https://www.onspace.ai/?via=tg_datas
Or Download app:https://onspace.onelink.me/za8S/h1jb6sb9?c=datas

With OnSpace, you can build website or AI Mobile Apps by chatting with AI, and publish to PlayStore or AppStore.

What will you get:
โœ”๏ธ Create app or website by chatting with AI;
โœ”๏ธ Integrate with Any top AI power just by giving order (like Sora2, Nanobanan Pro & Gemini 3 Pro);
โœ”๏ธ Download APK,AAB file, publish to AppStore.
โœ”๏ธ Add payments and monetize like in-app-purchase and Stripe.
โœ”๏ธ Functional login & signup.
โœ”๏ธ Database + dashboard in minutes.
โœ”๏ธ Full tutorial on YouTube and within 1 day customer service
  • โค 11
  • ๐Ÿ”ฅ 3
Post #4641 5.31K

Forwarded from Machine Learning

๐Ÿ”– 40 NumPy methods that cover 95% of tasks

A convenient cheat sheet for those who work with data analysis and ML.

Here are collected the main functions for:
โ–ถ๏ธ Creating and modifying arrays;
โ–ถ๏ธ Mathematical operations;
โ–ถ๏ธ Working with matrices and vectors;
โ–ถ๏ธ Sorting and searching for values.


Save it for yourself โ€” it will come in handy when working with NumPy.

tags: #NumPy #Python

โžก @DataScienceM
  • โค 10
  • ๐Ÿ‘ 2
Post #4637 6.39K
๐Ÿ“ฑ A collection of videos on PyTorch and neural networks

This is not a full-fledged course with a unified program, but a collection of nine separate videos on PyTorch and neural networks gathered in one playlist.

Inside, there are materials of different levels and formats that are suitable for selective study of topics, practice, and a general understanding of the direction.

What's here:
๐Ÿฎ Introductory videos on PyTorch and the basics of neural networks;

๐Ÿฎ Practical analyses with code writing and project examples;

๐Ÿฎ Materials on computer vision and working with medical images;

๐Ÿฎ Examples of creating chat bots and models on PyTorch;

๐Ÿฎ Analyses of large language models and generative neural networks;

๐Ÿฎ Examples of training agents and reinforcement tasks;

๐Ÿฎ Videos from different authors without a general learning logic.
The collection is suitable for those who are already familiar with Python and want to selectively study PyTorch without a strict study plan โ€” get it here.

https://www.youtube.com/playlist?list=PLp0BA-8NZ4bhBNWvUBPDztbzLar9Jcgd-


tags: #pytorch #DeepLearning #python

โžก @CodeProgrammer
  • โค 11
  • ๐ŸŽ‰ 2
  • ๐Ÿ”ฅ 1
Post #4629 7.25K
All assignments for the #Stanford The Modern Software Developer course are now available online.

This is the first full-fledged university course that covers how code-generative #LLMs are changing every stage of the development lifecycle. The assignments are designed to take you from a beginner to a confident expert in using AI to boost productivity in development.

Enjoy your studies! โœŒ๏ธ
https://github.com/mihail911/modern-software-dev-assignments

https://t.me/CodeProgrammer
  • โค 6
  • ๐Ÿ‘ 4
Post #4627 5.42K
How to test code without a real database

During unit testing, connecting to a real DB is unnecessary:
โ€ข tests run slowly
โ€ข become unstable
โ€ข require a working server


It is much better to mock the call to pandas.read_sql and return dummy data

Example function:

def query_user_data(user_id):
    query = f"SELECT id, name FROM users WHERE id = {user_id}"
    return pd.read_sql(query, "postgresql://localhost/mydb")


Test with mock:

from unittest.mock import patch
import pandas as pd

@patch("pandas.read_sql")
def test_database_query_mocked(mock_read_sql):
    mock_read_sql.return_value = pd.DataFrame(
        {"id": [123], "name": ["Alice"]}
    )

    result = query_user_data(user_id=123)
    assert result["name"].iloc[0] == "Alice"


This way you test only the business logic โ€” quickly, reliably, and without unnecessary dependencies

https://t.me/CodeProgrammer
  • โค 13
  • ๐Ÿ‘ 2
  • ๐Ÿ”ฅ 2
Post #4626 7.16K
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
  • โค 12
  • ๐Ÿ‘ 3
Post #4616 6.35K

Forwarded from Learn Python Coding

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
  • โค 15
  • ๐Ÿ‘ 1
  • ๐Ÿ”ฅ 1
Post #4609 6.87K
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
  • โค 8
  • ๐Ÿ‘ 1
Older posts โ†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’