Machine learning in practice: how machine learning works in data-driven research