Creating training and testing sets to evaluate parameters