Skip to content

7-parameter ddm in HSSM possible? #255

Answered by digicosmos86
Franzi2114 asked this question in Q&A
Discussion options

You must be logged in to vote

Here's an example in our tutorial. In this example, we basically use the full HDDM likelihood in Cython as a blackbox likelihood function. You can modify this example like this to make it work for you:

# You need to do pip install git+https://github.com/brown-ccv/hddm-wfpt.git first to install 
# the hddm likelihood functions.

import hddm_wfpt
import bambi as bmb

# Define a function with fun(data, *) signature
def my_blackbox_loglik(data, v, sv, a, z, sz, t, st, err=1e-8):
    data = data[:, 0] * data[:, 1]

    # Our function expects inputs as float64, but they are not guaranteed to
    # come in as such --> we type convert
    return hddm_wfpt.wfpt.pdf_array(
        np.float64(data),…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@Franzi2114
Comment options

@digicosmos86
Comment options

Answer selected by digicosmos86
@Franzi2114
Comment options

@digicosmos86
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants