public class ComputeROCCurve extends Object implements Evaluator
-rocauc.positive
specifies the class label of
"positive" hits.
The nested algorithm -algorithm
will be run, the result will be
searched for an iterable or ordering result, which then is compared with the
clustering obtained via the given class label.Modifier and Type | Class and Description |
---|---|
static class |
ComputeROCCurve.Parameterizer
Parameterization class.
|
static class |
ComputeROCCurve.ROCResult
Result object for ROC curves.
|
Modifier and Type | Field and Description |
---|---|
(package private) static Logging |
logger
The logger.
|
static OptionID |
POSITIVE_CLASS_NAME_ID
The pattern to identify positive classes.
|
private Pattern |
positiveClassName
Stores the "positive" class.
|
static String |
ROCAUC_LABEL
The label we use for marking ROCAUC values.
|
Constructor and Description |
---|
ComputeROCCurve(Pattern positive_class_name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private ComputeROCCurve.ROCResult |
computeROCResult(int size,
SetDBIDs positiveids,
Iterator<DBID> iter) |
private ComputeROCCurve.ROCResult |
computeROCResult(int size,
SetDBIDs positiveids,
OutlierResult or) |
private Iterator<DBID> |
getDBIDIterator(IterableResult<?> ir)
Wrap the uncheckable cast with the manual check.
|
void |
processNewResult(HierarchicalResult baseResult,
Result result)
Process a result.
|
public static final String ROCAUC_LABEL
static final Logging logger
public static final OptionID POSITIVE_CLASS_NAME_ID
Key: -rocauc.positive
private Pattern positiveClassName
public ComputeROCCurve(Pattern positive_class_name)
positive_class_name
- Positive class name patternprivate ComputeROCCurve.ROCResult computeROCResult(int size, SetDBIDs positiveids, Iterator<DBID> iter)
private ComputeROCCurve.ROCResult computeROCResult(int size, SetDBIDs positiveids, OutlierResult or)
private Iterator<DBID> getDBIDIterator(IterableResult<?> ir)
ir
- Interable resultpublic void processNewResult(HierarchicalResult baseResult, Result result)
ResultProcessor
processNewResult
in interface ResultProcessor
baseResult
- The base of the result tree.result
- Newly added result subtree.