Half a beer

"Is the glass half empty or half full?" is a common expression, a proverbial phrase, generally used rhetorically to indicate that a particular situation could be a cause for optimism (half full) or pessimism (half empty), or as a general litmus test to simply determine an individual's worldview.

The beer glass is an excellent example: building an opinion about whether a glass is empty or full, one person estimates only the amount of beer in the glass, the other also pays attention to the amount of foam or has his own criteria.

This example is an attempt to teach an artificial neural network to recognize whether a beer glass is half empty or half full by examining your opinion.

Look at the beer glass and try to answer which kind of glasses do you see. Answering the questions, you teach the neural network to predict the answer depending on the amount of beer and foam in the glass. After some time the network will try to make a prediction and the proper button will be highlighted.

Check how the neural network will clone your worldview. (:

Created using synaptic.js, Semantic UI, TweenMax and PixiJS by sta-ger.

Source code