Skip to content

Setting alias to random intercept of the parent parameter unexpectedly changes the name of the factor dimension #827

@digicosmos86

Description

@digicosmos86

Thank you so much, the Bambi team, for the latest version! The graphs look much cleaner now. There is one small inconsistency, though. For example: I have a model built in Bambi with the following graph (v is the parent parameter here):

image

I use model.set_alias({
"v": {
"1|participant_id": "v_1|participant_id"
}
})

After rebuilding the model, the graph looks like this:

image

Note the new plate v_1|participant_id__factor_dim. It seems that this should not be changed with aliasing like this. The corresponding dimension in the InferenceData that bambi creates also changes, creating a bit of an inconsistency here

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionIssue open for discussion, still not ready for a PR on it.enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions