Quantum computing and supervised machine learning: Training, model selection, and error estimation