Skip to content

tests: refactor z-scoring tests #1559

@janfb

Description

@janfb

the z-scoring tests need some refactoring:

def test_z_scoring_structured(z_x, z_theta, builder):

  • variable names are confusing, e.g., net should be called build_fun
  • there are many duplicate test cases
  • why pass net(t_batch, t_batch) and not something like net(theta, x).
  • add a case for mnle

Metadata

Metadata

Assignees

No one assigned

    Labels

    improving-testsEverything to do with the sbi test suite

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions