Skip to content

Commit 216dcd5

Browse files
committed
Switch initial_point default_strategy from "prior" to "moment"
1 parent f197eb9 commit 216dcd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc/initial_point.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def make_initial_point_fn(
131131
model,
132132
overrides: Optional[StartDict] = None,
133133
jitter_rvs: Optional[Set[TensorVariable]] = None,
134-
default_strategy: str = "prior",
134+
default_strategy: str = "moment",
135135
return_transformed: bool = True,
136136
) -> Callable:
137137
"""Create seeded function that computes initial values for all free model variables.
@@ -226,7 +226,7 @@ def make_initial_point_expression(
226226
rvs_to_values: Dict[TensorVariable, TensorVariable],
227227
initval_strategies: Dict[TensorVariable, Optional[Union[np.ndarray, Variable, str]]],
228228
jitter_rvs: Set[TensorVariable] = None,
229-
default_strategy: str = "prior",
229+
default_strategy: str = "moment",
230230
return_transformed: bool = False,
231231
) -> List[TensorVariable]:
232232
"""Creates the tensor variables that need to be evaluated to obtain an initial point.

0 commit comments

Comments
 (0)