Skip to content

InferenceData (.nc file) not generated for HDDMRegression with stimulus coding #18

Description

@shabnamhossein

I am using Docker version 4.35.1 (173168) for Mac (Sequoia 15.1). The Kabuki version is 0.6.5RC4 and the HDDM version is 1.0.1RC.
I am trying to run your tutorial “HDDM_Regression_Stimcoding” in the "OfficialTutorials" folder in Jupyter notebook with the addition of saving the InferenceData to be able to do posterior predictive check later. Line 16 of the tutorial is changed to:

save_name = "model_fitted/hddmregressor_example"
model_reg_infdata = m_reg.sample(500, return_infdata = True, save_name = save_name,  sample_prior = True, loglike = True, ppc = True)

However, the .nc file cannot be generated due to this error:

Start converting to InferenceData...
Start to calculate pointwise log likelihood...
The time of calculation of loglikelihood took 99.754 seconds
Start generating posterior prediction...
fail to convert posterior predictive check (self.ppc) to xarray: could not broadcast input array from shape (900,1) into shape (900,)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions