Skip to content

Python · Machine Learning

From the kitchen

Quality, author-led articles on Python & machine learning. Learn how to eat through topics, calmly, deeply, and without the noise.

145 articles Community authors Always free

More from the kitchen

Fresh articles, served often.

web development

An Advanced Flask App: Shopyo

Shopyo is an Ope…

Abdur-Rahmaan Janhangeer

Chef

gui development

Pyside2 / PyQt5 Extract Data From QFormLayout

import sys from PySide2 import QtCore from PySide2 import QtWidgets from PySide2 import QtGui class MainWindow(QtWidgets.QMainWindow): def __init__(self, par…

Abdur-Rahmaan Janhangeer

Chef

education

Free Python Courses List

Here is a list of Python free courses that i maintain An Introduction to Interactive Programming in Python (Part 1) …

Abdur-Rahmaan Janhangeer

Chef

devops

Upload your package to Pypi

To upload your project to Pypi, this assumes you have your setup.py ready cd into your package directory and type python setup.py sdist …

Abdur-Rahmaan Janhangeer

Chef

gui development

Packaging An Sqlite db-included CRUD PyQt5 app using PyInstaller

The Python programmer’s journey inevitably leads him to one of the black belts of the industry: packaging and distribution. But, particularly in Python, distribution can also be a black beast. We’v…

Abdur-Rahmaan Janhangeer

Chef

software engineering

What's New in Python 3.9 alpha2?

Python is set to release a new version next year, the shiny 3.9. This one omitted the sys.argv change rolled back in alpha2 Here’s our take of the most noticeable changes: Keyword Arguments…

Abdur-Rahmaan Janhangeer

Chef

gui development

PyQt5 / PySide2 QTableView how to find out if row is selected and which one in Python?

Question: I have a QTableView in PyQT5 / PySide2 I want to * Know if a row is selected (my tableview is set to select by rows) * Know which row is selected Thanks Answer: …

Abdur-Rahmaan Janhangeer

Chef

software engineering

Get Python's help() function stored as string just like console

Python’s help function lets you see the help message written for you by the developer. It is particularly useful in IDLE / shell to inspect modules and explore. Here is a sample shell demo…

Abdur-Rahmaan Janhangeer

Chef

software engineering

String Manipulation Functions: The Top 5 You Forgot To Pack

String manipulation functions, good ones are available by default in Python. Ignorance make people always re-invent. Python is powerful and … thoughtful. We were strict and choose only 5, the five …

Abdur-Rahmaan Janhangeer

Chef

programming languages

DSL / Python / New Language: How to build a CSS pre-processor (like SASS) from scratch (DotDot)

If you are in web development, maybe you’ve heard of Sass, Less, Pug, …

Abdur-Rahmaan Janhangeer

Chef

machine learning

Machine Learning Part 7: Random Forests Explained

While Decision Trees are easy to understand, they have a major weakness: they tend to overfit the data. In this post, we’ll see how Random Forests solve this probl…

Abdur-Rahmaan Janhangeer

Chef

machine learning

Machine Learning Part 6: Entropy and Information Gain

In the previous post, we saw how Decision Trees split data based on “purity.” But how do we measure this purity mathematically? This is where Entropy and Information Gain…

Abdur-Rahmaan Janhangeer

Chef