Unlocking the secrets of chemical bonding with machine learning