We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1867b69 commit 0afd1fcCopy full SHA for 0afd1fc
pymfe/complexity.py
@@ -2234,10 +2234,10 @@ def _recurse_radius_calc(ind_inst: int) -> float:
2234
ref_dists = (
2235
radiuses
2236
if agglomeration_reference == "center"
2237
- else (radiuses - radiuses[:, np.newaxis] + np.diag(radiuses))
+ else (radiuses - radiuses[:, np.newaxis])
2238
)
2239
2240
- within_hyperspheres = orig_dist_mat < ref_dists
+ within_hyperspheres = orig_dist_mat <= ref_dists
2241
agg_priority_metric = np.sum(within_hyperspheres, axis=0) if agglomeration_metric == "mass" else radiuses
2242
sorted_sphere_inds = np.argsort(-agg_priority_metric)
2243
sphere_inst_count = np.ones(radiuses.size, dtype=int)
0 commit comments