public class EvaluatePrecomputedOutlierScores extends AbstractApplication
ComputeKNNOutlierScores
, and compute popular evaluation metrics for
it.
File format description:
-reversed
.
The default value matches several scores known to use reversed values.Modifier and Type | Class and Description |
---|---|
static class |
EvaluatePrecomputedOutlierScores.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) double |
endcg
Normalization term E[NDCG].
|
(package private) java.io.File |
infile
The data input file.
|
static java.lang.String |
KNOWN_REVERSED
Pattern to match a set of known reversed scores.
|
private static Logging |
LOG
Get static logger.
|
(package private) java.lang.String |
name
Constant column to prepend (may be null)
|
(package private) java.io.File |
outfile
Output file name
|
(package private) StreamingParser |
parser
Parser to read input data.
|
(package private) VectorNonZero |
positive
Vector of positive values.
|
(package private) java.util.regex.Pattern |
reverse
Pattern to recognize reversed methods.
|
REFERENCE, VERSION
Constructor and Description |
---|
EvaluatePrecomputedOutlierScores(java.io.File infile,
StreamingParser parser,
java.util.regex.Pattern reverse,
java.io.File outfile,
java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
checkForNaNs(NumberVector vec)
Check for NaN values.
|
static void |
main(java.lang.String[] args)
Main method.
|
private void |
processRow(java.io.PrintStream fout,
NumberVector vec,
java.lang.String label) |
void |
run()
Runs the application.
|
private void |
writeHeader(java.io.PrintStream fout) |
printErrorMessage, runCLIApplication, usage
private static final Logging LOG
public static final java.lang.String KNOWN_REVERSED
java.io.File infile
StreamingParser parser
java.util.regex.Pattern reverse
java.io.File outfile
java.lang.String name
VectorNonZero positive
double endcg
public EvaluatePrecomputedOutlierScores(java.io.File infile, StreamingParser parser, java.util.regex.Pattern reverse, java.io.File outfile, java.lang.String name)
infile
- Input fileparser
- Streaming input parserreverse
- Pattern for reversed outlier scores.outfile
- Output file namename
- Constant column to prependpublic void run()
AbstractApplication
run
in class AbstractApplication
private void writeHeader(java.io.PrintStream fout)
private void processRow(java.io.PrintStream fout, NumberVector vec, java.lang.String label)
private boolean checkForNaNs(NumberVector vec)
vec
- Vectortrue
if NaN values are present.public static void main(java.lang.String[] args)
args
- Command line parameters.Copyright © 2019 ELKI Development Team. License information.