public class MulticlassClassificationEvaluator extends Evaluator
Constructor and Description |
---|
MulticlassClassificationEvaluator() |
MulticlassClassificationEvaluator(java.lang.String uid) |
Modifier and Type | Method and Description |
---|---|
MulticlassClassificationEvaluator |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
double |
evaluate(DataFrame dataset)
Evaluates the output.
|
java.lang.String |
getMetricName() |
boolean |
isLargerBetter()
Indicates whether the metric returned by
evaluate() should be maximized (true, default)
or minimized (false). |
static MulticlassClassificationEvaluator |
load(java.lang.String path) |
Param<java.lang.String> |
metricName()
param for metric name in evaluation (supports
"f1" (default), "precision" , "recall" ,
"weightedPrecision" , "weightedRecall" ) |
MulticlassClassificationEvaluator |
setLabelCol(java.lang.String value) |
MulticlassClassificationEvaluator |
setMetricName(java.lang.String value) |
MulticlassClassificationEvaluator |
setPredictionCol(java.lang.String value) |
java.lang.String |
uid()
An immutable unique ID for the object and its derivatives.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn, validateParams
toString
public MulticlassClassificationEvaluator(java.lang.String uid)
public MulticlassClassificationEvaluator()
public static MulticlassClassificationEvaluator load(java.lang.String path)
public java.lang.String uid()
Identifiable
public Param<java.lang.String> metricName()
"f1"
(default), "precision"
, "recall"
,
"weightedPrecision"
, "weightedRecall"
)public java.lang.String getMetricName()
public MulticlassClassificationEvaluator setMetricName(java.lang.String value)
public MulticlassClassificationEvaluator setPredictionCol(java.lang.String value)
public MulticlassClassificationEvaluator setLabelCol(java.lang.String value)
public double evaluate(DataFrame dataset)
Evaluator
public boolean isLargerBetter()
Evaluator
evaluate()
should be maximized (true, default)
or minimized (false).
A given evaluator may support multiple metrics which may be maximized or minimized.isLargerBetter
in class Evaluator
public MulticlassClassificationEvaluator copy(ParamMap extra)
Params