|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<O,MultiResult>
de.lmu.ifi.dbs.elki.evaluation.roc.ComputeROCCurve<O>
O - Database object typepublic class ComputeROCCurve<O extends DatabaseObject>
Compute a ROC curve to evaluate a ranking algorithm and compute the
corresponding ROCAUC value.
The parameter -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.
| Field Summary | |
|---|---|
private Algorithm<O,Result> |
algorithm
Holds the algorithm to run. |
private ObjectParameter<Algorithm<O,Result>> |
ALGORITHM_PARAM
Parameter to specify the algorithm to be applied, must extend Algorithm. |
private Pattern |
positive_class_name
Stores the "positive" class. |
static OptionID |
POSITIVE_CLASS_NAME_ID
OptionID for POSITIVE_CLASS_NAME_PARAM |
private PatternParameter |
POSITIVE_CLASS_NAME_PARAM
The pattern to identify positive classes. |
static AssociationID<Double> |
ROC_AUC
The association id to associate the ROC Area-under-Curve. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
ComputeROCCurve(Parameterization config)
Constructor |
|
| Method Summary | |
|---|---|
private Iterator<Integer> |
getIterableResult(Database<O> database,
Result result)
Find an "iterable" result that looks like object IDs. |
protected MultiResult |
runInTime(Database<O> database)
The run method encapsulated in measure of runtime. |
| Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
|---|
isTime, isVerbose, run, setTime, setVerbose |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final OptionID POSITIVE_CLASS_NAME_ID
POSITIVE_CLASS_NAME_PARAM
private final PatternParameter POSITIVE_CLASS_NAME_PARAM
Key: -rocauc.positive
private final ObjectParameter<Algorithm<O extends DatabaseObject,Result>> ALGORITHM_PARAM
Algorithm.
Key: -algorithm
private Pattern positive_class_name
private Algorithm<O extends DatabaseObject,Result> algorithm
public static final AssociationID<Double> ROC_AUC
| Constructor Detail |
|---|
public ComputeROCCurve(Parameterization config)
config - Parameters| Method Detail |
|---|
protected MultiResult runInTime(Database<O> database)
throws IllegalStateException
AbstractAlgorithm
runInTime in class AbstractAlgorithm<O extends DatabaseObject,MultiResult>database - the database to run the algorithm on
IllegalStateException - if the algorithm has not been initialized
properly (e.g. the setParameters(String[]) method has been failed
to be called).
private Iterator<Integer> getIterableResult(Database<O> database,
Result result)
database - Database contextresult - Result object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||