TensorFlow Variables

tf variable tensorflow

Recently, I was working on a deep learning project where I needed to build a model that could predict housing prices in the US market. One of the fundamental concepts I had to master was how to properly use TensorFlow variables. The issue is, many tutorials don’t properly explain when and how to use variables … Read more >>

TensorFlow Convert String to Int

tensor to int

Working with TensorFlow often requires converting data between different types, and one of the most common conversions is from string to integer. I’ve encountered this need countless times in my decade of Python development experience. In real-world machine learning projects, data rarely comes in the perfect format. Sometimes you’ll get text data that needs to … Read more >>

TensorFlow Fully Connected Layer

fully connected layer tensorflow

Recently, I was working on a deep learning project that involved analyzing customer data, where I needed to implement neural networks. One of the fundamental building blocks I used was the fully connected layer in TensorFlow. If you’re building neural networks with TensorFlow, you’ll inevitably work with fully connected layers (also called dense layers). These … Read more >>

Batch Normalization in TensorFlow

tensorflow batch normalization

Recently, I was working on a deep learning project where my model was taking forever to train, and the accuracy was all over the place. The issue was, I wasn’t using batch normalization. Once I implemented it correctly, my training time decreased by 40%, and the model became much more stable. In this guide, I’ll … Read more >>

Binary Cross Entropy in TensorFlow

binary cross entropy tensorflow

While working on a machine learning project, I needed to train a neural network for binary classification. The crucial decision was selecting the right loss function, and Binary Cross Entropy (BCE) emerged as the perfect choice. In this article, I’ll cover everything you need to know about implementing and optimizing Binary Cross Entropy in TensorFlow, … Read more >>

Matplotlib Plot a Line

matplotlib line plot

As a developer working on a data visualization project, I needed to create clear and informative line plots to present some trend analysis. As I’ve discovered over my years working with Python, Matplotlib is incredibly useful, yet sometimes the basics can trip us up. In this article, I’ll walk through several approaches to plot lines … Read more >>

Update Column Values in Python Pandas DataFrame

update value in dataframe

As a developer working with data in Python, I often need to modify values in a DataFrame column. Whether it’s correcting errors, applying transformations, or updating based on conditions, knowing how to update column values efficiently is an essential skill for any data professional. In this tutorial, I’ll walk you through various methods to update … Read more >>

Change an Integer to a Datetime Object in Python

python convert int to datetime

While I was working on a data analysis project where I needed to convert Unix timestamps (stored as integers) to readable datetime objects. The challenge was that these integers represented time in different formats, some were Unix timestamps in seconds, others in milliseconds, and some were just date representations like 20231105 for November 5, 2023. … Read more >>

How To Convert A DataFrame To JSON Array In Python

dataframe to json

When working with data in Python, I often need to convert DataFrames to JSON arrays for web applications, API integration, or data interchange. Converting Pandas DataFrames to JSON format is a common requirement that I encounter regularly in my projects. In this tutorial, I will show you multiple methods to convert a DataFrame to a … Read more >>

Convert a DataFrame to JSON in Python (6 Methods)

dataframe to json

Recently, I was working on a data processing project where I needed to send pandas DataFrame data to a web API. The issue is, I had to convert my DataFrame to JSON format first. This is a common requirement when working with APIs, building web applications, or simply storing data in a universally readable format. … 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.