Skip to content

batch_shape vs. batch_size in simulator and related objects #221

@paul-buerkner

Description

@paul-buerkner

I was thinking about the batch_shape argument which we use across bayesflow, especially in the simulator.

Currently, we use batch_shape = (int,) to allow for potentially multi-dimensional batch shapes. My feeling is that we will never need more than one batch dimension such that we could replace batch_shape = (int,) with batch_size = int patterns throughout. That is, with the batch_size approach, we would always only have and allow for a single batch dimension.

I was wondering what others thing about this? Tagging @LarsKue and @stefanradev93. Also, @daniel-habermann do you think we would need (or at least benefit from) multiple batch dims for multilevel models?

Metadata

Metadata

Assignees

Labels

discussionDiscuss a topic or question not necessarily with a clear output in mind.refactoringSome code shall be redesigned

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions