Error mitigation for quantum kernel based machine learning methods on IonQ and IBM quantum computers