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

Which Language do you want to learn? Python is the most wanted language as per Stack Overflow 2020 survey https://www.youtube.com/watch?v=gurGhGPg-6s&t=2s Gradient Descent Algorithm From Scratch in Python https://www.youtube.com/watch?v=EN8u8KtYWtM&t=2s Linear Regression From Scratch in Python https://www.youtube.com/watch?v=npTAVSHkn_k&t=2s Decision Tree From Scratch In Python

# 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 … Continue reading Deep Learning by Ian Goodfellow, Yoshua Bengio and Aaron Courville

# 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, … Continue reading Difference between Variance and Covariance

# 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 … Continue reading Difference Between Batch, Mini-Batch and Stochastic Gradient Descent

# 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. # using transform function df_new = df[['COULUMN_1','COULUMN_2']] grp = df_new.groupby('COULUMN_2') sc = lambda x: (x) / x.sum() # sum the COULUMN_1 values in each group … Continue reading Pandas Groupby apply Function on each Group Item

# 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: import argparse # Command Line arguments argp = argparse.ArgumentParser() argp.add_argument('--my_var', dest="my_var", action="store", type=int, default=5) params = argp.parse_args() myvar= params.my_var print(myvar) Then … Continue reading How to write command-line arguments using argparse in python # 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 missing_total = df.isnull().sum().sum() Find number of missing data in each column in a data frame missing_per_column = df.isnull().sum() Investigate patterns in the amount of missing data in … Continue reading Handling missing data in pandas data frame python

# int object is not iterable Error

If your code is like below count = 100 for number in count: This will give you error like.. int object is not iterable. In Python, the thing you pass to a for statement needs to be some kind of iterable object. The variable count here is a number which is not iterable. You should … Continue reading int object is not iterable Error # Random Forest Classification in Python in 10 Lines

Random Forest algorithm is like an ensemble algorithm made of Decision Trees, which comprises more than one decision tree to create a model. It creates more than one tree like conditional control statements to create its model hence it is named as Random Forest. Random Forest machine learning algorithm can be used to solve both … Continue reading Random Forest Classification in Python in 10 Lines # Random Forest Regression in Python in 10 Lines

Random Forest algorithm is like Decision Tree, which comprises more than one decision tree to create a model. Random Forest algorithm is an ensemble method. It creates more than one tree like conditional control statements to create its model hence it is named as Random Forest. Random Forest machine learning algorithm can be used to … Continue reading Random Forest Regression in Python in 10 Lines