|
|
|||||||||||||||||||||
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.histogram.ComputeOutlierHistogram<O>
O
- Database object typepublic class ComputeOutlierHistogram<O extends DatabaseObject>
Compute a Histogram to evaluate a ranking algorithm.
The parameter -hist.positive
specifies the class label of "positive"
hits.
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 int |
bins
Number of bins |
static OptionID |
BINS_ID
OptionID for BINS_ID |
private IntParameter |
BINS_PARAM
number of bins for the histogram Default value: EuclideanDistanceFunction
Key: -comphist.bins
|
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 object pattern to identify positive classes Key: -comphist.positive
|
private ScalingFunction |
scaling
Scaling function to use |
static OptionID |
SCALING_ID
OptionID for SCALING_PARAM |
private ObjectParameter<ScalingFunction> |
SCALING_PARAM
Parameter to specify a scaling function to use. |
private boolean |
splitfreq
Flag to make split frequencies |
static OptionID |
SPLITFREQ_ID
OptionID for SPLITFREQ_PARAM |
private Flag |
SPLITFREQ_PARAM
Flag to count frequencies of outliers and non-outliers separately Key: -histogram.splitfreq
|
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
ComputeOutlierHistogram(Parameterization config)
Constructor, adhering to Parameterizable |
Method Summary | |
---|---|
private OutlierResult |
getOutlierResult(Database<O> database,
Result result)
Find an OutlierResult to work with. |
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
public static final OptionID BINS_ID
BINS_ID
public static final OptionID SCALING_ID
SCALING_PARAM
public static final OptionID SPLITFREQ_ID
SPLITFREQ_PARAM
private final PatternParameter POSITIVE_CLASS_NAME_PARAM
Key: -comphist.positive
private final IntParameter BINS_PARAM
Default value: EuclideanDistanceFunction
Key: -comphist.bins
private final ObjectParameter<Algorithm<O extends DatabaseObject,Result>> ALGORITHM_PARAM
Algorithm
.
Key: -algorithm
private final ObjectParameter<ScalingFunction> SCALING_PARAM
Key: -comphist.scaling
private final Flag SPLITFREQ_PARAM
Key: -histogram.splitfreq
private Pattern positive_class_name
private int bins
private Algorithm<O extends DatabaseObject,Result> algorithm
private ScalingFunction scaling
private boolean splitfreq
Constructor Detail |
---|
public ComputeOutlierHistogram(Parameterization config)
Parameterizable
config
- ParameterizationMethod 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 OutlierResult getOutlierResult(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 |