srowen commented on a change in pull request #24868: [SPARK-28044][ML][PYTHON]
MulticlassClassificationEvaluator support more metrics
URL: https://github.com/apache/spark/pull/24868#discussion_r294835422
##########
File path:
mllib/src/main/scala/org/apache/spark/ml/evaluation/MultilabelClassificationEvaluator.scala
##########
@@ -63,18 +63,18 @@ class MultilabelClassificationEvaluator (override val uid:
String)
setDefault(metricName -> "f1Measure")
- final val metricClass: DoubleParam = new DoubleParam(this, "metricClass",
+ final val metricLabel: DoubleParam = new DoubleParam(this, "metricLabel",
"The class whose metric will be computed in
precisionByLabel|recallByLabel|" +
"f1MeasureByLabel. Must be >= 0. The default value is 0.",
ParamValidators.gtEq(0.0))
/** @group getParam */
- def getMetricClass: Double = $(metricClass)
+ def getMetricLabel: Double = $(metricLabel)
Review comment:
Yes, not a breaking change if this wasn't in 2.x
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]