Skip to content

Commit 017b52e

Browse files
committed
Fix init_alpha
I undid the change to test the error message, forgot to re-do
1 parent 48f3083 commit 017b52e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmdstanpy/cmdstan_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def validate(
422422
)
423423

424424
if self.init_alpha is not None:
425-
if self.algorithm.lower() == 'Newton':
425+
if self.algorithm.lower() not in {'lbfgs', 'bfgs'}:
426426
raise ValueError(
427427
'init_alpha requires that algorithm be set to bfgs or lbfgs'
428428
)

0 commit comments

Comments
 (0)