pymc.推理#
- class pymc.Inference(op, approx, tf, **kwargs)[源代码]#
变分推断的基类
将操作符、近似值和测试函数传递给目标函数
- 参数:
- op操作符类 #:class:~pymc.variational.operators
- approx近似类或实例 #:class:~pymc.variational.approximations
- tfTestFunction 实例 #?
- 模型 :
Model
模型 PyMC 模型
- kwargs传递给操作符的 kwargs #:class:~pymc.variational.operators, 可选
方法
Inference.__init__
(op, approx, tf, **kwargs)Inference.fit
([n, score, callbacks, progressbar])执行算子变分推断
Inference.refine
(n[, progressbar])使用最后编译的步骤函数优化解决方案
Inference.run_profiling
([n, score])属性
approx