Skip to content

Coordinates and values of constant_data messed up #5046

Closed
@michaelosthege

Description

@michaelosthege

Description of your problem

I have a model that has two data variables of identical dimensionality:

pymc3.Data("obs_A360", obs_A360, dims=("replicate_id", "cycle"))
pymc3.Data("obs_A600", obs_A600, dims=("replicate_id", "cycle"))

where obs_A360 and obs_A600 are numpy arrays of shape (131, 5).

Sampling works fine, also an InferenceData object is returned.

But looking into idata.constant_data the shapes, values and coordinates of those data variables are completely messed up:

  • The replicate_id coordinate became a concatenation of the string-valued replicate IDs with a numpy arange of the same length.
  • idata.posterior.replicate_id and idata.constant_data.replicate_id don't match
  • constant_data.obs_A360 and constant_data.obs_A600 have shapes (262, 5) and are half filled with nan. And not even the same way!

grafik

What's going on?!

Versions and main components

  • PyMC3 Version: main

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions