Image Classification Using Modern MLP Models in Keras

Classification Using Attention-Based Deep Multiple Instance Learning (MIL) in Keras

Recently, I was working on a computer vision project where I had to classify hundreds of product images like electronics, clothing, and groceries. While convolutional neural networks (CNNs) are the usual choice, I wanted to explore something different, modern MLP (Multi-Layer Perceptron) models that have been making waves in deep learning research. In this Python … Read more >>

Image Classification with Vision Transformer in Keras

Image Classification with Vision Transformer in Keras

I was working on a Python project where I needed to classify thousands of images quickly and accurately. At first, I tried using a traditional Convolutional Neural Network (CNN), but the accuracy plateaued after a point. That’s when I decided to explore Vision Transformer (ViT), a model that adapts the Transformer architecture (originally used for … Read more >>

Build MNIST Convolutional Neural Network in Python Keras

MNIST Convolutional Neural Network

Recently, while mentoring a group of data science students, I was asked how to quickly build a Convolutional Neural Network (CNN) in Python Keras to classify handwritten digits using the MNIST dataset. I realized that although the MNIST dataset is one of the most common starting points for deep learning, many beginners still find it … Read more >>

Keras Image Classification: Fine-Tuning EfficientNet

Keras Image Classification

I worked on a Python project where I needed to classify thousands of product images for an e-commerce client based in the USA. The challenge was to achieve high accuracy without spending days training a deep learning model from scratch. After trying several pre-trained models, I found that EfficientNet gave me the best balance between … Read more >>

How to Create a Python Dictionary with Multiple Values Per Key?

dictionary multiple values per key

Recently, I was working on a project where I had to store multiple pieces of data for each customer, their city, orders, and loyalty points, all in one place. The challenge was simple: how do I store multiple values for a single key in a Python dictionary? If you’ve ever tried to assign multiple values … Read more >>

How to Extend a Dictionary in Python

Python Extend Dictionary Using update() Method

Recently, I was working on a Python project where I had to merge multiple data sources into a single dictionary. The challenge was to extend an existing dictionary with new key-value pairs efficiently without losing any data. If you’ve ever worked with large datasets in Python, you know how important it is to manage dictionaries … Read more >>

How to Sum Elements in a List in Python

Sum Elements in a List in Python Using reduce() Method

While working on a data analytics project for a U.S.-based retail client, I needed to calculate the total daily sales from a list of transactions. Each value represented the sales amount for a day, stored neatly in a Python list. At first, I thought of using the built-in sum() function, but then I realized there … Read more >>

How to Filter a Dictionary in Python

python filter dictionary

I was working on a data-cleaning project where I needed to filter a large Python dictionary based on specific conditions. The challenge was simple: I had a dictionary with hundreds of key-value pairs, but I only needed a subset that met certain criteria. If you’ve ever worked with Python dictionaries, you know how powerful and … Read more >>

Emotion Classification using CNN in Python with Keras

Emotion Classification using CNN in Python with Keras

Working on a Python project where I needed to classify human emotions from facial expressions. The goal was simple, build a deep learning model that could recognize emotions like happiness, sadness, anger, and surprise from images. The challenge, however, was figuring out the best way to do this efficiently using Python. After some trial and … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.