Skip to content

Commit 1100e1a

Browse files
added missing return statement
1 parent 7fc8597 commit 1100e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

batchglm/train/numpy/base_glm/estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def iwls_step(
309309
invertible = np.where(np.linalg.cond(a, p=None) < 1 / sys.float_info.epsilon)[0]
310310
delta_theta[:, idx_update[invertible]] = np.linalg.solve(a[invertible], b[invertible]).T
311311
if invertible.shape[0] < len(idx_update):
312-
sys.stdout.write("caught %i linalg singular matrix errors" % (len(idx_update) - invertible.shape[0]))
312+
sys.stdout.write("caught %i linalg singular matrix errors\n" % (len(idx_update) - invertible.shape[0]))
313313
# Via np.linalg.lsts:
314314
#delta_theta[:, idx_update] = np.concatenate([
315315
# np.expand_dims(np.linalg.lstsq(a[i, :, :], b[i, :])[0], axis=-1)

0 commit comments

Comments
 (0)