Self-assembling of polygons via machine learning | Synapse