Category «Machine Learning»

Recommendation System

Humans need recommendation since childhood, he needs to know what is good for him, like where and how he spends his holidays, which food is good for him, what subjects are best for him, what are best colleges, etc.. In terms of implementation we can divide it into two categories: Memory-based: Use Statistical tool like …

Clustering

There are billions of stars in the galaxy and we are in the way of finding new constellations but how can we find them as there are no labels, well clustering is the solution. In order to solve unsupervised problems in machine learning, we use clustering algorithms. We can classify clustering as : Partitioned-based clustering …

PCA Principal Component Analysis

Principal component analysis (PCA) is used as a dimensionality reduction technique. When we have a lot of dimension in data it’s difficult to find the dimensions which are responsible for the results. Let us consider a scenario in which you have an army of 10,000 soldiers. How can we determine that the army will win …

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 …