判断聚类结果优劣的两个距离判定方法
Evaluation
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| calcularMinimumDistance | 1 | Distancia minima entre puntos de diferentes clusters |
| calcularDavidBouldin | 1 | Davies–Bouldin 指数(越小越好)。 已重构为委托统一实现 ClusteringIndices.DaviesBouldin())。 |
| ToIndicesInput | 1 | 把聚类模型转换为统一指标模块所需的「特征矩阵 + 整数簇标签」输入。 |
| CalinskiHarabasz | 1 | Calinski–Harabasz 指数(越大越好)。 已重构为委托统一实现 ClusteringIndices.CalinskiHarabasz())。 |
| CalcularMaximumDiameter | 1 | 最大簇内直径。 已重构为委托统一实现 ClusteringIndices.MaximumDiameter())。 |
| Silhouette | 2 | Silhouette Coefficient |
| Dunn | 2 | Dunn 指数(越大越好)。 已重构为委托统一实现 ClusteringIndices.Dunn())。 |
03 Members
Distancia minima entre puntos de diferentes clusters
| Name | Type | Description |
|---|---|---|
clusters | Cluster() | - |
Davies–Bouldin 指数(越小越好)。
已重构为委托统一实现 ClusteringIndices.DaviesBouldin()。
| Name | Type | Description |
|---|---|---|
clusters | Cluster() | - |
把聚类模型转换为统一指标模块所需的「特征矩阵 + 整数簇标签」输入。
| Name | Type | Description |
|---|---|---|
clusters | Cluster() | - |
Calinski–Harabasz 指数(越大越好)。
已重构为委托统一实现 ClusteringIndices.CalinskiHarabasz()。
| Name | Type | Description |
|---|---|---|
clusters | Cluster() | - |
最大簇内直径。
已重构为委托统一实现 ClusteringIndices.MaximumDiameter()。
| Name | Type | Description |
|---|---|---|
clusters | Cluster() | - |
IEnumerable(Of ClusterEntity))Silhouette Coefficient
| Name | Type | Description |
|---|---|---|
result | IEnumerable(Of ClusterEntity) | - |
Silhouette Coefficient
Silhouette score is used to evaluate the quality of clusters created using clustering algorithms such as K-Means in terms of how well samples are clustered with other samples that are similar to each other. The Silhouette score is calculated for each sample of different clusters. To calculate the Silhouette score for each observation/data point, the following distances need to be found out for each observations belonging to all the clusters:
Mean distance between the observation And all other data points In the same cluster. This distance can also be called a mean intra-cluster distance. The mean distance Is denoted by a Mean distance between the observation And all other data points Of the Next nearest cluster. This distance can also be called a mean nearest-cluster distance. The mean distance Is denoted by b
Silhouette score, S, for Each sample Is calculated Using the following formula:
(S = \frac{(b - a)}{max(a, b)})
The value Of the Silhouette score varies from -1 To 1. If the score Is 1, the cluster Is dense And well-separated than other clusters. A value near 0 represents overlapping clusters With samples very close To the decision boundary Of the neighboring clusters. A negative score [-1, 0] indicates that the samples might have got assigned To the wrong clusters.
| Name | Type | Description |
|---|---|---|
clusters | Cluster() | the cluster result |
IEnumerable(Of ClusterEntity))Dunn Index
| Name | Type | Description |
|---|---|---|
clusters | IEnumerable(Of ClusterEntity) | - |
Dunn 指数(越大越好)。
已重构为委托统一实现 ClusteringIndices.Dunn()。
| Name | Type | Description |
|---|---|---|
clusters | Cluster() | A multiple cluster result |