Latest Posts From Deeptendu Santra

Initializing Model Weights In PyTorch

How to initialize model weights in PyTorch

Knowing how to initialize model weights is an important topic in Deep Learning. The initial weights impact a lot of factors – the gradients, the output subspace, etc. In this article, we will learn about some of the most important and widely used weight initialization techniques and how to implement them using PyTorch. This article […]

GAN

Training your first GAN in PyTorch

GAN has been the talk of the town since its inception in 2014 by Goodfellow. In this tutorial, you’ll learn to train your first GAN in PyTorch. We also try to explain the inner working of GAN and walk through a simple implementation of GAN with PyTorch. Libraries to Import We first import the libraries […]

Understanding The Python Constructor The Init () Method

Understanding the __init__() method in Python

In this article, we discuss a concept of OOPs – The Python Constructor and how explain in detail how we can use __init__() method for initializing an object. What is a constructor? Before we go into the idea of constructor, here is a quick heads up on classes and objects in general: “In OOP, object […]

Duck Typing In Python

Duck Typing in Python

Duck typing is a variation of Dynamic Programming and uses a form of abductive reasoning for type checking. In this article, we will focus on the main intuition of duck typing and examples of ducking typing in python. What is Duck Typing in Python? – Abductive Reasoning The term duck arguably comes from the popular […]

Vectorize A Function In Python Using Numpy

Numpy Vectorization

In this article, we’ll learn Numpy Vectorization in Python. Numpy is a C implementation of arrays in Python that is comparatively faster while having the same Python interpreter. In this article, we explore how we can apply a function element-wise to a sequence using numpy.vectorize(). Why for loop isn’t best for Numpy Vectorization? To apply […]

Numpy Banner

Numpy broadcasting: A beginner’s guide

In this guide, we’ll talk about Numpy broadcasting from a beginner’s perspective. This guide assumes no prior knowledge of the topic so we’ll go right from the basics to help you get started. What is Numpy broadcasting? “The term broadcasting describes how numpy treats arrays with different shapes during arithmetic operations. Subject to certain constraints, […]