Python_Labs🐍
591 subscribers
267 photos
11 videos
28 files
204 links
Download Telegram
اینم یه نوع کد زدنه!
Oh my god😔
Forwarded from Tensorflow(@CVision) (Alireza Akhavan)
#توئیت قابل تامل دکتر رضازداه، استاد ایرانی دانشگاه استنفورد.
اولین ریتوئیت که در عکس مشخص است هم بخوانید.

https://twitter.com/Reza_Zadeh/status/1098085978189647872
Forwarded from Tensorflow(@CVision) (Alireza Akhavan)
توئیت Andrej Karpathy، خطاب به توسعه دهندگان زبان پایتون،
اگر ارور معنی دار تری برگردونید وقت کمتری برای اروریابی برنامه نویسها صرف میشه.

https://twitter.com/karpathy/status/1099793055853375489

این مثالی که در توئیت زده فکر کنم همه باهاش مواجه شدند :)
#خبر

#python 3.8 news: The second alpha release out today. Please try it out. One major feature that we've needed for a long time is shared memory for multiprocessing. Our story for multi-core just got a lot better ;-) Thank you Davin Potts!

https://www.python.org/downloads/release/python-380a2/
در اینجا دیدیم Andrej Karpathy در توئیتی به اروری که به اندازه کافی مشخص نبود اعتراض کرده بود، حالا توئیت کرده که پیام معنی دار را خودش اضافه کرده و رفته به گیت هاب numpy درخواست pull بده، اما 9 ساعت قبلش یکی دیگه هم دقیقا همین اصلاحو انجام داده و فرستاده :)


MAINT: Better error messages for zeros, ones, empty.
https://github.com/numpy/numpy/pull/13048
https://twitter.com/xamat/status/1101026768666812417

طرف این جور گفته: هر از گاهی با یک آدم خبره مصاحبه می‌کنم که می‌گه پایتون بده چون مقیاس‌پذیر نیست. بعد ازش می‌پرسم فکر می‌کنی چه‌طوری یکی از ۵۰ سایت پیچیده مثل کورا رو فقط با پایتون درست کردیم؟ اینجاست که معمولاً جواب درست درمونی نمی‌گیرم.
11 Facts about data science in office work
#آموزش #مسیر_فایل
یکی از تفاوت هایی که در برنامه نویسی تو لینوکس و ویندوز باید حواسمون باشه اینه که تو ویندوز از بک اسلش برای مسیردهی میان نام پوشه ها به عنوان جداکننده استفاده میشه در حالی که تقریبا تمام سیستم عامل‌های دیگر از یک اسلش‌جلو استفاده می کنند. در این بلاگ پست نکاتی کوچک کار با مسیر فایل و راه حل برای اینکه مسیر ها تو سیستم عامل های مختلف کار کنه و کدتون نیاز به تغییر نداشته باشه را نوشته...
Python 3 Quick Tip: The easy way to deal with file paths on Windows, Mac and Linux

Windows filenames:
C:\some_folder\some_file.txt

Most other operating systems:
/some_folder/some_file.txt

https://medium.com/@ageitgey/python-3-quick-tip-the-easy-way-to-deal-with-file-paths-on-windows-mac-and-linux-11a072b58d5f
#هیستوگرام #سرعت
در پیاده سازی یک پروژه، سرعت محاسبه هیستوگرام، به عنوان بخشی از سنجش کیفیت تصویر برایم مهم بود، و بنچ مارک روش های مختلف را گرفتم...

در تصویر بالا با magic method نوت بوکی timeit بنچ مارک سه روش مختلف محاسبه هیستوگرام مشاهده می شود. همان طور که مشخصه ورژن پیاده سازی شده با opencv حدود 40 برابر سریعتر ورژن هیستوگرام نامپای است.

https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_histograms/py_histogram_begins/py_histogram_begins.html
#تحلیل #سرعت
تحلیل سرعت خط به خط کد یا توابع با line_profiler در پایتون.
در متد بالا کند ترین خط کد کدام بوده!؟

https://github.com/rkern/line_profiler

#line_profiler
Forwarded from AI, Python, Cognitive Neuroscience (Farzad🦅🐋🐕🦏🐻)
💡 What is a p-value?

When testing an hypothesis, the p-value is the likelihood that we would observe results at least as extreme as our result due purely to random chance if the null hypothesis were true.

💡 What does it mean when a p-value is low?

When the p-value is low, it is relatively rare for the our results to be purely from random variations in observations.

Because of this, we may decide to reject the null hypothesis. If the p-value is below some pre-defined threshold, we say that the result is "statistically significant" and we reject the null hypothesis.

💡 What value is most often used to determine statistical significance?

A value of alpha = 0.05 is most often used as the threshold for statistical significance.

#datascience #statistics

✴️ @AI_Python_EN
#pytrick
استفاده از contextlib برای نادیده گرفته شدن exception ها در کد!

import contextlib

with contextlib.suppress(FileNotFoundError):
os.remove('somefile.tmp')


#contextlib
#exception
Forwarded from Programming Resources via @like
Test your regex skills via exams with different levels.
مهارت‌های نوشتن عبارات باقاعده خود را با امتحان‌های این سایت بهتر کنید

#regex #tutorial #exam #practice #regular #expression
@pythony

https://play.inginf.units.it
Forwarded from Programming Resources via @like
Talk Python To Me podcast
یک سایت پر از پادکست‌های مرتبط با زبان پایتون

#python #podcast #free #course
@pythony

talkpython.fm
انجمن علمی دانشکده کامپیوتر برگزار میکند:
دوره آموزشی طراحی وب سمت سرور (Backend)

📚مدرس : میثم ولوئیان
🗓 تاریخ : از ۲۰ فروردین تا ۱۷ اردیبهشت
زمان : سه شنبه ها از ساعت ۱۶ الی ۱۹
🏢 مکان : دانشگاه شهید رجایی

برای اطلاعات بیشتر و ثبت نام به لینک زیر مراجعه شود
https://evand.com/events/sru-backend-development
ظرفیت محدود
💰ثبت نام به صورت نقدی همراه با تخفیف در محل دفتر انجمن علمی نیز انجام میشود💰

برای اطلاعات بیش تر درباره نحوه و زمان پرداخت حضوری به آیدی @mahdigh99 مراجعه شود

#طراحیـوب #دوره_آموزشی #انجمن_علمی_دانشکده_کامپیوتر #دانشگاه_شهید_رجایی
Tuples are faster than lists.(more)
Tuples can be used as values in sets whereas lists can not (more)