TGViewer
Channel Public Channel
پایتون | Data Science | Machine Learning

پایتون | Data Science | Machine Learning

@python4all_pro

◀️اینجا با تمرین و چالش با هم پایتون رو یاد می گیریم

⏮بانک اطلاعاتی پایتون
پروژه / code/ cheat sheet
+ویدیوهای آموزشی

+کتابهای پایتون
تبلیغات:
@alloadv

🔁ادمین :
@maryam3771
Subscribers
24.3K
Photos
635
Videos
81
Links
500

Showing posts older than #1776 · Back to latest

Older Posts 18 shown
Post #1775 2.73K

Forwarded from تهران دیتا-دانشگاه تهران

🆕 دوره سی‌ونهم با سقف ۱۰ میلیون تومان تخفیف رسید‼️

🔥 علم داده و هوش مصنوعی رو از بهترین‌ها یاد بگیر✅

از مقدمات تا تسلط کامل | پروژه‌محور | عملی | همراه با منتورینگ

⭐️ فرصتی برای حرفه‌ای شدن در دنیای دیتا و الگوریتم‌ها ⭐️

📊 با بهترین کیفیت آموزشی با اتکا به تجربه برگزاری ۳۸ دوره موفق و رضایت بالای ۹۰ درصد✅

📌 ویژه کسانی که میخوان در بازار کار داخلی و بین‌المللی بدرخشن💎

اعتبار دانشگاه تهران ➕ مهارت واقعی 🟰 شغل آینده‌ ات

👨‍🏫 آموزش ۲۱ سرفصل تخصصی و بیش از ۱۲ نرم‌افزار و ابزار پرکاربرد
📹 ارائه کامل فیلم ضبط‌شده تمامی جلسات و محتوای آموزشی دوره
💲 امکان پرداخت شهریه به‌صورت اقساطی (متناسب با بودجه شرکت‌کنندگان)
🎓 اعطای گواهینامه رسمی و معتبر دو زبانه از دانشگاه

⏱ جا نمونی که خیلیا منتظر شروعشن🎖️

https://tehrandata.org/courses/datascience/

📞 تماس با ما:
09377516759
09357516755

❌ این تخفیف فقط برای ده نفر اول فعال می‌باشد❌

📨 Telegram | 📨 whatsapp | 📱 linkedin | 📷 Instagram | 🌐 website | 💬 admin 1 | 💬 admin 2
  • ❤ 1
Post #1772 2.58K
📍نقشه راه یادگیری ماشین + منابع

✔️منابع رو با مراجعه به یوتیوب مشاهده کنید


#پایتون #Python #یادگیری_ماشین

📱 @Python4all_pro
  • ❤ 1
Post #1770 3.27K
🔖مقدمات ورود به حوزه علم داده و یادگیری ماشین را با این 7 دوره رایگان از Kaggle یاد بگیرید ( به همراه مدرک )

➕Python
https://www.kaggle.com/learn/python

➕Pandas
https://www.kaggle.com/learn/pandas

➕Data visualization
https://www.kaggle.com/learn/data-visualization

➕Intro to sql
https://www.kaggle.com/learn/intro-to-sql

➕Advanced Sql
https://www.kaggle.com/learn/advanced-sql

➕Intro to ML
https://www.kaggle.com/learn/intro-to-machine-learning

➕Advanced ML
https://www.kaggle.com/learn/intermediate-machine-learning


#پایتون #Python #علم_داده #یادگیری_ماشین

📱 @Python4all_pro
  • 👍 5
  • ❤ 2
Post #1766 2.4K
➡️PyTorch in One

سباستین راشکا، محقق برجسته هوش مصنوعی با بیش از یک دهه تجربه در این لینک مفاهیم اصلی PyTorch را در فقط یک ساعت آموزش می دهد
این محتوا بر اساس کتاب او با عنوان
Build a Large Language Model (From Scratch)

است که به دلیل رویکرد عملی و کدمحور در توسعه مدل‌های زبانی بزرگ مورد تحسین قرار گرفته

💎 Link: http://sebastianraschka.com/teaching/pytorch-1h/



#پایتون #Python

📱 @Python4all_pro
Post #1765 2.9K
▶️Gremllm - Now your bugs have consciousness 

