ported spm_MDP_log_evidence from SPM into pymdp.maths as dirichlet_log_evidence
wrote two unit tests that compare the dirichlet_log_evidence outputs against those of spm_MDP_log_evidence. The first unit test just compares computes model evidence for DIrichlet posteriors and priors (of original and reduced models), second unit tests vectorizes across matrices of reduced models (one Dirichlet prior of reduced model stored per column of a matrix).
spm_MDP_log_evidence
from SPM intopymdp.maths
asdirichlet_log_evidence
dirichlet_log_evidence
outputs against those ofspm_MDP_log_evidence
. The first unit test just compares computes model evidence for DIrichlet posteriors and priors (of original and reduced models), second unit tests vectorizes across matrices of reduced models (one Dirichlet prior of reduced model stored per column of a matrix).