Hyperparameter tuning in Apache Spark