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 PyMC3 variable is not replaced if provided in more_replacements (VI) #2891

Merged
merged 4 commits into from
Mar 10, 2018
Merged

fix PyMC3 variable is not replaced if provided in more_replacements (VI) #2891

merged 4 commits into from
Mar 10, 2018

Conversation

ferrine
Copy link
Member

@ferrine ferrine commented Mar 5, 2018

fixes #2890

@ferrine ferrine changed the title fixes #2890 fix PyMC3 variable is not replaced if provided in more_replacements (VI) Mar 5, 2018
@junpenglao
Copy link
Member

Need to add to release note also for bugfix

@@ -835,6 +835,20 @@ def test_sample_replacements(binomial_model_inference):
assert sampled.shape[0] == 101


def test_var_replacement():
X_mean = np.linspace(0, 10, 10, dtype='float32')
Copy link
Member

Choose a reason for hiding this comment

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

This is still causing test fail. Why not use dtype=theano.config.floatX?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably

@junpenglao junpenglao merged commit 999661c into pymc-devs:master Mar 10, 2018
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.

PyMC3 variable is not replaced if provided in more_replacements (VI)
2 participants