Python Decorator Pattern

Python Decorator Pattern

Diversify your Python functions by decorating them

235 words/2 min read
Sometimes we need to modify or change the behaviour of a function in a loosely coupled manner. Learn how to do this in this 10-minute video.
Python Factory Pattern

Python Factory Pattern

Find out why this 'anti-pattern' is useful

352 words/2 min read
Experiment with this pattern in a Pythonic way. Use the example code.

Regressor as Classifier

... it works better than you think.

596 words/3 min read

A classifier predicts a categorical target variable while a regressor predicts a continuous response variable. Can we fit a regressor as a classifier? Let’s find out.

Are Outliers Always a Problem?

no...sometimes we need to treat them with respect

436 words/3 min read
Outliers are mostly seen as not needed. We will see an example where this is not true.

Calibrate Your Classifier

you might wonder how you were doing without it all along

705 words/4 min read
Would you buy oranges weighed on an uncalibrated weighing scale? Then why would you trust an uncalibrated classifier?

Longest Common Subsequence

...with an unconventional approach

1062 words/5 min read
This is a three way LCS solution using a ‘sparse’ data structure and an intuitive conceptual model to aid your understanding.

Roc Curve Step by Step

...with precision-recall curve thrown in

1062 words/5 min read
The ROC curve is an important metric to compare classifiers. Learn how to draw one step-by-step.
Linear Regression From Scratch

Linear Regression From Scratch

Don't just tow the line, move it!

1597 words/8 min read

Imagine you are buying a car and you want to know about its mileage. You don’t want to go for the user reviews or the company’s claim of mileage. The option you are left with is to predict the mileage all by yourself. So, if you are an interested data scientist, why not give it a try?

Mergesort Cutaway

1431 words/7 min read

Sorting an array can be done in different ways. It ranges from the simpler bubble sort to more complicated ones such as the merge sort.