Imitation and Supervised Learning of Compliance for Robotic Assembly