Skip to content

Commit

Permalink
gibbs
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson committed Nov 20, 2024
1 parent cfb1353 commit ff1df0b
Show file tree
Hide file tree
Showing 6 changed files with 586 additions and 397 deletions.
6 changes: 6 additions & 0 deletions simba/data_processors/cuda/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ def dunn_index(x: np.ndarray, y: np.ndarray) -> float:
distance to the maximum intra-cluster distance. The higher the Dunn Index, the better the separation
between clusters.
.. seelalso:
For CPU-based method, use :func:`simba.mixins.statistics_mixin.Statistics.dunn_index`
.. math::
Dunn\ Index = \frac{\\min_{i \\neq j} \\delta(c_i, c_j)}{\\max_k \\Delta(c_k)}
Expand Down Expand Up @@ -580,6 +583,9 @@ def davis_bouldin(x: np.ndarray,
The lower the Davis-Bouldin Index, the better the clusters are separated and compact.
The function calculates the average similarity between each cluster and its most similar cluster.
.. seealso::
For CPU implementation, use :func:`simba.mixins.statistics_mixin.Statistics.davis_bouldin`
.. csv-table::
:header: EXPECTED RUNTIMES
:file: ../../../docs/tables/davis_bouldin_cuda.csv
Expand Down
Loading

0 comments on commit ff1df0b

Please sign in to comment.