FindClusters

FindClusters[{e1,e2,}]
ei 分成相似元素组成的簇.

FindClusters[{e1v1,e2v2,}]
返回对应于各个簇中的 eivi.

FindClusters[{e1,e2,}{v1,v2,}]
得到相同结果. FindClusters[label1e1,label2e2|>]
returns the labeli corresponding to the ei in each cluster.

FindClusters[data,n]
partitions data into at most n clusters.

更多信息和选项更多信息和选项

  • FindClusters works for a variety of data types, including numerical, textual, and image, as well as dates and times.
  • The following options can be given:
  • CriterionFunctionAutomaticcriterion for selecting a method
    DistanceFunctionAutomaticthe distance function to use
    MethodAutomaticwhat method to use
    PerformanceGoalAutomaticaspect of performance to optimize
    WeightsAutomaticwhat weight to give to each example
  • By default, the following distance functions are used for different types of elements:
  • ColorDistancecolors
    EditDistancestrings
    EuclideanDistancenumeric data
    ImageDistanceimages
    JaccardDissimilarityBoolean data
  • The setting for DistanceFunction can be any distance or dissimilarity function, or a function f defining a distance between two values.
  • Possible settings for PerformanceGoal include:
  • Automaticautomatic tradeoff among speed, accuracy, and memory
    "Quality"maximize the accuracy of the classifier
    "Speed"maximize the speed of the classifier
  • Possible settings for Method include:
  • Automaticautomatically select a method
    "Agglomerate"single-linkage clustering algorithm
    "DBSCAN"density-based spatial clustering of applications with noise
    "NeighborhoodContraction"displace examples toward high-density region
    "JarvisPatrick"JarvisPatrick clustering algorithm
    "KMeans"k-means clustering algorithm
    "MeanShift"mean-shift clustering algorithm
    "KMedoids"partitioning around medoids
    "SpanningTree"minimum spanning tree-based clustering algorithm
    "Spectral"spectral clustering algorithm
    "GaussianMixture"variational Gaussian mixture algorithm
  • The methods "KMeans", and "KMedoids" can only be used when the number of clusters is specified.
  • Possible settings for CriterionFunction include:
  • "StandardDeviation"root-mean-square standard deviation
    "RSquared"R-squared
    "Dunn"Dunn index
    "CalinskiHarabasz"CalinskiHarabasz index
    "DaviesBouldin"DaviesBouldin index
    Automaticinternal index

范例范例打开所有单元关闭所有单元

基本范例  (4)基本范例  (4)

获得由邻近值组成的簇:

In[1]:=
Click for copyable input
Out[1]=

获得四个簇:

In[1]:=
Click for copyable input
Out[1]=

代表簇元素各个规则的右边:

In[1]:=
Click for copyable input
Out[1]=

Represent clustered elements with the keys of the association:

In[1]:=
Click for copyable input
Out[1]=
2007年引入
(6.0)
| 2016年更新
(11.0)