Finding the best hyperparameters