pymc.make_shared_replacements# pymc.make_shared_replacements(point, vars, model)[源代码]# 对所有传入的变量以外的*其他*变量进行共享替换。 通过这种方式,函数可以在不设置不变变量的情况下被多次调用。通过移除对 DictToArrayBijection 和 kwargs 的需求,允许我们使用 func.trust_input。 参数: 点: 将变量名称映射到样本值的字典 vars: 不共享的变量列表 模型: 模型 返回: Dict of variable -> new shared variable