I will add a convenient method to `RegressionModel`, `ClassificationModel`, and `KMeans` for JavaRDDs in a separate PR.