|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.clusterers.AbstractClusterer
weka.clusterers.CLOPE
public class CLOPE
Yiling Yang, Xudong Guan, Jinyuan You: CLOPE: a fast and effective clustering algorithm for transactional data. In: Proceedings of the eighth ACM SIGKDD international conference on Knowledge discovery and data mining, 682-687, 2002.
BibTeX:@inproceedings{Yang2002, author = {Yiling Yang and Xudong Guan and Jinyuan You}, booktitle = {Proceedings of the eighth ACM SIGKDD international conference on Knowledge discovery and data mining}, pages = {682-687}, publisher = {ACM New York, NY, USA}, title = {CLOPE: a fast and effective clustering algorithm for transactional data}, year = {2002} }Valid options are:
-R <num> Repulsion (default 2.6)
Field Summary | |
---|---|
java.util.ArrayList<weka.clusterers.CLOPE.CLOPECluster> |
clusters
Array of clusters |
Constructor Summary | |
---|---|
CLOPE()
the default constructor |
Method Summary | |
---|---|
int |
AddInstanceToBestCluster(Instance inst)
Add instance to best cluster |
void |
buildClusterer(Instances data)
Generate Clustering via CLOPE |
int |
clusterInstance(Instance instance)
Classifies a given instance. |
Capabilities |
getCapabilities()
Returns default capabilities of the clusterer. |
java.lang.String[] |
getOptions()
Gets the current settings of CLOPE |
double |
getRepulsion()
gets the repulsion |
java.lang.String |
getRevision()
Returns the revision string. |
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 DataMining-Algorithm |
java.util.Enumeration |
listOptions()
Returns an enumeration of all the available options.. |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
int |
MoveInstanceToBestCluster(Instance inst)
Move instance to best cluster |
int |
numberOfClusters()
Returns the number of clusters. |
java.lang.String |
repulsionTipText()
Returns the tip text for this property |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setRepulsion(double value)
set the repulsion |
java.lang.String |
toString()
return a string describing this clusterer |
Methods inherited from class weka.clusterers.AbstractClusterer |
---|
distributionForInstance, forName, makeCopies, makeCopy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList<weka.clusterers.CLOPE.CLOPECluster> clusters
Constructor Detail |
---|
public CLOPE()
Method Detail |
---|
public int numberOfClusters()
AbstractClusterer
numberOfClusters
in interface Clusterer
numberOfClusters
in class AbstractClusterer
public java.util.Enumeration listOptions()
OptionHandler
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-R <num> Repulsion (default 2.6)
setOptions
in interface OptionHandler
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public java.lang.String repulsionTipText()
public void setRepulsion(double value)
value
- the repulsion
java.lang.Exception
- if number of clusters is negativepublic double getRepulsion()
public Capabilities getCapabilities()
getCapabilities
in interface Clusterer
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class AbstractClusterer
Capabilities
public void buildClusterer(Instances data) throws java.lang.Exception
buildClusterer
in interface Clusterer
buildClusterer
in class AbstractClusterer
instances
- The instances that need to be clustered
java.lang.Exception
- If clustering was not successfulpublic int AddInstanceToBestCluster(Instance inst)
public int MoveInstanceToBestCluster(Instance inst)
public int clusterInstance(Instance instance) throws java.lang.Exception
clusterInstance
in interface Clusterer
clusterInstance
in class AbstractClusterer
instance
- The instance to be assigned to a cluster
java.lang.Exception
- If instance could not be clustered
successfullypublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class AbstractClusterer
public static void main(java.lang.String[] argv)
argv
- should contain the following arguments: -t training file [-R repulsion]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |