Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shape argument in categorical dims #654

Merged

Conversation

bouthilx
Copy link
Member

@bouthilx bouthilx commented Sep 7, 2021

[Fixes #535]

Why:

The shape of categorical dimensions was not included in
get_prior_string, causing the lost of the shape during branching.

How:

Add the shape to get_prior_string of Categorical dimensions and add
tests to catch this issue.

Also add tests for Conflict and Resolutions of priors with different
shape.

The adaptor for a change of prior does not raise an issue anymore when
shapes are different and rather logs a warning. The trials are all
ignored is this case.

Why:

The shape of categorical dimensions was not included in
`get_prior_string`, causing the lost of the shape during branching.

How:

Add the shape to `get_prior_string` of Categorical dimensions and add
tests to catch this issue.

Also add tests for Conflict and Resolutions of priors with different
shape.

The adaptor for a change of prior does not raise an issue anymore when
shapes are different and rather logs a warning. The trials are all
ignored is this case.
@bouthilx bouthilx added the bug Indicates an unexpected problem or unintended behavior label Sep 7, 2021
@bouthilx bouthilx added this to the v0.1.17 milestone Sep 7, 2021
@bouthilx bouthilx added this to In progress in Release v0.1.17 via automation Sep 7, 2021
@bouthilx bouthilx merged commit d46c8c7 into Epistimio:develop Sep 8, 2021
Release v0.1.17 automation moved this from In progress to Done Sep 8, 2021
@bouthilx bouthilx deleted the hotfix/branching_keep_dim_shape branch September 8, 2021 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Shape attribute of dimension is lost during branching
1 participant