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

Proposed fix for the fully_correlated_conditional_repeat issue #1652

Merged
merged 8 commits into from
Apr 6, 2021

Conversation

johnamcleod
Copy link
Contributor

@johnamcleod johnamcleod commented Mar 25, 2021

Proposal to fix #1651.

I have expanded the unit test cases for the fully_correlated_conditional_repeat and fully_correlated_conditional to cover the problematic parameter combinations.

@codecov
Copy link

codecov bot commented Mar 25, 2021

Codecov Report

Merging #1652 (d56f6e0) into develop (5b76536) will increase coverage by 0.18%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1652      +/-   ##
===========================================
+ Coverage    96.17%   96.35%   +0.18%     
===========================================
  Files           86       86              
  Lines         3867     3868       +1     
===========================================
+ Hits          3719     3727       +8     
+ Misses         148      141       -7     
Impacted Files Coverage Δ
gpflow/conditionals/util.py 93.21% <100.00%> (+3.21%) ⬆️

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 5b76536...d56f6e0. Read the comment docs.

@st-- st-- requested a review from awav April 1, 2021 14:31
tests/gpflow/conditionals/test_multioutput.py Outdated Show resolved Hide resolved
Comment on lines 327 to 334
@pytest.fixture(name="full_cov", params=[True, False])
def _full_cov_fixture(request):
return request.param


@pytest.fixture(name="full_output_cov", params=[True, False])
def _full_output_cov_fixture(request):
return request.param
Copy link
Member

Choose a reason for hiding this comment

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

In another PR I saw this moved into a conftest.py - do you want to do that here already ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

tests/gpflow/conditionals/test_multioutput.py Outdated Show resolved Hide resolved
tests/gpflow/conditionals/test_multioutput.py Outdated Show resolved Hide resolved
@st--
Copy link
Member

st-- commented Apr 1, 2021

Thanks for spotting this & fixing it! The fix seems reasonably straightforward. I've made a few suggestions for the tests.
Would be good to get at least one of @awav / @markvdw / @vdutor to double-check this as well, but if we don't hear from them I'm happy to approve & merge it.

johnamcleod and others added 5 commits April 6, 2021 07:47
Co-authored-by: st-- <st--@users.noreply.github.com>
Co-authored-by: st-- <st--@users.noreply.github.com>
Co-authored-by: st-- <st--@users.noreply.github.com>
Copy link
Contributor

@vdutor vdutor left a comment

Choose a reason for hiding this comment

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

Beautiful tests.

@st-- st-- merged commit 21e5317 into GPflow:develop Apr 6, 2021
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.

fully_correlated_conditional_repeat fvar broadcast_to issue
3 participants