Closed Micki-D closed 1 year ago
@Cornelius-G can you give this a test?
Base: 54.71% // Head: 54.41% // Decreases project coverage by -0.30%
:warning:
Coverage data is based on head (
df9756e
) compared to base (1f47ade
). Patch coverage: 0.00% of modified lines in pull request are covered.:exclamation: Current head df9756e differs from pull request most recent head 8875bb2. Consider uploading reports for the commit 8875bb2 to get more accurate results
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@Cornelius-G, let me know when you're done checking this out?
@oschulz I did now check this with our examples and the flat indexing seems to work again! So from my side, this would be ready to be merged. Thanks @Micki-D
Thanks @Micki-D and @Cornelius-G !
Adds support for doing
marg_s = BAT.bat_marginalize(some_shaped_samples, i)
where
i
is an Integer, Vector or Tuple of Integers or Unit Range.The new marginalized samples will have
N
ScalarShaped parameters with the keys being encoded according to the keys of the input data.N
being the number of columns selected in the marginalization process.If a range is input, Expressions corresponding to the selected columns will be generated up to a range of 5. For larger ranges strings will be used to create the encoded symbols to save memory.