bayesflow-org/bayesflow

Add Padding to Adapter

Open

#415 opened on Apr 15, 2025

View on GitHub
 (1 comment) (1 reaction) (1 assignee)Python (85 forks)auto 404
featuregood first issueuser interface

Repository metrics

Stars
 (694 stars)
PR merge metrics
 (PR metrics pending)

Description

See #370.

We would like to add padding functionality to the Adapter in order to speed up computations when simulator outputs differ in size. For example:

adapter.pad("y", size=100, axis=-2)

when given y.shape == (32, N, 2) outputs y.shape == (32, 100, 2) for N < 100 and errors for N > 100.

Contributor guide