public class BinaryClassificationEvaluator extends Evaluator
| Constructor and Description |
|---|
BinaryClassificationEvaluator() |
BinaryClassificationEvaluator(java.lang.String uid) |
| Modifier and Type | Method and Description |
|---|---|
BinaryClassificationEvaluator |
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). |
Param<java.lang.String> |
metricName()
param for metric name in evaluation
Default: areaUnderROC
|
BinaryClassificationEvaluator |
setLabelCol(java.lang.String value) |
BinaryClassificationEvaluator |
setMetricName(java.lang.String value) |
BinaryClassificationEvaluator |
setRawPredictionCol(java.lang.String value) |
BinaryClassificationEvaluator |
setScoreCol(java.lang.String value)
Deprecated.
use
setRawPredictionCol() instead |
java.lang.String |
uid()
An immutable unique ID for the object and its derivatives.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn, validateParamstoStringpublic BinaryClassificationEvaluator(java.lang.String uid)
public BinaryClassificationEvaluator()
public java.lang.String uid()
Identifiablepublic Param<java.lang.String> metricName()
public java.lang.String getMetricName()
public BinaryClassificationEvaluator setMetricName(java.lang.String value)
public BinaryClassificationEvaluator setRawPredictionCol(java.lang.String value)
public BinaryClassificationEvaluator setScoreCol(java.lang.String value)
setRawPredictionCol() insteadvalue - (undocumented)public BinaryClassificationEvaluator setLabelCol(java.lang.String value)
public double evaluate(DataFrame dataset)
Evaluatorpublic boolean isLargerBetter()
Evaluatorevaluate() should be maximized (true, default)
or minimized (false).
A given evaluator may support multiple metrics which may be maximized or minimized.isLargerBetter in class Evaluatorpublic BinaryClassificationEvaluator copy(ParamMap extra)
Params