Here is a demo that illustrates how the AI works.
In this demo an AI learns to draw a line through all the points in a graph. For a given set of 20 plus points randomly placed on a canvas it learns to draw a line that cuts through it all.
In a strict mathematical sense - it is not the right way to explain this, however for the purpose of easier understanding we can get started this way.
Click somewhere on the canvas to add another point. As you do that you will see how the AI learns and draws a line that cuts through those points that you add. It may not succeed all the time. In most cases however it succeeds. Just wait a little and see. In some cases we may have to wait a minute or so before it starts adjusting the line.
Initially you may add the point that is kind of easier for the AI to guess. Like adding a point where the line is naturally glowing. Then you can give it a bit difficult options. Easier could be adding a point or clicking somewhere close to the line especially where it is not crowded.
Here it is..
This is designed using the deep neural net, a form of ML which is hugely popular thanks to the Google's deep mind which outsmarted the world champions of the GO game.
Okay, what is going on here ?
As I said under the hood explanation is different.
Behind this visual is a small program that does predictions. Based on given set of input points it predicts the line, the other points. It is like predicting stock price given a profit of the company like thing. If profit is 1 million, stock price is USD 20, when profit is 1.2 million 34 usd or whatever. Something of that kind.
Line that the AI draws is on a graph. Along the horizontal axis is variable X the input. X can take values like lets say, 1,2,3,4 etc and then along the vertical axis the Y value is computed as a function of X. So, this is like when x is 1, Y is 3 and when x is 5 Y 8 and so on.
Initially 20 such points of x and corresponding values of Y (which is on the vertical axis) is loaded. The AI approximates a function to explain those points.
Neural net trains on these 20 pints - Y as a label and x as input.
Then it predicts some lets say 1000 other values of Y for all the Xs along the horizontal line. These points are not thick red circles but tiny black ones and hence look like a line.
When you add a point there is a new data that the neural net trains itself on. For every tenth of second it loads all the points with the new point you added to learn and back propagates to adjust the weights. Every tenth of the second a new line is drawn, new 1000 predictions are made. This is like quantum view of the world and the real view of the world
Big deal you say. How is it different from the intelligent snake game or solitaire games the games that play against humans?
Its is bit tricky a thing to answer. They are intelligent no doubt. In those games, the programming paradigm is different. The intelligence there in Solitaire is fixed. It does not learn anything new. Where as in the line drawing AI, it learns to draw. It is dumb in the beginning. It just draws a random line initially. It learns to draw the line through the point over time. Just refresh the page and carefully watch as the graph loads. In few seconds it learns to draw the line. When you add a point again it learns. You can watch the AI adjusting the line slowly in some cases. This is a different paradigm of programming.
In this demo an AI learns to draw a line through all the points in a graph. For a given set of 20 plus points randomly placed on a canvas it learns to draw a line that cuts through it all.
In a strict mathematical sense - it is not the right way to explain this, however for the purpose of easier understanding we can get started this way.
Click somewhere on the canvas to add another point. As you do that you will see how the AI learns and draws a line that cuts through those points that you add. It may not succeed all the time. In most cases however it succeeds. Just wait a little and see. In some cases we may have to wait a minute or so before it starts adjusting the line.
Initially you may add the point that is kind of easier for the AI to guess. Like adding a point where the line is naturally glowing. Then you can give it a bit difficult options. Easier could be adding a point or clicking somewhere close to the line especially where it is not crowded.
Here it is..
This is designed using the deep neural net, a form of ML which is hugely popular thanks to the Google's deep mind which outsmarted the world champions of the GO game.
As I said under the hood explanation is different.
Behind this visual is a small program that does predictions. Based on given set of input points it predicts the line, the other points. It is like predicting stock price given a profit of the company like thing. If profit is 1 million, stock price is USD 20, when profit is 1.2 million 34 usd or whatever. Something of that kind.
Line that the AI draws is on a graph. Along the horizontal axis is variable X the input. X can take values like lets say, 1,2,3,4 etc and then along the vertical axis the Y value is computed as a function of X. So, this is like when x is 1, Y is 3 and when x is 5 Y 8 and so on.
Initially 20 such points of x and corresponding values of Y (which is on the vertical axis) is loaded. The AI approximates a function to explain those points.
Neural net trains on these 20 pints - Y as a label and x as input.
Then it predicts some lets say 1000 other values of Y for all the Xs along the horizontal line. These points are not thick red circles but tiny black ones and hence look like a line.
When you add a point there is a new data that the neural net trains itself on. For every tenth of second it loads all the points with the new point you added to learn and back propagates to adjust the weights. Every tenth of the second a new line is drawn, new 1000 predictions are made. This is like quantum view of the world and the real view of the world
Big deal you say. How is it different from the intelligent snake game or solitaire games the games that play against humans?
Its is bit tricky a thing to answer. They are intelligent no doubt. In those games, the programming paradigm is different. The intelligence there in Solitaire is fixed. It does not learn anything new. Where as in the line drawing AI, it learns to draw. It is dumb in the beginning. It just draws a random line initially. It learns to draw the line through the point over time. Just refresh the page and carefully watch as the graph loads. In few seconds it learns to draw the line. When you add a point again it learns. You can watch the AI adjusting the line slowly in some cases. This is a different paradigm of programming.