Top Articles

## Python is the most wanted language as per Stack Overflow 2020 survey

Which Language do you want to learn?

## Deep Learning by Ian Goodfellow, Yoshua Bengio and Aaron Courville

Great Book !! Well organised, Concise and Complete !!This book summarises the vast and complex topic of deep learning in a textbook, by some of the leaders in the field.What has been most valuable is, seeing how it all fits together.There are lots of books, blogs, and videos out there, but this is one of…

## Jupyter Notebook Edit mode and Command mode

There are two different working modes for the Jupyter Notebook.Therefore , the same keyboard key press has different effect, depending on which mode the notebook is in currently.There are two modes: Edit mode When in edit mode of jupyter notebook, you can type code and text. we can enter this mode, by pressing enter or…

## Difference between Variance and Covariance

Variance is the measure of, the spread between numbers, in a given data set. In other words, it means, how far each number in the data set is, from the mean of this data set. 2. Covariance is the measure of, the directional relationship between, two random variables. In other words, covariance measures, how much,…

## Difference Between Batch, Mini-Batch and Stochastic Gradient Descent

Gradient Descent is one the key algorithm used in Machine Learning. While training machine learning model, we require an algorithm to minimize the value of loss function. Gradient Descent is one of the optimization algorithm , that is used to minimize the loss. There are mainly three types of Gradient Descent algorithm1. Batch Gradient DescentBatch…

## Pandas Groupby apply Function on each Group Item

Here we are trying to write a solution for Group by COULUMN_2 Sum the COULUMN_1 values in each group and divide each COULUMN_1 values by Sum of it’s group total. After that we need to do df[‘COULUMN_1’] = df_new[‘COULUMN_2’] Where for example column 1 is RANK and column 2 is Id Thanks

## How to write command-line arguments using argparse in python

If you want to run a .py python file from command line and you also want to pass the argument using command line you can use argparse library. This can be done as below: Then you cal run this py file on command line as below python predict.py –my_var 7 Thanks

## Decision Tree vs Linear Regression

Decision Tree can be used for implementing regression as well as classification models, however , Linear Regression can be used for regression problem only. Decision tree can be used for regression, even when there is non linear relationships between the features and the output variable. However, Linear Regression works really nicely when there is linear relationship…

## Handling missing data in pandas data frame python

In this post we are going to discuss how to handle missing data from a pandas data frame. Find total number of missing data in the data frame Find number of missing data in each column in a data frame Investigate patterns in the amount of missing data in each column. Percentage of missing data…

## Using torchvision transforms for data augmentation

Transforms are common image transformations. torchvision transforms are used to augment the data with scaling, rotations, mirroring, cropping etc. Transforms are common image transformations.  Let us create some possible transforms like RandomRotation , Resize, RandomResizedCrop etc. Below is the code to use transforms for the training, validation, and testing sets transforms.Compose([transforms.Resize(224),transforms.CenterCrop(64),transforms.ToTensor()]) Most neural networks expect the…