Recent posts

Linear Regression Using Pytorch

4 minute read

Input Data We are given a small dataset. The inputs represent temperature, rainfall, humidity. And output is the yield of orange and apple.

Quora Question Pair Similarity

3 minute read

We have a function called get token features. It creates an empty array of zeros. Each question is split into tokens. If any of the question is null, then th...

Reshape Squeeze Unsqueeze

3 minute read

Reshape There are many ways to change the shape of tensor. One way to do that is by using a reshape function. Lets create a tensor of shape 4x3

Rank Shape Size Of Tensors

less than 1 minute read

Rank The rank of a tensor refers to the number of dimensions present within the tensor. A tensor’s rank tells us how many indexes are needed to refer to...

Basic Class In Python

less than 1 minute read

Here is a basic class in python. There are two functions in the class. One for setting value and other for getting value.