The design of an inkjet drive waveform using machine learning