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). |
static BinaryClassificationEvaluator |
load(java.lang.String path) |
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, 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 BinaryClassificationEvaluator(java.lang.String uid)
public BinaryClassificationEvaluator()
public static BinaryClassificationEvaluator load(java.lang.String path)
public java.lang.String uid()
Identifiable
public 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)
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 BinaryClassificationEvaluator copy(ParamMap extra)
Params