Gremllm is an unusual Python class in which all methods and properties are created dynamically using LLM. You describe, *what kind of object do you want *, and then Gremllm decides what should happen when the methods are called or the fields are addressed.

🎁 Installation
pip install gremllm


🔧 Example:

from gremllm import Gremllm

counter = Gremllm('counter')
counter.value = 5
counter.increment()
print(counter.value) # → 6?
print(counter.to_roman_numerals()) # → VI?

🔸
✔️ Opportunities:
- dynamic behavior: everything is determined "on the fly" using LLM
- Support Openai, Claude, Gemini, and local models
- Wet Mode: You can build challenges of calls (methods return objects)
- Verbose Mode: Bodes which code was generated
- smart processing of errors and setting through inheritance

🖥 Github: https://github.com/ur-whitelab/gremllm

🔸

#پایتون #Python

📱 @Python4all_pro
  • ❤ 5
Post #1764 2.79K
❌نحوه نوشتن بدترین کد پایتون

❌بدترین کدهای پایتون چه ویژگی هایی دارند ؟

⬅️ به این موارد دقت کنید اگر اینجوری کدنویسی می کنید سعی کنید روشتون رو اصلاح کنید و کدهای زیبا و سریع تری بنویسید

1. Use incomprehensible names of variables
Call variables X, Y, A, Thing. Abstraction is the key to confusion

def f(x, y, z=None):
a = x * 2
b = y + a if z else y - a
c = [i for i in range(a) if i % 2]
return sum(c) + b

2. Sake maximum logic in one line
Complex thornar expressions and nested List CompreHance - all in one line.


result = [x if x > 0 else (y if y < 0 else z) for x in data if x or y and not z]


3. Use Eval () and Exec ()
It is slow, unsafe and stupid - but spectacular.


eval("d['" + key + "']")



4. Reprint variables with different types
Let one variable be a line, and a number, and a list - a dynamic typification

value = "42"
value = int(value)
value = [value] * value

5. Use global variables
Change the condition of the application from anywhere. Especially from the inside of the functions.


counter = 0

def increment():
global counter
counter += 1

6. Use magic numbers and lines
Without explanation. Let colleagues guess why exactly 42 or "XYZ"

if user.role == "xyz" and user.level > 42:
access_granted()

7. Ignore style and indentation
No PEP8, no rules. Write as you want

def foo():print("start")
if True:
print("yes")
else:
print("no")


8. Copy the code from Stack Overflow without delving
Ctrl+C is also a development

def complex_logic(x):
return (lambda y: (lambda z: z**2)(y + 1))(x)


9. Invent abstraction unnecessary
Instead of a simple function - classes, factories and strategies

class HandlerFactory:
def get_handler(self):
class Handler:
def handle(self, x): return x
return Handler()

10. Add dead code
Never remove - suddenly comes in handy. And let it be loaded into every launch

def legacy_feature():
print("This feature is deprecated")
return
# нигде не вызывается

11. Do not write the documentation
Comments only interfere. Whoever wants to figure it out

def a(x): return x+1





#پایتون #Python

📱 @Python4all_pro
  • 👍 3
  • ❤ 1
  • 🫡 1
Post #1762 2.07K

Forwarded from FaraDars_Course

⏰ ساعات پایانی — یادگیری با پیشنهاد شگفت‌انگیز فرادرس
 
🔥 ۷۰۰ آموزش منتخب، فقط ۸۹,۰۰۰ تومن
 
📣 برای مشاهده آموزش‌های هر دسته بندی، روی عنوان مورد نظر کلیک کنید: 👇
 
✅ هوش مصنوعی  | پایتون  | یادگیری ماشین
 
✅ برنامه‌نویسی  | طراحی سایت  | شبکه
 
✅ آفیس و اکسل  | عمومی  | گرافیک
 
✅ زبان‌های خارجی  | هنر  | علوم انسانی
 
✅ بازاریابی | اقتصاد و حسابداری  | دانشگاهی
 
📚 لیست تمامی ۷۰۰ آموزش - [کلیک کنید]

🔄 FaraDars - فرادرس
  • ❤ 1
Post #1754 3.36K
🔟 single-line functions useful for advanced Python developers:

1. We unfold the invested lists of any depth
flatten = lambda lst: [x for sub in lst for x in (flatten(sub) if isinstance(sub, list) else [sub])]


