Menu

Python

Train Test Split – How to split data into train and test for validating machine learning models?

The train-test split technique is a way of evaluating the performance of machine learning models. Whenever you build machine learning models, you will be training the model on a specific dataset (X and y). Once trained, you want to ensure the trained model is capable of performing well on the unseen test data as well. …

Train Test Split – How to split data into train and test for validating machine learning models? Read More »

Python

Decorators in Python – How to enhance functions without changing the code?

Decorators in python allow you to dynamically change the functionality of another function, without altering it’s code. What? Is that possible? Yes. This covers: 1. What is a decorator and how to create one? 2. Easier way to decorate functions 3. Class decorators 4. Problem with docstrings on decorated functions and how to solve. What …

Decorators in Python – How to enhance functions without changing the code? Read More »

Python

Generators in Python – How to lazily return values only when needed and save memory?

Generators in python provide an efficient way of generating numbers or objects as and when needed, without having to store all the values in memory beforehand. Introduction You can think of Generators as a simple way of creating iterators without having to create a class with __iter__() and __next__() methods. So how to create a …

Generators in Python – How to lazily return values only when needed and save memory? Read More »

Python

Object Oriented Programming (OOPS) in Python

Object oriented programming is an effective way of writing code. You create classes which are python objects, that represented meaningful entities which defines its own behaviour (via methods) and attributes. Let’s understand what a class is and the concepts behind Object Oriented Programming in Python Everything you have encountered so far in Python, such as …

Object Oriented Programming (OOPS) in Python Read More »

Numpy Feature Image

How to use Numpy Random Function in Python

How to use numpy.random.rand() function ? numpy.random.rand() function is used to generate random float values from an uniform distribution over [0,1). These values can be extracted as a single value or in arrays of any dimension. In this article, you will learn about various use cases of this function. Structural overview of numpy.random.rand() Syntax: numpy.random.rand(d0, …

How to use Numpy Random Function in Python Read More »

Partial Correlation

What is Partial Correlation and it’s purpose Partial correlation is used to find the correlation between two variables (typically a dependent and an independent variable) with the effect of other influencing variables being controlled. For example, if there are three variables ‘A’, ‘B’, ‘Z’, If you want to find the relationship between ‘A’ and ‘B’ …

Partial Correlation Read More »

Chi Squared Test

Chi-Square test – How to test statistical significance for categorical data?

What is chi-square test and its purpose? Chi-square test was invented in the year ‘1900’ by the revered mathematician ‘Karl Pearson’. Chi-square test, also written as χ2 test is used to determine whether there is a statistically significant difference between the observed frequency and the expected frequency in one or more categories of the contingency …

Chi-Square test – How to test statistical significance for categorical data? Read More »

Pandas Describe

How to use Pandas Describe function? The pandas.describe function is used to get a descriptive statistics summary of a given dataframe. This includes mean, count, std deviation, percentiles, and min-max values of all the features. On applying pandas describe function to a dataframe, the result is also returned as a dataframe . This dataframe will …

Pandas Describe Read More »

RegEx Replace values using Pandas

RegEx (Regular Expression) is a special sequence of characters used to form a search pattern using a specialized syntax While working on data manipulation, especially textual data, you need to manipulate specific string patterns. These may include retrieving hashtags from a tweet, extracting dates from a text, or removing website links. Pandas replace() function is …

RegEx Replace values using Pandas Read More »

Course Preview

Machine Learning A-Z™: Hands-On Python & R In Data Science

Free Sample Videos:

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science