From e801083c48fbee30434c1842744f81487eaf6c25 Mon Sep 17 00:00:00 2001 From: stphnma Date: Sat, 8 Dec 2018 18:54:18 -0500 Subject: [PATCH] testing L-BFGS-B for minimize --- convoys/regression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convoys/regression.py b/convoys/regression.py index 6a2f2a2..4a23854 100644 --- a/convoys/regression.py +++ b/convoys/regression.py @@ -219,7 +219,7 @@ def callback(LL, value_history=[]): jac = autograd.grad(lambda x: -generalized_gamma_loss(x, *args)) # Find the maximum a posteriori of the distribution - res = scipy.optimize.minimize(f, x0, jac=jac, method='SLSQP', + res = scipy.optimize.minimize(f, x0, jac=jac, method='L-BFGS-B', options={'maxiter': 9999}) if not res.success: raise Exception('Optimization failed with message: %s' %