2. Decorator for memoization of the results of the function
memoize = lambda f: (lambda *args, _cache={}, **kwargs: _cache.setdefault((args, tuple(kwargs.items())), f(*args, **kwargs)))


3. Missing the list into pieces of length n
chunked = lambda lst, n: [lst[i:i+n] for i in range(0, len(lst), n)]


4. Uniqueization of the sequence with the preservation of order
uniq = lambda seq: list(dict.fromkeys(seq))

5. Deep access to the invested dictionary keys
deep_get = lambda d, *keys: __import__('functools').reduce(lambda a, k: a.get(k) if isinstance(a, dict) else None, keys, d)

6. Transformation of the Python object to the readable json
pretty_json = lambda obj: __import__('json').dumps(obj, ensure_ascii=False, indent=2)


7. Reading the latest n lakes of the file (analogue Tail)
tail = lambda f, n=10: list(__import__('collections').deque(open(f), maxlen=n))



8. Performing shell team and return of the withdrawal
sh = lambda cmd: __import__('subprocess').run(cmd, shell=True, check=True, capture_output=True).stdout.decode().strip()


9. Quick route association
path_join = lambda *p: __import__('os').path.join(*p)


10. Grouping of the list of dictionaries by key value
group_by = lambda seq, key: {k: [d for d in seq if d.get(key) == k] for k in set(d.get(key) for d in seq)}



📱 @Python4all_pro
  • ❤ 5
Post #1742 4.5K
Quick Python cheatsheet



#پایتون #cheat_sheet #library

📱 @Python4all_pro
  • 👍 3
  • ❤‍🔥 1
Post #1740 3.81K
New to Pandas?

Here's a cheat sheet you can use



#پایتون #cheat_sheet #pandas

📱 @Python4all_pro
Post #1737 3.61K
پایتون | Data Science | Machine Learning 🔈 بچه‌ها به خاطر شرایط جنگی حال حاضر کورس‌های سایت پایتوپیا رایگان شد. 🔈 اگر مشکلی در ثبت‌نام یا سایر موارد بود به این آیدی پیام بدین براتون بررسی می‌کنه. @khosro_24 #پایتون ➡️ @Python4all_pro
این دوره‌ها طیف وسیعی از موضوعات مهم را در بر می‌گیرند؛ از مقدمات پایتون گرفته تا یادگیری ماشین، آمار و احتمالات، گیت و گیت‌هاب و چندین مهارت دیگر که برای هر برنامه‌نویس یا علاقه‌مند به حوزه داده ضروری است.
افراد می‌توانند به‌سادگی در سایت pytopia.ai ثبت‌نام کنند و به‌صورت دائمی به محتوای دوره‌ها دسترسی داشته باشند.

در روزگاری که آموزش با چالش‌های زیادی روبه‌روست، این حرکت سخاوتمندانه یک نمونه‌ی واقعی از تعهد به جامعه‌ی یادگیرندگان است.


#پایتون
📱 @Python4all_pro
  • ❤‍🔥 5
  • ❤ 2
Post #1736 3.32K
🔈 بچه‌ها به خاطر شرایط جنگی حال حاضر کورس‌های سایت پایتوپیا رایگان شد.

🔈 اگر مشکلی در ثبت‌نام یا سایر موارد بود به این آیدی پیام بدین براتون بررسی می‌کنه.

@khosro_24

#پایتون
➡️ @Python4all_pro
  • ❤‍🔥 4
  • ❤ 3
Post #1735 4.29K
بچه‌ها جادی دوره‌ی پایتونش روی مکتب‌خونه رو به خاطر شرایط جنگی فعلی رایگان کرده (قیمت اصلی دوره ۱ میلیون و ۷۰۰ هزار تومنه).

اگه اندک تمرکزی برای یادگرفتن دارین، فرصت خیلی خوبیه که هم یاد بگیرین و هم کمکی بشه از این فضای تیره‌ی این روزا فاصله بگیرین

برای تخفیف صد در صد، تیک «دسترسی کامل» رو بردارید، به سبد اضافه کنید و کد PEACE رو بزنید

➡️link




#پایتون
📱 @Python4all_pro
  • 👍 12
  • ❤ 4
  • ❤‍🔥 2
  • 👾 2
  • 👨‍💻 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 →