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

[Merged by Bors] - Compat with new Bijectors.jl #454

Closed
wants to merge 5 commits into from

Conversation

torfjelde
Copy link
Member

@torfjelde torfjelde commented Jan 31, 2023

This PR makes DPPL compatible with the changes to come in TuringLang/Bijectors.jl#214.

Tests are passing locally.

Closes #455 Closes #456

@yebai
Copy link
Member

yebai commented Feb 2, 2023

bors try

bors bot added a commit that referenced this pull request Feb 2, 2023
@bors
Copy link
Contributor

bors bot commented Feb 2, 2023

try

Build failed:

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4084046939

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 149 unchanged lines in 10 files lost coverage.
  • Overall coverage decreased (-6.2%) to 74.397%

Files with Coverage Reduction New Missed Lines %
src/utils.jl 1 75.92%
src/contexts.jl 2 83.72%
src/sampler.jl 2 84.0%
src/logdensityfunction.jl 4 55.56%
src/prob_macro.jl 4 87.22%
src/abstract_varinfo.jl 5 84.85%
src/model.jl 6 84.93%
src/simple_varinfo.jl 9 62.57%
src/loglikelihoods.jl 16 54.84%
src/varinfo.jl 100 74.22%
Totals Coverage Status
Change from base Build 4048718596: -6.2%
Covered Lines: 1819
Relevant Lines: 2445

💛 - Coveralls

@codecov
Copy link

codecov bot commented Feb 3, 2023

Codecov Report

Base: 80.59% // Head: 74.39% // Decreases project coverage by -6.20% ⚠️

Coverage data is based on head (8d77d78) compared to base (a2bdc16).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #454      +/-   ##
==========================================
- Coverage   80.59%   74.39%   -6.20%     
==========================================
  Files          20       20              
  Lines        2458     2445      -13     
==========================================
- Hits         1981     1819     -162     
- Misses        477      626     +149     
Impacted Files Coverage Δ
src/abstract_varinfo.jl 84.84% <ø> (-7.58%) ⬇️
src/simple_varinfo.jl 62.56% <ø> (-5.03%) ⬇️
src/test_utils.jl 89.16% <100.00%> (ø)
src/loglikelihoods.jl 54.83% <0.00%> (-25.81%) ⬇️
src/logdensityfunction.jl 55.55% <0.00%> (-22.23%) ⬇️
src/varinfo.jl 74.22% <0.00%> (-17.32%) ⬇️
src/selector.jl 85.71% <0.00%> (-14.29%) ⬇️
src/model.jl 84.93% <0.00%> (-8.22%) ⬇️
... and 4 more

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.

@torfjelde
Copy link
Member Author

bors try

bors bot added a commit that referenced this pull request Feb 3, 2023
@torfjelde
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Feb 3, 2023
This PR makes DPPL compatible with the changes to come in TuringLang/Bijectors.jl#214.

Tests are passing locally.

Closes #455 Closes #456
@bors
Copy link
Contributor

bors bot commented Feb 3, 2023

@bors bors bot changed the title Compat with new Bijectors.jl [Merged by Bors] - Compat with new Bijectors.jl Feb 3, 2023
@bors bors bot closed this Feb 3, 2023
@bors bors bot deleted the torfjelde/Bijectors-compat branch February 3, 2023 13:48
yebai added a commit that referenced this pull request Mar 2, 2023
…eep existing compat) (#469)

* Fixed a typo in tutorial (#451)

* CompatHelper: bump compat for Turing to 0.24 for package turing, (keep existing compat) (#450)

This pull request changes the compat entry for the `Turing` package from `0.21` to `0.21, 0.24` for package turing.
This keeps the compat entries for earlier versions.



Note: I have not tested your package with this new compat entry.
It is your responsibility to make sure that your package tests pass before you merge this pull request.

Co-authored-by: Hong Ge <[email protected]>

* Some minor utility improvements (#452)

This PR does the following:
- Moves the `varname_leaves` from `TestUtils` to main module.
  - It can be very useful in Turing.jl for constructing `Chains` and the like, so I think it's a good idea to make it part of the main module rather than keeping it "hidden" there.
- Makes the default `varinfo` in the constructor of `LogDensityFunction` be `model.context` rather than a new `DynamicPPL.DefaultContext`.
  - The `context` pass to `evaluate!!` will override the leaf-context in `model.context`, and so the current default constructor always uses `DefaultContext` as the leaf-context, even if the `Model` has been `contextualize`d with some other leaf-context, e.g. `PriorContext`. This PR fixes this issue.

* Always run CI  (#453)

I find the current `bors` workflow a bit tedious. Most of the time, I summon `bors` to see the CI results (see e.g. #438). Given that most `CI` tests are quick (< 10mins), we can always run them by default. 

The most time-consuming `IntegrationTests` is still run by `bors` to avoid excessive CI runs.

* Compat with new Bijectors.jl (#454)

This PR makes DPPL compatible with the changes to come in TuringLang/Bijectors.jl#214.

Tests are passing locally.

Closes #455 Closes #456

* Another Bijectors.jl compat bound bump (#457)

* CompatHelper: bump compat for MCMCChains to 6 for package test, (keep existing compat) (#467)

This pull request changes the compat entry for the `MCMCChains` package from `4.0.4, 5` to `4.0.4, 5, 6` for package test.
This keeps the compat entries for earlier versions.



Note: I have not tested your package with this new compat entry.
It is your responsibility to make sure that your package tests pass before you merge this pull request.

Co-authored-by: Hong Ge <[email protected]>

* CompatHelper: bump compat for AbstractPPL to 0.6 for package test, (keep existing compat)

---------

Co-authored-by: Hong Ge <[email protected]>
Co-authored-by: github-actions[bot] <[email protected]>
Co-authored-by: Tor Erlend Fjelde <[email protected]>
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