Skip to content

add test for passing weights to ensemble posterior  #1304

@janfb

Description

@janfb

There was a bug in the type checking for the weights passed to the ensemble posterior, see #1299

This was not detected before because we are missing a test case for this.

To fix this issues, add a minimal test similar to here:

def test_c2st_posterior_ensemble_on_linearGaussian(

e.g., by passing uniform weights as list or as tensors (both cases should be covered. Ideally, we do not run the entire again, but just a minimal version that tests the API: minimal training, only two posteriors etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions