hard_clustering_tuebingen#
- tangles.analysis.hard_clustering_tuebingen(tangle_matrix: ndarray, feat_ids: ndarray, feat_sys) ndarray #
Implements hard clustering as described in the Tuebingen Paper.
For each tangle, a corresponding cluster is calculated.
Parameters#
- tangle_matrixnp.ndarray
A (tangles x features)-matrix encoding whether a tangle contains a certain feature or its inverse. Contains 1 if the tangle contains the feature and otherwise 0.
- feat_idsnp.ndarray
The feature ids corresponding to the columns of the tangle_matrix.
- feat_sysFeatureSystem
A feature system.
Returns#
- np.ndarray
A (points x tangles)-matrix with values 0 and 1. For each point, it encodes the membership of the point to the cluster that corresponds to the tangle.