pymc-devs/pymc

Compile single function in InferenceDataConverter._extract_log_likelihood

Open

#5,256 创建于 2021年12月12日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (1,902 fork)batch import
help wantedmaintenancetrace-backend

仓库指标

Star
 (7,926 star)
PR 合并指标
 (平均合并 11天) (30 天内合并 7 个 PR)

描述

After #5245 we no longer need to create one function per observed variable, which may be more efficient.

https://github.com/pymc-devs/pymc/blob/10523ef548d68848d6408f78d52fefea9be5c521/pymc/backends/arviz.py#L266-L271

This requires some understanding of how to feed the right information to the InferenceData object, possibly with some extra room for improvements in InferenceDataConverter.log_likelihood_vals_point which has a TODO as well:

https://github.com/pymc-devs/pymc/blob/10523ef548d68848d6408f78d52fefea9be5c521/pymc/backends/arviz.py#L240-L245

贡献者指南