training and set euclidian calculation