File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def fit_dadvi(
28
28
random_seed : RandomSeed = None ,
29
29
n_draws : int = 1000 ,
30
30
keep_untransformed : bool = False ,
31
- opt_method : minimize_method = "trust-ncg" ,
31
+ optimizer_method : minimize_method = "trust-ncg" ,
32
32
** minimize_kwargs ,
33
33
) -> az .InferenceData :
34
34
"""
@@ -60,7 +60,7 @@ def fit_dadvi(
60
60
Whether or not to keep the unconstrained variables (such as
61
61
logs of positive-constrained parameters) in the output.
62
62
63
- opt_method : str
63
+ optimizer_method : str
64
64
Which optimization method to use. The function calls
65
65
``scipy.optimize.minimize``, so any of the methods there can
66
66
be used. The default is trust-ncg, which uses second-order
@@ -109,8 +109,7 @@ def fit_dadvi(
109
109
result = minimize (
110
110
f_fused ,
111
111
np .zeros (2 * n_params ),
112
- method = opt_method ,
113
- jac = True ,
112
+ method = optimizer_method ,
114
113
hessp = f_hessp ,
115
114
** minimize_kwargs ,
116
115
)
You can’t perform that action at this time.
0 commit comments