Skip to content

Commit 66e930f

Browse files
committed
fix entropy
1 parent 2825de7 commit 66e930f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/rapids_singlecell/preprocessing/_harmony

src/rapids_singlecell/preprocessing/_harmony/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def _compute_objective(
605605
"""
606606
kmeans_error = _kmeans_error(R, cp.dot(Z_norm, Y_norm.T))
607607
R_normalized = R / R.sum(axis=1, keepdims=True)
608-
entropy = _entropy_kernel(X=R_normalized)
608+
entropy = _entropy_kernel(R_normalized)
609609
entropy_term = sigma * entropy
610610
diversity_penalty = sigma * cp.sum(cp.dot(theta, _log_div_OE(O, E)))
611611
objective = kmeans_error + entropy_term + diversity_penalty

0 commit comments

Comments
 (0)