The old API of MlLib has evaluation metric class: https://spark.apache.org/docs/latest/mllib-evaluation-metrics.html However, the new dataframe API does NOT have such a class: https://spark.apache.org/docs/latest/ml-guide.html
It has the Evaluator class but it is limited.
How can I evaluate a model in the new API using the metric class of the old one?