Skip to content

Commit b10304a

Browse files
Julien RousselJulien Roussel
authored andcommitted
soft impute recoded
1 parent 5fb072d commit b10304a

File tree

10 files changed

+420
-245
lines changed

10 files changed

+420
-245
lines changed

qolmat/imputations/em_sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _conjugate_gradient(A: NDArray, X: NDArray, mask: NDArray) -> NDArray:
4040
b[~mask] = 0
4141
xn, pn, rn = np.zeros(X_temp.shape), b, b # Initialisation
4242
for n in range(n_iter + 2):
43-
# if np.max(np.sum(rn**2)) < tol : # Condition de sortie " usuelle "
43+
# if np.max(np.sum(rn**2)) < tolerance : # Condition de sortie " usuelle "
4444
# X_temp[mask_isna] = xn[mask_isna]
4545
# return X_temp.transpose()
4646
Apn = pn @ A

0 commit comments

Comments
 (0)