pymc.model.core.Model.profile#

Model.profile(outs, *, n=1000, point=None, profile=True, **kwargs)[源代码]#

编译并分析一个返回 outs 的 PyTensor 函数,该函数以模型变量的值作为字典参数。

参数:
outs: PyTensor 变量或 PyTensor 变量的可迭代对象
n: int, 默认 1000

要运行的迭代次数

点:点

传递给函数的点

profile: True 或 ProfileStats
args, kwargs

编译参数

返回:
ProfileStats

使用 .summary() 打印统计信息。