An investigation of data privacy and utility using machine learning as a gauge