Skip to content

Commit 6891983

Browse files
nbedanovaCopilot
andauthored
Update pf2rnaseq/factorization.py
Co-authored-by: Copilot <[email protected]>
1 parent 511bb1b commit 6891983

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pf2rnaseq/factorization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ def gradient(x):
294294
# 1. Reconstruction term: ∂/∂H [||A - WH||²] = 2(W^T @ error), L1 penalty: ∂/∂H [α||H||₁] = α * sign(H)
295295
grad_H = 2 * (W.T @ (W @ H - A)) + alpha
296296

297-
298297
return np.concatenate([grad_W.ravel(), grad_H.ravel()])
299298

300299
# Enforce non-negativity

0 commit comments

Comments
 (0)