Skip to content

Commit 11da763

Browse files
committed
🔧 Update .gitignore to exclude Excel files and add notebooks directory
1 parent c63ad7b commit 11da763

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*.xlsx
12
*.ipynb
23
poetry.lock
34
# Byte-compiled / optimized / DLL files
@@ -63,7 +64,7 @@ examples/figures/*
6364
examples/data/*
6465
examples/local
6566
data/data_local/*
66-
67+
notebooks/
6768
# VSCode
6869
.vscode
6970

qolmat/imputations/mimca/estim_ncpMCA.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,13 @@ def imputeMCA(
205205
Z_mean = Z.apply(lambda col: moy_p(col.values, row_w))
206206
Z = Z.subtract(Z_mean, axis=1)
207207
Zscale = Z.multiply(np.sqrt(M), axis=1)
208+
208209
U, s, Vt = np.linalg.svd(Zscale.values, full_matrices=False)
209210
V = Vt.T
210211
U = U[:, :ncp]
211212
V = V[:, :ncp]
212213
s = s[:ncp]
214+
213215
if method.lower() == "em":
214216
moyeig = 0
215217
else:

0 commit comments

Comments
 (0)