Machine learning in medicine: a practical introduction to techniques for data pre-processing, hyperparameter tuning, and model comparison