Skip to content

Commit bd8d9fd

Browse files
committed
FIX: Use lsqr solver
Seems like it can be slower in some cases, but doesn't have the >30min worst case performance.
1 parent 59501c6 commit bd8d9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcflows/interfaces/bspline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _run_interface(self, runtime):
208208
)
209209

210210
# Fit the model
211-
model = lm.Ridge(alpha=self.inputs.ridge_alpha, fit_intercept=False)
211+
model = lm.Ridge(alpha=self.inputs.ridge_alpha, fit_intercept=False, solver='lsqr')
212212
for attempt in range(3):
213213
model.fit(colmat[mask.reshape(-1), :], data[mask])
214214
extreme = np.abs(model.coef_).max()

0 commit comments

Comments
 (0)