Skip to content

Commit

Permalink
fix #82
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Sep 18, 2023
1 parent 122ccb2 commit 1d5d595
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: genieclust
Type: Package
Title: Fast and Robust Hierarchical Clustering with Noise Points Detection
Version: 1.1.4.9002
Date: 2023-07-24
Date: 2023-09-19
Authors@R: c(
person("Marek", "Gagolewski",
role = c("aut", "cre", "cph"),
Expand Down
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* [BUGFIX] [Python] #80: fixed adjustment for `nmslib_n_neighbors`
in small samples.

* [BUGFIX] [Python] #82: `cluster_validity` submodule not imported.

* [BUGFIX] Some external cluster validity measures
now handle NaNs better and are slightly less prone to round-off errors.

Expand Down
3 changes: 2 additions & 1 deletion genieclust/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
# ############################################################################ #

# version string, e.g., "1.0.0.9001" or "1.1.1"
__version__ = "1.1.4.9001"
__version__ = "1.1.4.9002"


from . import plots
from . import inequity
from . import tools
from . import compare_partitions
from . import cluster_validity
from . import internal
from .genie import Genie, GIc
2 changes: 1 addition & 1 deletion src/c_compare_partitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ CComparePartitionsPairsResult Ccompare_partitions_pairs(const T* C,
double prod_comb = (sum_comb_x*sum_comb_y)/n/(n-1.0)*2.0; // expected sum_comb,
// see Eq.(2) in (Hubert, Arabie, 1985)
double mean_comb = (sum_comb_x+sum_comb_y)*0.5;
double e_fm = prod_comb/sqrt(sum_comb_x*sum_comb_y); // expected FM (variant)
double e_fm = prod_comb/sqrt(sum_comb_x*sum_comb_y); // expected FM

CComparePartitionsPairsResult res;
res.ar = (sum_comb-prod_comb)/(mean_comb-prod_comb);
Expand Down

0 comments on commit 1d5d595

Please sign in to comment.