Skip to main content

Posts

Showing posts from November, 2015

Implement XOR in Tensorflow

XOR is considered as the 'Hello World' of Neural Networks. It seems like the best problem to try your first TensorFlow program. Tensorflow makes it easy to build a neural network with few tweaks. All you have to do is make a graph and you have a neural network that learns the XOR function. Why XOR? Well, XOR is the reason why backpropogation was invented in the first place. A single layer perceptron although quite successful in learning the AND and OR functions, can't learn XOR (Table 1) as it is just a linear classifier, and XOR is a linearly inseparable pattern (Figure 1). Thus the single layer perceptron goes into a panic mode while learning XOR – it can't just do that.  Deep Propogation algorithm comes for the rescue. It learns an XOR by adding two lines L1 and L2 (Figure 2). This post assumes you know how the backpropogation algorithm works. Following are the steps to implement the ne

Why Tensorflow

You have a lot of data which you want to make sense of, learn patterns, but you don't have the necessary expertice to develop algorithms that will learn through the data. Ofcourse you can develop your own machine learning algorithms to make sense of the data. There might be benifits in developing your own algorithms, proprietary being one, but you might have to invest time and money. What if you have access to ready made machine learning algorithms which you just have to use in your products? Google's Tensorflow offers such tried and tested algorithms using APIs that you just have to call in your programs. All you have to provide is data, and Tensorflow will take care of the intelligence to learn. Tensorflow adds the following capabilities to your products 1. Access to machine learning algorithms such as Neural Networks. 2. Increase performance of your models using multiple CPUs and GPUs without change in code. 3. Do numerical computations using data flow g

TensorFlow: A new generation of Google's Machine Learning Open Source Library

Although Machine Learning has dominated the Artificial Intelligence scene for long, easy access to open source machine learning libraries is recently made possible. With the launch of TensorFlow, Google has made it possible for corporates to add intelligence to make sense of data. TensorFlow adds to the list of other popular open source Machine Learning libraries like Theano and Torch. The uniqueness of TensorFlow is that it has the strong support of Google, which is one of the early pioneers in AI research. Google, using DistBelief, has delivered a lot of successful tools such as Computer Vision, Speech Recognition, Natural Language Processing, Information Extraction, Geographic Information Extraction, Computational Drug Discovery, Language Translation, etc. Tensorflow is Google's second generation machine learning system.   Teaching machines was never so easy. TensorFlow lets you use most of the machine learning algorithms that Google employees use to add intelligence