Dispersive qubit readout with machine learning