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

Fixed leaf_nodes computation #3645

Merged
merged 11 commits into from
Feb 3, 2020
Merged

Conversation

lucianopaz
Copy link
Contributor

This fixes #3643. I have to run now but I'll add a test, some release notes and refactor a bit of old dangling code by tomorrow. After that, it should be ok to merge.

@lucianopaz
Copy link
Contributor Author

This should be ready for merge now. I don't know what's happening with coveralls

@lucianopaz
Copy link
Contributor Author

Rebased on top of master to get coveralls parallel reports working. Hopefully, the coverage should be fixed now.

@lucianopaz lucianopaz requested a review from rpgoldman October 17, 2019 13:00
Copy link
Contributor

@rpgoldman rpgoldman left a comment

Choose a reason for hiding this comment

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

Only minor stylistic changes. It looks ready to go.

pymc3/tests/test_sampling.py Show resolved Hide resolved
pymc3/model.py Outdated Show resolved Hide resolved
pymc3/model.py Show resolved Hide resolved
pymc3/model.py Show resolved Hide resolved
pymc3/model.py Outdated Show resolved Hide resolved
@lucianopaz
Copy link
Contributor Author

Thanks @rpgoldman for the careful review! I'll change what you suggested tomorrow

@rpgoldman
Copy link
Contributor

Thanks @rpgoldman for the careful review! I'll change what you suggested tomorrow

You're very welcome! Thanks for doing this! It will make things much more testable, which is very good!

@codecov
Copy link

codecov bot commented Oct 18, 2019

Codecov Report

Merging #3645 into master will increase coverage by 0.9%.
The diff coverage is 92.44%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #3645     +/-   ##
=========================================
+ Coverage    89.8%   90.71%   +0.9%     
=========================================
  Files         134      133      -1     
  Lines       20065    20386    +321     
=========================================
+ Hits        18020    18493    +473     
+ Misses       2045     1893    -152
Impacted Files Coverage Δ
pymc3/distributions/__init__.py 100% <ø> (ø) ⬆️
pymc3/distributions/distribution.py 94.73% <ø> (-0.39%) ⬇️
pymc3/data.py 79.76% <ø> (+0.11%) ⬆️
pymc3/ode/utils.py 100% <100%> (ø) ⬆️
pymc3/tests/test_missing.py 100% <100%> (ø) ⬆️
pymc3/tests/test_modelcontext.py 100% <100%> (ø) ⬆️
pymc3/tests/test_data_container.py 100% <100%> (ø) ⬆️
pymc3/tests/test_distributions_random.py 99.13% <100%> (-0.14%) ⬇️
pymc3/exceptions.py 100% <100%> (ø) ⬆️
pymc3/tests/test_model.py 100% <100%> (ø) ⬆️
... and 144 more

@lucianopaz
Copy link
Contributor Author

@rpgoldman, I went through the suggestions you made and now this PR should be ready for review.

@lucianopaz
Copy link
Contributor Author

It looks like the failing test was purely travis CI's fault

@junpenglao
Copy link
Member

Is this ready to merge @lucianopaz ?

pymc3/model.py Outdated Show resolved Hide resolved
Noticed @junpenglao's comment and modified for numpy formatting.
@lucianopaz
Copy link
Contributor Author

@junpenglao, yes, it should be ready to merge. I can change the minor nitpick tomorrow if no one is in a rush to merge this

@junpenglao junpenglao merged commit dfc9102 into pymc-devs:master Feb 3, 2020
@junpenglao
Copy link
Member

Awesome! Great work as always ;-)

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.

Shared vars dirty values in Deterministic RVs
3 participants