Package moa.clusterers
Class WekaClusteringAlgorithm
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.clusterers.AbstractClusterer
-
- moa.clusterers.WekaClusteringAlgorithm
-
- All Implemented Interfaces:
Configurable
,Serializable
,Clusterer
,AWTRenderable
,MOAObject
,OptionHandler
public class WekaClusteringAlgorithm extends AbstractClusterer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description IntOption
horizonOption
protected SamoaToWekaInstanceConverter
instanceConverter
StringOption
parameterOption
MultiChoiceOption
wekaAlgorithmOption
-
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 WekaClusteringAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Clustering
getClusteringResult()
Instances
getDataset(int numdim, int numclass)
void
getModelDescription(StringBuilder out, int indent)
protected Measurement[]
getModelMeasurementsImpl()
String
getPurposeString()
Dictionary with option texts and objectsdouble[]
getVotesForInstance(Instance inst)
boolean
isRandomizable()
boolean
keepClassLabel()
void
resetLearningImpl()
void
trainOnInstanceImpl(Instance inst)
-
Methods inherited from class moa.clusterers.AbstractClusterer
adjustParameters, contextIsCompatible, copy, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getMicroClusteringResult, getModelContext, getModelMeasurements, getNominalValueString, getSubClusterers, implementsMicroClusterer, 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
-
horizonOption
public IntOption horizonOption
-
wekaAlgorithmOption
public MultiChoiceOption wekaAlgorithmOption
-
parameterOption
public StringOption parameterOption
-
instanceConverter
protected SamoaToWekaInstanceConverter instanceConverter
-
-
Method Detail
-
resetLearningImpl
public void resetLearningImpl()
- Specified by:
resetLearningImpl
in classAbstractClusterer
-
trainOnInstanceImpl
public void trainOnInstanceImpl(Instance inst)
- Specified by:
trainOnInstanceImpl
in classAbstractClusterer
-
getClusteringResult
public Clustering getClusteringResult()
-
getDataset
public Instances getDataset(int numdim, int numclass)
-
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()
-
getVotesForInstance
public double[] getVotesForInstance(Instance inst)
-
keepClassLabel
public boolean keepClassLabel()
- Specified by:
keepClassLabel
in interfaceClusterer
- Overrides:
keepClassLabel
in classAbstractClusterer
-
getPurposeString
public String getPurposeString()
Description copied from class:AbstractOptionHandler
Dictionary with option texts and objects- Specified by:
getPurposeString
in interfaceOptionHandler
- Overrides:
getPurposeString
in classAbstractClusterer
- Returns:
- the string with the purpose of this object
-
-