Machine-learning model shows diamond melting at high pressure