Image by Lubos Houska from Pixabay

There was one news spreading all over the internet, “Sanitizers Don’t Help Against Coronavirus”. This news was shared on social media with a reasoning that because coronavirus is a virus and anti-bacterial hand sanitizer won’t do anything. According to, the rumor started on Twitter when a self-identified “scientist” posted their theory on March 1, 2020. However, according to the CDC, using a hand sanitizer that contains at least 60 percent alcohol is a suitable substitute if there is no soap and water available.

There was another story going around, “The federal government has mandated that workplaces close for two…

Image by Ahmed Gad from Pixabay

In this notebook, we will see how to implement an Artificial Neural Network using Tensorflow 2.0. We will be using Fashion MNIST dataset directly importing it from Tensorflow datasets

Importing libraries

import numpy as np
import datetime
import tensorflow as tf
from tensorflow.keras.datasets import fashion_mnist

Data preprocessing

Loading the dataset

(X_train, y_train),(X_test, y_test)=fashion_mnist.load_data()Downloading data from 32768/29515 [=================================] - 0s 3us/step Downloading data from 26427392/26421880 [==============================] - 12s 0us/step Downloading data from 8192/5148 [===============================================] - 0s 0us/step Downloading data from 4423680/4422102 [==============================] - 2s 0us/step

Image by Markus Winkler from Pixabay

In this notebook we see the basics of Tensorflow 2.0. The latest tensorflow version during the time of this notebook prep was 2.4.0. To install tensorflow or tensorflow-gpu on your system, please follow this link

import tensorflow as tf


We define a simple constant using tf.constant() function

# Defning a constant

tensor=tf.constant([[2,4], [5,6]])
tensor<tf.Tensor: shape=(2, 2), dtype=int32, numpy=
array([[2, 4],
[5, 6]], dtype=int32)>

We can also retrieve the value from tensor constant. The idea is to extract the value using numpy() function

# Getting value of constant

array([[2, 4],
[5, 6]], dtype=int32)

We can also convert…

Photo by Gordon Johnson on Pixabay

Linear Regression

Linear regression attempts to model the connection between two variables by fitting a linear equation to the observed data. One variable is taken into account as an explanatory variable, while the opposite is taken into account to be a dependent variable. Let us consider two variables X and Y and that we want to relate the Y to X employing a rectilinear regression model.


Before even trying any linear model, one should first find out if there is a relationship between the variables. One can use the scatter plot in determining such a relationship. …

Abhishek Koirala

Lead NLP Product Engineer at Pvt. Ltd. Interested in machine learning research

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store