Github user mengxr commented on a diff in the pull request: https://github.com/apache/spark/pull/8290#discussion_r37424665 --- Diff: mllib/src/main/scala/org/apache/spark/ml/evaluation/Evaluator.scala --- @@ -46,5 +46,12 @@ abstract class Evaluator extends Params { */ def evaluate(dataset: DataFrame): Double + /** + * Indicates whether the metric returned by [[evaluate()]] should be maximized (true) + * or minimized (false). + * A given evaluator may support multiple metrics which may be maximized or minimized. + */ + def shouldMaximize: Boolean --- End diff -- * `Evaluator` reports the metrics but not maximizes them. I would suggest `isLargerBetter` instead. * This is a break change if we don't put a default value. I would suggest a default value `true` to keep it consistent with implementations in Spark 1.4.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org