程序包 weka.clusterers

类 CLOPE

所有已实现的接口:
Serializable, Cloneable, Clusterer, CapabilitiesHandler, OptionHandler, RevisionHandler, TechnicalInformationHandler

public class CLOPE extends AbstractClusterer implements OptionHandler, TechnicalInformationHandler
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)
版本:
$Revision: 5538 $
作者:
Alexander Smirnov (austellus@gmail.com)
另请参阅:
  • 字段详细资料

    • clusters

      public ArrayList<weka.clusterers.CLOPE.CLOPECluster> clusters
      Array of clusters
  • 构造器详细资料

    • CLOPE

      public CLOPE()
      the default constructor
  • 方法详细资料

    • numberOfClusters

      public int numberOfClusters()
      从类复制的说明: AbstractClusterer
      Returns the number of clusters.
      指定者:
      numberOfClusters 在接口中 Clusterer
      指定者:
      numberOfClusters 在类中 AbstractClusterer
      返回:
      the number of clusters generated for a training dataset.
    • listOptions

      public Enumeration listOptions()
      从接口复制的说明: OptionHandler
      Returns an enumeration of all the available options..
      指定者:
      listOptions 在接口中 OptionHandler
      返回:
      an enumeration of all available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      Parses a given list of options.

      Valid options are:

       -R <num>
        Repulsion
        (default 2.6)
      指定者:
      setOptions 在接口中 OptionHandler
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
    • getOptions

      public String[] getOptions()
      Gets the current settings of CLOPE
      指定者:
      getOptions 在接口中 OptionHandler
      返回:
      an array of strings suitable for passing to setOptions()
    • repulsionTipText

      public String repulsionTipText()
      Returns the tip text for this property
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui
    • setRepulsion

      public void setRepulsion(double value)
      set the repulsion
      参数:
      value - the repulsion
      抛出:
      Exception - if number of clusters is negative
    • getRepulsion

      public double getRepulsion()
      gets the repulsion
      返回:
      the repulsion
    • getCapabilities

      public Capabilities getCapabilities()
      Returns default capabilities of the clusterer.
      指定者:
      getCapabilities 在接口中 CapabilitiesHandler
      指定者:
      getCapabilities 在接口中 Clusterer
      覆盖:
      getCapabilities 在类中 AbstractClusterer
      返回:
      the capabilities of this clusterer
      另请参阅:
    • buildClusterer

      public void buildClusterer(Instances data) throws Exception
      Generate Clustering via CLOPE
      指定者:
      buildClusterer 在接口中 Clusterer
      指定者:
      buildClusterer 在类中 AbstractClusterer
      参数:
      instances - The instances that need to be clustered
      抛出:
      Exception - If clustering was not successful
    • AddInstanceToBestCluster

      public int AddInstanceToBestCluster(Instance inst)
      Add instance to best cluster
    • MoveInstanceToBestCluster

      public int MoveInstanceToBestCluster(Instance inst)
      Move instance to best cluster
    • clusterInstance

      public int clusterInstance(Instance instance) throws Exception
      Classifies a given instance.
      指定者:
      clusterInstance 在接口中 Clusterer
      覆盖:
      clusterInstance 在类中 AbstractClusterer
      参数:
      instance - The instance to be assigned to a cluster
      返回:
      int The number of the assigned cluster as an integer
      抛出:
      Exception - If instance could not be clustered successfully
    • toString

      public String toString()
      return a string describing this clusterer
      覆盖:
      toString 在类中 Object
      返回:
      a description of the clusterer as a string
    • globalInfo

      public String globalInfo()
      Returns a string describing this DataMining-Algorithm
      返回:
      String Information for the gui-explorer
    • getTechnicalInformation

      public 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.
      指定者:
      getTechnicalInformation 在接口中 TechnicalInformationHandler
      返回:
      the technical information about this class
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      覆盖:
      getRevision 在类中 AbstractClusterer
      返回:
      the revision
    • main

      public static void main(String[] argv)
      Main method for testing this class.
      参数:
      argv - should contain the following arguments:

      -t training file [-R repulsion]