Repository navigation
Give all DensityEstimators an input_shape - #1138
Merged
Merged
Conversation
8 tasks done
michaeldeistler
marked this pull request as ready for review
April 22, 2024 15:55
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1138 +/- ##
==========================================
- Coverage 85.13% 77.04% -8.10%
==========================================
Files 90 90
Lines 6652 6647 -5
==========================================
- Hits 5663 5121 -542
- Misses 989 1526 +537
Flags with carried forward coverage won't be shown. Click here to find out more.
|
michaeldeistler
force-pushed
the
xshapeestimator
branch
from
April 23, 2024 06:54
48bfc15 to
1c6f621
Compare
janfb
reviewed
Apr 23, 2024
| self._x = process_x( | ||
| x, x_shape=self._x_shape, allow_iid_x=self.potential_fn.allow_iid_x | ||
| ).to(self._device) | ||
| self._x = x.to(self._device) |
Contributor
There was a problem hiding this comment.
we don't need the allow_iid check anymore?
2 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix? Explain your changes
Closes #1135
Does the following things:
input_shapeto theDensityEstimatorinferenceclasses uses theinput_shapeandcondition_shapeof theDensityEstimatorto infer._x_shape.inference._x_shapeno longer contains a batch dimension.x_shape. These checks should be fully handled by theDensityEstimator.Checklist
Put an
xin the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.
guidelines
with
pytest.mark.slow.guidelines
main(or there are no conflicts withmain)