pymc.model.core.Model.check_start_vals#
- Model.check_start_vals(start)[源代码]#
检查MCMC的起始值不会导致相关的对数概率评估为无效值(例如Inf或NaN)
- 参数:
- startpython:dict,或 python:dict 的数组
参数空间中的起始点(或部分点)默认为
trace.point(-1))``(如果有提供轨迹),否则为 ``model.initial_point``(默认为空字典)。NUTS 的初始化方法(参见 ``init
关键字)可以覆盖默认值。
- 返回:
- Raises:
KeyError
if
the
parameters
provided
by
startdo
not
agree
with
the
parameters
contained
within
the
model.pymc.exceptions.SamplingError
if
the
evaluation
ofthe
parameters
in
start
leads
to
an
invalid
(i.e. non-finite)state