changing training set to be read as coordinates from a file