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 8418e65 commit d99ac37Copy full SHA for d99ac37
batchglm/utils/linalg.py
@@ -73,7 +73,9 @@ def apply_fun(grouping):
73
# Get unqiue rows of design matrix and vector with group assignments:
74
unique_design, inverse_idx = np.unique(dmat, axis=0, return_inverse=True)
75
76
- if unique_design.shape[1] > np.linalg.matrix_rank(np.matmul(unique_design, constraints)):
+ full_rank = constraints.shape[1]
77
+ rank = np.linalg.matrix_rank(np.matmul(unique_design, constraints))
78
+ if full_rank > rank:
79
logger.error("model is not full rank!")
80
81
# Get group-wise means in linker space based on group assignments
0 commit comments