Category «Tensorflow»

KNN: K-Nearest Neighbour

This is the story of a person found at JORDAN border, the country is surrounded by 5 neighbors, so how can we find the person belong to which country. KNN plays a vital role here, KNN is a algorithm which stores the whole model, i.e. it will never make any function. It will check the …

Tensorflow: Basics -I

Let us start with some basics of addition and multiplication program and represent them in a tensorboard. import tensorflow as tfx=tf.constant(1,name=’x’)m=tf.constant(2,name=’y’)z=tf.constant(3,name=’z’)prod=tf.multiply(x,m,name=’multiply’)add=tf.add(prod,z,name=’add’)with tf.Session() as sess: writer=tf.summary.FileWriter(logdir=’./graph’,graph=sess.graph) print(sess.run(add))Output is :5 Now, if we want to check the graph, we have to run following command in Linux(Note: I have used Kali linux), read different types of tensor in …

Data Analysis-101(WNS)

This analysis is for finding a click event of the user, the details are as : Zbay is an E-commerce website which sells a variety of products at its online platform. Zbay records user behaviour of its customers and stores it as a log. However, most of the times, users do not buy the products …

NetworkX

One of the powerful library used for graph building activities is NetworkX. It is widely used in solving graph problems and network related queries. Lets have a look into NetworkX now. In order to use it with python import it, import networkx as nx The following basic graph types are provided as Python classes: Graph This class …

Word Encoding and Embedding Algorithms

When we start communicating with a machine there is only one issue machine never understand different categories by name. If we tell a machine the colour of a balloon is red it will not understand  ‘Red’ rather than it will keep it as 255,0,0 0r 1,0,0 it means it encodes it in its own mother …

CNN-Convolution Neural Network

When we enter into the world of computer vision we have to understand how a computer understands an image. A colored image has three channels and a 2D data in each channel. When the image size increases Machine learning start suffering from the curse of dimensionality, in order to overcome from this Deep learning comes up …