Skip to content
Discussion options

You must be logged in to vote

Hi @johnmdusel,

This is because logp_ddm_full is a black box likelihood function that's constructed differently from logp_ddm or logp_ddm_sdv. To use it with PyMC, you need to wrap it in a Pytensor Op first. I tested and the following code works:

import arviz as az
import matplotlib.pyplot as plt
import pymc as pm
import pytensor

import hssm
from hssm.distribution_utils import make_blackbox_op, make_distribution # import the make_blackbox_op here
from hssm.likelihoods import logp_full_ddm

hssm.set_floatX("float32")
pytensor.config.floatX = "float32"
pytensor.config.blas__ldflags = "-llapack -lblas -lcblas"

if __name__ == "__main__":
    v_true, a_true, z_true, t_true, sv_true, sz_true, s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@johnmdusel
Comment options

Answer selected by johnmdusel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants