Package moa.clusterers.outliers
Class MyBaseOutlierDetector
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.clusterers.AbstractClusterer
-
- moa.clusterers.outliers.MyBaseOutlierDetector
-
- All Implemented Interfaces:
Configurable
,Serializable
,Clusterer
,AWTRenderable
,MOAObject
,OptionHandler
- Direct Known Subclasses:
AbstractCBase
,AnyOut
,MCODBase
,SimpleCODBase
,STORMBase
public abstract class MyBaseOutlierDetector extends AbstractClusterer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MyBaseOutlierDetector.Outlier
static class
MyBaseOutlierDetector.OutlierNotifier
static interface
MyBaseOutlierDetector.PrintMsg
static interface
MyBaseOutlierDetector.ProgressInfo
class
MyBaseOutlierDetector.StdPrintMsg
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bShowProgress
boolean
bStopAlgorithm
protected boolean
bTrace
protected int
iMaxMemUsage
protected MyBaseOutlierDetector.PrintMsg
myOut
protected MyBaseOutlierDetector.ProgressInfo
myProgressInfo
protected int
nRangeQueriesExecuted
protected double
nTimePerObj
protected Long
nTotalRunTime
MyBaseOutlierDetector.OutlierNotifier
outlierNotifier
protected Random
random
IntOption
windowSizeOption
-
Fields inherited from class moa.clusterers.AbstractClusterer
clustererRandom, clustering, evaluateMicroClusteringOption, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description MyBaseOutlierDetector()
-
Method Summary
-
Methods inherited from class moa.clusterers.AbstractClusterer
adjustParameters, contextIsCompatible, copy, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getPurposeString, getSubClusterers, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
-
Methods inherited from class moa.options.AbstractOptionHandler
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
getCLICreationString, getOptions, prepareForUse, prepareForUse
-
-
-
-
Field Detail
-
windowSizeOption
public IntOption windowSizeOption
-
outlierNotifier
public MyBaseOutlierDetector.OutlierNotifier outlierNotifier
-
random
protected Random random
-
iMaxMemUsage
protected int iMaxMemUsage
-
nRangeQueriesExecuted
protected int nRangeQueriesExecuted
-
nTotalRunTime
protected Long nTotalRunTime
-
nTimePerObj
protected double nTimePerObj
-
myProgressInfo
protected MyBaseOutlierDetector.ProgressInfo myProgressInfo
-
myOut
protected MyBaseOutlierDetector.PrintMsg myOut
-
bTrace
protected boolean bTrace
-
bShowProgress
protected boolean bShowProgress
-
bStopAlgorithm
public boolean bStopAlgorithm
-
-
Method Detail
-
UpdateMaxMemUsage
protected void UpdateMaxMemUsage()
-
getTimePerObj
public double getTimePerObj()
-
getStatistics
public String getStatistics()
-
getInstanceValues
public double[] getInstanceValues(Instance inst)
-
PrintInstance
public void PrintInstance(Instance inst)
-
resetLearningImpl
public void resetLearningImpl()
- Specified by:
resetLearningImpl
in classAbstractClusterer
-
Init
protected void Init()
-
trainOnInstanceImpl
public void trainOnInstanceImpl(Instance inst)
- Specified by:
trainOnInstanceImpl
in classAbstractClusterer
-
processNewInstanceImpl
public void processNewInstanceImpl(Instance inst)
-
ProcessNewStreamObj
protected void ProcessNewStreamObj(Instance inst)
-
PrintOutliers
public void PrintOutliers()
-
GetOutliersFound
public Set<MyBaseOutlierDetector.Outlier> GetOutliersFound()
-
IsNodeIdInWin
protected boolean IsNodeIdInWin(long id)
-
getClusteringResult
public Clustering getClusteringResult()
-
getOutliersResult
public Vector<MyBaseOutlierDetector.Outlier> getOutliersResult()
-
AddOutlier
protected void AddOutlier(MyBaseOutlierDetector.Outlier newOutlier)
-
RemoveExpiredOutlier
protected boolean RemoveExpiredOutlier(MyBaseOutlierDetector.Outlier outlier)
-
RemoveOutlier
protected boolean RemoveOutlier(MyBaseOutlierDetector.Outlier outlier)
-
implementsMicroClusterer
public boolean implementsMicroClusterer()
- Specified by:
implementsMicroClusterer
in interfaceClusterer
- Overrides:
implementsMicroClusterer
in classAbstractClusterer
-
getMicroClusteringResult
public Clustering getMicroClusteringResult()
- Specified by:
getMicroClusteringResult
in interfaceClusterer
- Overrides:
getMicroClusteringResult
in classAbstractClusterer
-
getModelMeasurementsImpl
protected Measurement[] getModelMeasurementsImpl()
- Specified by:
getModelMeasurementsImpl
in classAbstractClusterer
-
getModelDescription
public void getModelDescription(StringBuilder out, int indent)
- Specified by:
getModelDescription
in classAbstractClusterer
-
isRandomizable
public boolean isRandomizable()
-
keepClassLabel
public boolean keepClassLabel()
- Specified by:
keepClassLabel
in interfaceClusterer
- Overrides:
keepClassLabel
in classAbstractClusterer
-
getVotesForInstance
public double[] getVotesForInstance(Instance inst)
-
SetShowProgress
public void SetShowProgress(boolean b)
-
SetTrace
public void SetTrace(boolean b)
-
SetProgressInterval
public void SetProgressInterval(int iProgressInterval)
-
SetMessagePrinter
public void SetMessagePrinter(MyBaseOutlierDetector.PrintMsg logPrinter)
-
SetUserInfo
public void SetUserInfo(boolean bShowProgress, boolean bTrace, MyBaseOutlierDetector.PrintMsg logPrinter, int iProgressInterval)
-
ShowProgress
protected void ShowProgress(String sMsg)
-
ShowProgress
protected void ShowProgress(String sMsg, boolean bShowAlways)
-
Println
protected void Println(String s)
-
Print
protected void Print(String s)
-
GetMemoryUsage
protected int GetMemoryUsage()
-
-