Skip to content

Reconciliate re-sampling behavior#485

Merged
digicosmos86 merged 5 commits intomainfrom
481-reconciliate-re-sampling-behavior
Jul 12, 2024
Merged

Reconciliate re-sampling behavior#485
digicosmos86 merged 5 commits intomainfrom
481-reconciliate-re-sampling-behavior

Conversation

@digicosmos86
Copy link
Copy Markdown
Collaborator

Resolves #481. Please see the issue for details. We have written tests to ensure the behavior described in #481

@digicosmos86 digicosmos86 linked an issue Jul 8, 2024 that may be closed by this pull request
Copy link
Copy Markdown
Member

@AlexanderFengler AlexanderFengler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, just see one comment.

assert "strange" in caplog.records[0].message


def test_resampling(data_ddm):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should put a not somewhere concerning the resulting behavior.
If I understand correctly, if you change sample_2 you automatically change model.traces?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the return section of the sample() method and traces object to indicate that .sample() returns a reference to model.traces object, which stores the traces of the last call to .sample().

@digicosmos86 digicosmos86 merged commit 3558223 into main Jul 12, 2024
@digicosmos86 digicosmos86 deleted the 481-reconciliate-re-sampling-behavior branch July 12, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reconciliate re-sampling behavior

2 participants