Jan 5, 2020

Setup Deep Learning environment: TensorFlow, Jupyter Notebook and Visual Studio Code

Few days back, I decided to setup development environment for deep learning on my Windows 10 laptop. In this article, I would share my experience in setting up a system typically for Data Science developers. Although I used Windows 10 but the steps will be same for Linux and Mac OS.

Being a developer, need IDE for coding and not fan of browser based editor. Jupyter Notebook is favourite tool for data scientist and we can’t skip that in case of data science. Fortunately, VS Code supports Jupyter notebook. You can now directly edit .ipynb files and get the interactivity of Jupyter notebooks with all of the power of VS Code. We will go through it.

Jan 5, 2020

Python: Data Visualization With MatPlotLib

This article explains how to perform different types of data visualizations in Python using Matplotlib – a Python 2D plotting library. Instead of covering features of the library, we will see the practical scenarios of data visualizations used in machine learning/deep learning. We will import pyplot function that allows us to interface with a MATLAB-like plotting environment.

To install Matplotlib, run following command in Python environment:

pip install matplotlib

I am using Python 3.7.6, Matplotlib 3.1.2 and Windows 10 environment for this article.

Jan 5, 2020

Python: Ternary Conditional Operator

For a developer, Ternary operator is one of favorite thing to make the code compact and easily readable. This article explains different ways to implement Ternary operations.

In other languages like Javascript, ?: symbols are used for ternary operations.

<condition> ? <expression_on_true> : <expression_on_false>

Python 2.5+ added following syntax:

<expression_on_true> if <condition> else <expression_on_false>

expression_on_true will be evaluated if the condition is true, otherwise expression_on_false will be evaluated.