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

Change dimension ordering #50

Merged
merged 47 commits into from
Dec 12, 2022
Merged

Change dimension ordering #50

merged 47 commits into from
Dec 12, 2022

Conversation

sethaxen
Copy link
Member

@sethaxen sethaxen commented Nov 19, 2022

Changes dimension ordering for 3d arrays to be (nparams, ndraws, nchains) (ndraws, nchains, nparams) and adds method with 3d array inputs for mcse as proposed in #49.

src/rstar.jl Outdated Show resolved Hide resolved
src/rstar.jl Outdated Show resolved Hide resolved
test/mcse.jl Outdated Show resolved Hide resolved
Necessary because chain_inds are not identical to those in the previous example (now repeating with inner instead of outer)
@coveralls
Copy link

coveralls commented Nov 19, 2022

Pull Request Test Coverage Report for Build 3680309266

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 42 of 43 (97.67%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 94.507%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/rafterydiag.jl 0 1 0.0%
Totals Coverage Status
Change from base Build 3680100884: 0.09%
Covered Lines: 585
Relevant Lines: 619

💛 - Coveralls

@codecov
Copy link

codecov bot commented Nov 19, 2022

Codecov Report

Base: 94.41% // Head: 94.50% // Increases project coverage by +0.09% 🎉

Coverage data is based on head (7ae2231) compared to base (892b00c).
Patch coverage: 97.67% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
+ Coverage   94.41%   94.50%   +0.09%     
==========================================
  Files           9        9              
  Lines         609      619      +10     
==========================================
+ Hits          575      585      +10     
  Misses         34       34              
Impacted Files Coverage Δ
src/rafterydiag.jl 97.29% <0.00%> (ø)
src/discretediag.jl 89.10% <100.00%> (ø)
src/ess.jl 97.87% <100.00%> (ø)
src/gelmandiag.jl 100.00% <100.00%> (ø)
src/rstar.jl 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/discretediag.jl Outdated Show resolved Hide resolved
src/ess.jl Outdated Show resolved Hide resolved
src/gelmandiag.jl Outdated Show resolved Hide resolved
src/mcse.jl Outdated Show resolved Hide resolved
src/rstar.jl Outdated Show resolved Hide resolved
src/rstar.jl Outdated Show resolved Hide resolved
@sethaxen
Copy link
Member Author

sethaxen commented Dec 6, 2022

I opted to wait to allow mcse to take 3d inputs until tackling #39 and #22. @devmotion could you re-review this?

@sethaxen
Copy link
Member Author

Bump @devmotion do you think you will have time to review this soon?

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

Sorry @sethaxen, I missed that the PR was waiting for my review. Looks mostly good 👍 I had some minor comments and questions but there shouldn't be any major issues.

Did you rerun #49 (comment) with the updated ordering?

src/rstar.jl Outdated Show resolved Hide resolved
src/rstar.jl Outdated Show resolved Hide resolved
src/rstar.jl Show resolved Hide resolved
src/rstar.jl Outdated Show resolved Hide resolved
src/rstar.jl Outdated Show resolved Hide resolved
src/rstar.jl Outdated Show resolved Hide resolved
src/rstar.jl Outdated Show resolved Hide resolved
src/gelmandiag.jl Show resolved Hide resolved
@sethaxen
Copy link
Member Author

@devmotion I have implemented all requested changes.

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

Project.toml Outdated Show resolved Hide resolved
test/Project.toml Outdated Show resolved Hide resolved
Pkg.develop(; path=dirname(dirname(pathof(MCMCDiagnosticTools))))
Pkg.instantiate()
include(joinpath("rstar", "runtests.jl"))
if Sys.WORD_SIZE == 64
Copy link
Member

Choose a reason for hiding this comment

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

Since we do not only test XGBoost but also e.g. SVC nowadays maybe this check could be moved to rstar.jl and only XGBoost could be disabled. Not part of this PR though, and I guess nobody cares since we only run tests on 64bit anyway.

sethaxen and others added 2 commits December 12, 2022 23:18
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
@sethaxen sethaxen merged commit 8d74357 into main Dec 12, 2022
@sethaxen sethaxen deleted the unifydimorder branch December 12, 2022 23:04
tpapp added a commit to tpapp/DynamicHMC.jl that referenced this pull request Dec 13, 2022
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