public class LOF
extends weka.classifiers.AbstractClassifier
implements java.io.Serializable, weka.core.CapabilitiesHandler, weka.core.OptionHandler, weka.core.TechnicalInformationHandler, weka.core.RevisionHandler
@article{Breunig2000, author = {Markus M. Breunig and Hans-Peter Kriegel and Raymond T. Ng and Jorg Sander}, journal = {ACM SIGMOD Record}, number = {2}, pages = {93-104}, publisher = {ACM New York}, title = {LOF: Identifying Density-Based Local Outliers}, volume = {29}, year = {2000} }
-min <num> Lower bound on the k nearest neighbors for finding max LOF (minPtsLB) (default = 10)
-max <num> Upper bound on the k nearest neighbors for finding max LOF (minPtsUB) (default = 40)
-A The nearest neighbour search algorithm to use (default: weka.core.neighboursearch.LinearNNSearch).
-num-slots <num> Number of execution slots. (default 1 - i.e. no parallelism)
-output-debug-info If set, classifier is run in debug mode and may output additional info to the console
-do-not-check-capabilities If set, classifier capabilities are not checked before classifier is built (use with caution).
-num-decimal-places The number of decimal places for the output of numbers in the model (default 2).
Constructor and Description |
---|
LOF() |
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(weka.core.Instances data) |
double[] |
distributionForInstance(weka.core.Instance inst) |
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
java.lang.String |
getMinPointsLowerBound()
Get the lower bound (minPtsLB) to use on the range for k when determining
the maximum LOF value
|
java.lang.String |
getMinPointsUpperBound()
Get the upper bound (minPtsUB) to use on the range for k when determining
the maximum LOF value
|
weka.core.neighboursearch.NearestNeighbourSearch |
getNNSearch()
Get the nearest neighbor search method to use
|
java.lang.String |
getNumExecutionSlots()
Get the degree of parallelism to use.
|
java.lang.String[] |
getOptions()
Gets the current settings of the scheme.
|
java.lang.String |
getRevision()
Returns the revision string.
|
weka.core.TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed
information about the technical background of this class, e.g., paper
reference or book this class is based on.
|
java.lang.String |
globalInfo()
Returns a string describing this scheme
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Gets an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
Main method for this class.
|
java.lang.String |
minPointsLowerBoundTipText()
Returns the tip text for this property
|
java.lang.String |
minPointsUpperBoundTipText()
Returns the tip text for this property
|
java.lang.String |
NNSearchTipText()
Returns the tip text for this property
|
java.lang.String |
numExecutionSlotsTipText()
Returns the tip text for this property
|
void |
setMinPointsLowerBound(java.lang.String pts)
Set the lower bound (minPtsLB) to use on the range for k when determining
the maximum LOF value
|
void |
setMinPointsUpperBound(java.lang.String pts)
Set the upper bound (minPtsUB) to use on the range for k when determining
the maximum LOF value
|
void |
setNNSearch(weka.core.neighboursearch.NearestNeighbourSearch s)
Set the nearest neighbor search method to use
|
void |
setNumExecutionSlots(java.lang.String slots)
Set the degree of parallelism to use.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
java.lang.String |
toString() |
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
public java.lang.String globalInfo()
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface weka.core.TechnicalInformationHandler
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.classifiers.Classifier
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.classifiers.AbstractClassifier
Capabilities
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.classifiers.AbstractClassifier
public void setOptions(java.lang.String[] options) throws java.lang.Exception
Parses a given list of options.
Valid options are:
-min <num> Lower bound on the k nearest neighbors for finding max LOF (minPtsLB) (default = 10)
-max <num> Upper bound on the k nearest neighbors for finding max LOF (minPtsUB) (default = 40)
-A The nearest neighbour search algorithm to use (default: weka.core.neighboursearch.LinearNNSearch).
-num-slots <num> Number of execution slots. (default 1 - i.e. no parallelism)
-output-debug-info If set, classifier is run in debug mode and may output additional info to the console
-do-not-check-capabilities If set, classifier capabilities are not checked before classifier is built (use with caution).
-num-decimal-places The number of decimal places for the output of numbers in the model (default 2).
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.classifiers.AbstractClassifier
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.classifiers.AbstractClassifier
public java.lang.String minPointsLowerBoundTipText()
public void setMinPointsLowerBound(java.lang.String pts)
pts
- the lower boundpublic java.lang.String getMinPointsLowerBound()
public java.lang.String minPointsUpperBoundTipText()
public void setMinPointsUpperBound(java.lang.String pts)
pts
- the upper boundpublic java.lang.String getMinPointsUpperBound()
public java.lang.String NNSearchTipText()
public void setNNSearch(weka.core.neighboursearch.NearestNeighbourSearch s)
s
- the nearest neighbor search method to usepublic weka.core.neighboursearch.NearestNeighbourSearch getNNSearch()
public java.lang.String numExecutionSlotsTipText()
public void setNumExecutionSlots(java.lang.String slots)
slots
- the number of tasks to run in parallel when computing the
nearest neighbors and evaluating different values of k between the
lower and upper boundspublic java.lang.String getNumExecutionSlots()
public void buildClassifier(weka.core.Instances data) throws java.lang.Exception
buildClassifier
in interface weka.classifiers.Classifier
java.lang.Exception
public double[] distributionForInstance(weka.core.Instance inst) throws java.lang.Exception
distributionForInstance
in interface weka.classifiers.Classifier
distributionForInstance
in class weka.classifiers.AbstractClassifier
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class weka.classifiers.AbstractClassifier
public static void main(java.lang.String[] args)
args
- arguments to use