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

Allow gpflow.utilities.triangular() to return FillScaleTriL #1605

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

st--
Copy link
Member

@st-- st-- commented Nov 12, 2020

PR type: bugfix / enhancement / new feature / doc improvement

Related issue(s)/PRs:

Summary

Proposed changes

  • ...
  • ...
  • ...

What alternatives have you considered?

Minimal working example

# Put your example code in here

PR checklist

  • New features: code is well-documented
    • detailed docstrings (API documentation)
    • notebook examples (usage demonstration)
  • The bug case / new feature is covered by unit tests
  • Code has type annotations
  • I ran the black+isort formatter (make format)
  • I locally tested that the tests pass (make check-all)

Release notes

Fully backwards compatible: yes / no

If not, why is it worth breaking backwards compatibility:

Commit message (for release notes):

  • ...

@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #1605 (cf7dc6d) into develop (282d1cd) will decrease coverage by 0.02%.
The diff coverage is 80.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1605      +/-   ##
===========================================
- Coverage    95.92%   95.90%   -0.03%     
===========================================
  Files           86       86              
  Lines         3857     3860       +3     
===========================================
+ Hits          3700     3702       +2     
- Misses         157      158       +1     
Impacted Files Coverage Δ
gpflow/utilities/bijectors.py 94.44% <80.00%> (-5.56%) ⬇️

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 282d1cd...cf7dc6d. Read the comment docs.

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.

Would you like a proper review for this? Or should I wait until you move it out of "draft"?

"""
return tfp.bijectors.FillTriangular()
if positive_diag:
Copy link
Contributor

Choose a reason for hiding this comment

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

can we not specify a default diag_bijector when positive_diag is set to True?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, None is using the TFP default (Softplus + Shift(1e-5)), see https://www.tensorflow.org/probability/api_docs/python/tfp/bijectors/FillScaleTriL

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.

None yet

2 participants