از نسخه 0.22 scikit-learn که سال 2020 منتشر شده بود، طبقه بندهای بر مبنای درخت تصمیم را میتوان prune یا هرس کرد.
البته قاعدتا استفاده از جنگل ها منطقی تره برای پاسخ دقیقتر، اما وقتی بحث سر تفسیر پذیری مدل هست ممکنه خیلی به کار بیاد:
https://scikit-learn.org/stable/auto_examples/tree/plot_cost_complexity_pruning.html#sphx-glr-auto-examples-tree-plot-cost-complexity-pruning-py
البته قاعدتا استفاده از جنگل ها منطقی تره برای پاسخ دقیقتر، اما وقتی بحث سر تفسیر پذیری مدل هست ممکنه خیلی به کار بیاد:
https://scikit-learn.org/stable/auto_examples/tree/plot_cost_complexity_pruning.html#sphx-glr-auto-examples-tree-plot-cost-complexity-pruning-py
scikit-learn
Post pruning decision trees with cost complexity pruning
The DecisionTreeClassifier provides parameters such as min_samples_leaf and max_depth to prevent a tree from overfiting. Cost complexity pruning provides another option to control the size of a tre...
حل مشکلات نوشتن فارسی روی تصویر در پایتون:
https://stackoverflow.com/questions/19861260/rendering-persian-farsi-words-in-pil-for-python/72161172#72161172
https://stackoverflow.com/questions/19861260/rendering-persian-farsi-words-in-pil-for-python/72161172#72161172
🔥2🤮1
Python_Labs🐍
مرتبط با https://t.iss.one/PyLab/556
اصلاحیه:
با pyscript با زبان پایتون کد سمت کلاینت میزنید،
تقریبا همه چی جز generatorها در پایتون هم ساپورت میشه...
https://betterdatascience.com/pyscript-intro/
با pyscript با زبان پایتون کد سمت کلاینت میزنید،
تقریبا همه چی جز generatorها در پایتون هم ساپورت میشه...
https://betterdatascience.com/pyscript-intro/
👍3
Python's fileinput module makes it easy to write CLI tools that operate on files or as a filter.
https://docs.python.org/3/library/fileinput.html
https://docs.python.org/3/library/fileinput.html
افزایش چشمگیر سرعت تابع فیبوناچی با decorator پایتون lru_cache :
زمان اجرای 32 ثانیه را به 0.18 ثانیه کاهش پیدا کرده است!
https://realpython.com/lru-cache-python/
زمان اجرای 32 ثانیه را به 0.18 ثانیه کاهش پیدا کرده است!
https://realpython.com/lru-cache-python/
👍6🔥1
Python is About to Become 64% Faster – Python 3.10 vs. Python 3.11 Benchmark
https://python--bloggers-com.cdn.ampproject.org/c/s/python-bloggers.com/2022/04/python-is-about-to-become-64-faster-python-3-10-vs-python-3-11-benchmark/amp/
https://python--bloggers-com.cdn.ampproject.org/c/s/python-bloggers.com/2022/04/python-is-about-to-become-64-faster-python-3-10-vs-python-3-11-benchmark/amp/
ورژن جدید scikit-learn دو روز پیش منتشر شد:
1.1.1 is out! Maintenance release that fixes a couple of regressions.
If you are using tree-based models, we corrected a computational performance regression introduced in 1.1.0.
https://scikit-learn.org/stable/auto_examples/release_highlights/plot_release_highlights_1_1_0.html
https://scikit-learn.org/dev/whats_new/v1.1.html#version-1-1-1
1.1.1 is out! Maintenance release that fixes a couple of regressions.
If you are using tree-based models, we corrected a computational performance regression introduced in 1.1.0.
https://scikit-learn.org/stable/auto_examples/release_highlights/plot_release_highlights_1_1_0.html
https://scikit-learn.org/dev/whats_new/v1.1.html#version-1-1-1
scikit-learn
Release Highlights for scikit-learn 1.1
We are pleased to announce the release of scikit-learn 1.1! Many bug fixes and improvements were added, as well as some new key features. We detail below a few of the major features of this release...
ابزار عالی جهت کار با سری های زمانی در پایتون.
https://unit8co.github.io/darts/index.html#
https://unit8co.github.io/darts/index.html#
🔥3
چند کتابخونه تو پایتون که شاید اسمونو نشنیده باشید!
1. Pendulum: Date/time
2. Cryptography: self-explanatory
3. Black: Formatter
4. Poetry: Dependencies
5. Bokeh: Web plotting
6. Bowler: Refactoring
7. Pytest: Testing
8. Hydra: Configuration
9. Click: CLI
1. Pendulum: Date/time
2. Cryptography: self-explanatory
3. Black: Formatter
4. Poetry: Dependencies
5. Bokeh: Web plotting
6. Bowler: Refactoring
7. Pytest: Testing
8. Hydra: Configuration
9. Click: CLI
🏆 A ranked list of awesome machine learning Python libraries. Updated weekly.
https://github.com/ml-tooling/best-of-ml-python
https://github.com/ml-tooling/best-of-ml-python
👍1
95 Data Science Projects You Can Try with Python
https://python.plainenglish.io/85-data-science-projects-c03c8750599e
https://python.plainenglish.io/85-data-science-projects-c03c8750599e
🔥1
فریم ورک fastapi پایتون، تعداد star هاش از فریم ورک spring پیشی گرفت! 😳😳
👍4