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

Clean MCMCChains, remove type piracy, and do not invalidate methods in Base #175

Merged
merged 15 commits into from
Feb 14, 2020

Conversation

devmotion
Copy link
Member

This PR tries to clean and improve MCMCChains quite drastically. It removes two dependencies (Showoff and KernelDensity) which do not seem to be used anywhere in the package. Moreover, it fixes some severe issues with type piracy and invalidating methods in Base (exactly as Tim Holy suspected in the discourse thread, it seems), so hopefully this improves #171 as well (there is a similar issue in AbstractMCMC as well IMO).

@codecov
Copy link

codecov bot commented Feb 13, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@ca55e4f). Click here to learn what that means.
The diff coverage is 70.21%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #175   +/-   ##
=========================================
  Coverage          ?   70.58%           
=========================================
  Files             ?       17           
  Lines             ?     1081           
  Branches          ?        0           
=========================================
  Hits              ?      763           
  Misses            ?      318           
  Partials          ?        0
Impacted Files Coverage Δ
src/MCMCChains.jl 100% <ø> (ø)
src/mcse.jl 60.71% <ø> (ø)
src/gewekediag.jl 86.36% <ø> (ø)
src/summarize.jl 61.22% <ø> (ø)
src/fileio.jl 0% <ø> (ø)
src/constructors.jl 98.64% <ø> (ø)
src/gelmandiag.jl 92.5% <ø> (ø)
src/heideldiag.jl 100% <ø> (ø)
src/rafterydiag.jl 95.12% <ø> (ø)
src/sampling.jl 50% <50%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca55e4f...8b23962. Read the comment docs.

Copy link
Member

@cpfiffer cpfiffer left a comment

Choose a reason for hiding this comment

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

Great work! I've got no comments on this.

@cpfiffer cpfiffer merged commit cf7b749 into TuringLang:master Feb 14, 2020
@goedman
Copy link
Collaborator

goedman commented Feb 14, 2020

Nice job David! Much cleaner. Haven't checked all my examples yet but until now no surprises!

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.

3 participants