That fact AI has a certain kind of creativity of its own has recently been proven by an algorithm, which generated a painting showing the fictitious nobleman "Edmond de Belamy" based on 15,000 portraits from the 14th to 20th century that were fed into the system. The Generative Adversarial Neural Networks (GANs) method was used for this purpose. It can be used to create images like that of Edmond de Belamy or photo-realistic images from hand-painted sketches.
The computer does this by having two artificial intelligences "play" against each other. First of all, both learn with real data - this can be structured data or, as in the example above, unstructured data such as artwork. In the second step, one AI tries to generate a new image (or a new data point), while the other one has to recognize whether it is a synthetic or an original image. The two parts of a GAN therefore train each other and the synthesized data becomes increasingly realistic.