Magnetization dynamics: Difference between revisions
en>Yobot m clean up, References after punctuation per WP:REFPUNC and WP:CITEFOOT using AWB (8797) |
|||
Line 1: | Line 1: | ||
{{expert-subject|Statistics|date=February 2010}} | |||
{{one source|date= February 2010}} | |||
'''SUBCLU''' is an algorithm for [[clustering high-dimensional data]] by Karin Kailing, [[Hans-Peter Kriegel]] and Peer Kröger.<ref>Karin Kailing, [[Hans-Peter Kriegel]] and Peer Kröger. ''Density-Connected Subspace Clustering for High-Dimensional Data''. In: ''Proc. SIAM Int. Conf. on Data Mining (SDM'04)'', pp. 246-257, 2004.</ref> It is a [[subspace clustering]] algorithm that builds on the density-based clustering algorithm [[DBSCAN]]. SUBCLU can find [[cluster analysis|clusters]] in [[axis-parallel]] subspaces, and uses a [[Top-down and bottom-up design|bottom-up]], [[greedy algorithm|greedy]] strategy to remain efficient. | |||
==Approach== | |||
SUBCLU uses a [[monotonicity]] criteria: if a cluster is found in a subspace <math>S</math>, then each subspace <math>T \subseteq S</math> also contains a cluster. However, a cluster <math>C \subseteq DB</math> in subspace <math>S</math> is not necessarily a cluster in <math>T \subseteq S</math>, since clusters are required to be maximal, and more objects might be contained in the cluster in <math>T</math> that contains <math>C</math>. However, a [[DBSCAN|density-connected set]] in a subspace <math>S</math> is also a density-connected set in <math>T \subseteq S</math>. | |||
This ''downward-closure property'' is utilized by SUBCLU in a way similar to the [[Apriori algorithm]]: first, all 1-dimensional subspaces are clustered. All clusters in a higher-dimensional subspace will be subsets of the clusters detected in this first clustering. SUBCLU hence recursively produces <math>k+1</math>-dimensional candidate subspaces by combining <math>k</math>-dimensional subspaces with clusters sharing <math>k-1</math> attributes. After pruning irrelevant candidates, [[DBSCAN]] is applied to the candidate subspace to find out if it still contains clusters. If it does, the candidate subspace is used for the next combination of subspaces. In order to improve the runtime of [[DBSCAN]], only the points known to belong to clusters in one <math>k</math>-dimensional subspace (which is chosen to contain as little clusters as possible) are considered. Due to the downward-closure property, other point cannot be part of a <math>k+1</math>-dimensional cluster anyway. | |||
==Pseudocode== | |||
SUBCLU takes two parameters, <math>\epsilon\!\,</math> and <math>MinPts</math>, which serve the same role as in [[DBSCAN]]. In a first step, DBSCAN is used to find 1D-clusters in each subspace spanned by a single attribute: | |||
<math>\!\,SUBCLU(DB, eps, MinPts)</math> | |||
:<math>S_1 := \emptyset</math> | |||
:<math>C_1 := \emptyset</math> | |||
:<math>for\, each\, a \in Attributes</math> | |||
::<math>C^{\{a\}} = DBSCAN(DB, \{a\}, eps, MinPts)\!\,</math> | |||
::<math>if (C^{\{a\}} \neq \emptyset)</math> | |||
:::<math>S_1 := S_1 \cup \{a\}</math> | |||
:::<math>C_1 := C_1 \cup C^{\{a\}}</math> | |||
::<math>end\, if</math> | |||
:<math>end\, for</math> | |||
In a second step, <math>k+1</math>-dimensional clusters are built from <math>k</math>-dimensional ones: | |||
:<math>k := 1\!\,</math> | |||
:<math>while (C_k \neq \emptyset)</math> | |||
::<math>CandS_{k+1} := GenerateCandidateSubspaces(S_k)\!\,</math> | |||
::<math>for\, each\, cand \in CandS_{k+1}</math> | |||
:::<math>bestSubspace := \min_{s \in S_k \wedge s \subset cand} \sum_{C_i \in C^s} |C_i|</math> | |||
:::<math>C^{cand} := \emptyset</math> | |||
:::<math>for\, each\, cluster\, cl \in C^{bestSubspace}</math> | |||
::::<math>C^{cand} := C^{cand} \cup DBSCAN(cl, cand, eps, MinPts)</math> | |||
::::<math>if\, (C^{cand} \neq \emptyset)</math> | |||
:::::<math>S_{k+1} := S_{k+1} \cup cand</math> | |||
:::::<math>C_{k+1} := C_{k+1} \cup C^{cand}</math> | |||
::::<math>end\, if</math> | |||
:::<math>end\, for</math> | |||
::<math>end\, for</math> | |||
::<math>k:=k+1\!\,</math> | |||
:<math>end\, while</math> | |||
<math>end\!\,</math> | |||
The set <math>S_k</math> contains all the <math>k</math>-dimensional subspaces that are known to contain clusters. The set <math>C_k</math> contains the sets of clusters found in the subspaces. The <math>bestSubspace</math> is chosen to minimize the runs of DBSCAN (and the number of points that need to be considered in each run) for finding the clusters in the candidate subspaces. | |||
Candidate subspaces are generated much alike the [[Apriori algorithm]] generates the frequent itemset candidates: Pairs of the <math>k</math>-dimensional subspaces are compared, and if they differ in one attribute only, they form a <math>k+1</math>-dimensional candidate. However, a number of irrelevant candidates are found as well; they contain a <math>k</math>-dimensional subspace that does not contain a cluster. Hence, these candidates are removed in a second step: | |||
<math>\,\!GenerateCandidateSubspaces(S_k)</math> | |||
:<math>CandS_{k+1} := \emptyset</math> | |||
:<math>for\,each\,s_1 \in S_k</math> | |||
::<math>for\,each\,s_2 \in S_k</math> | |||
:::<math>if\,(s_1\,and\,s_2\,\,\mathit{differ}\,\,in\,\,exactely\,\,one\,\,attribute)</math> | |||
::::<math>CandS_{k+1} := CandS_{k+1} \cup \{s_1 \cup s_2\}</math> | |||
:::<math>end\,if</math> | |||
::<math>end\,for</math> | |||
:<math>end\,for</math> | |||
:''// Pruning of irrelevant candidate subspaces'' | |||
:<math>for\,each\,cand \in CandS_{k+1}</math> | |||
::<math>for\, each\, k-element\,s \subset cand</math> | |||
:::<math>if \, (s \not \in S_k)</math> | |||
::::<math>CandS_{k+1} = CandS_{k+1} \setminus \{cand\}</math> | |||
:::<math>end\,if</math> | |||
::<math>end\,for</math> | |||
:<math>end\,for</math> | |||
<math>end\,\!</math> | |||
==Availability== | |||
An example implementation of SUBCLU is available in the [[Environment for DeveLoping KDD-Applications Supported by Index-Structures|ELKI framework]]. | |||
==References== | |||
<references/> | |||
[[Category:Data clustering algorithms]] |
Latest revision as of 17:19, 11 December 2012
Template:Expert-subject Template:One source SUBCLU is an algorithm for clustering high-dimensional data by Karin Kailing, Hans-Peter Kriegel and Peer Kröger.[1] It is a subspace clustering algorithm that builds on the density-based clustering algorithm DBSCAN. SUBCLU can find clusters in axis-parallel subspaces, and uses a bottom-up, greedy strategy to remain efficient.
Approach
SUBCLU uses a monotonicity criteria: if a cluster is found in a subspace , then each subspace also contains a cluster. However, a cluster in subspace is not necessarily a cluster in , since clusters are required to be maximal, and more objects might be contained in the cluster in that contains . However, a density-connected set in a subspace is also a density-connected set in .
This downward-closure property is utilized by SUBCLU in a way similar to the Apriori algorithm: first, all 1-dimensional subspaces are clustered. All clusters in a higher-dimensional subspace will be subsets of the clusters detected in this first clustering. SUBCLU hence recursively produces -dimensional candidate subspaces by combining -dimensional subspaces with clusters sharing attributes. After pruning irrelevant candidates, DBSCAN is applied to the candidate subspace to find out if it still contains clusters. If it does, the candidate subspace is used for the next combination of subspaces. In order to improve the runtime of DBSCAN, only the points known to belong to clusters in one -dimensional subspace (which is chosen to contain as little clusters as possible) are considered. Due to the downward-closure property, other point cannot be part of a -dimensional cluster anyway.
Pseudocode
SUBCLU takes two parameters, and , which serve the same role as in DBSCAN. In a first step, DBSCAN is used to find 1D-clusters in each subspace spanned by a single attribute:
In a second step, -dimensional clusters are built from -dimensional ones:
The set contains all the -dimensional subspaces that are known to contain clusters. The set contains the sets of clusters found in the subspaces. The is chosen to minimize the runs of DBSCAN (and the number of points that need to be considered in each run) for finding the clusters in the candidate subspaces.
Candidate subspaces are generated much alike the Apriori algorithm generates the frequent itemset candidates: Pairs of the -dimensional subspaces are compared, and if they differ in one attribute only, they form a -dimensional candidate. However, a number of irrelevant candidates are found as well; they contain a -dimensional subspace that does not contain a cluster. Hence, these candidates are removed in a second step:
Availability
An example implementation of SUBCLU is available in the ELKI framework.
References
- ↑ Karin Kailing, Hans-Peter Kriegel and Peer Kröger. Density-Connected Subspace Clustering for High-Dimensional Data. In: Proc. SIAM Int. Conf. on Data Mining (SDM'04), pp. 246-257, 2004.