Supervised Learning: Logistic Regression

Introduction to Logistic Regression We will be learning about logistic regression as a method of Classification. Some examples of classification problems include disease diagnosis, spam vs non-spam emails, loan default (yes/no), and etc… The examples listed are all known as Binary Classification. We can’t use a normal linear regression model …

Seaborn – Exercises and Solutions

Data In [2]: import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline In [40]: sns.set_style(‘whitegrid’) In [15]: titanic = sns.load_dataset(‘titanic’) In [5]: titanic.head() Out[5]: survived pclass sex age sibsp parch fare embarked class who adult_male deck embark_town alive alone 0 0 3 male 22.0 1 0 7.2500 S Third man True NaN Southampton …

Python for Data Visualisation – Seaborn (Part 1)

Introduction to Seaborn Seaborn is a statistical plotting library that’s built on top of Matplotlib. It has beautiful default styles and it work very well with pandas dataframe objects. The documentation for Seaborn can be found here: http://seaborn.pydata.org/. 1. Distribution Plots In [2]: import seaborn as sns In [3]: %matplotlib inline In [4]: tips …

Python for Data Visualisation – Matplotlib

Introduction to Matplotlib Matplotlib is the most popular plotting library for Python. It is a great 2D and 3D graphics library for generating scientific figures in a variety of hardcopy formats and interactive environments. Matplotlib allows you to create reproducible figures programmatically. The official Matplotlib web page can be found here: …