Skip to content

[FEATURE] Adapter.reshape() #508

Open
@jerrymhuang

Description

@jerrymhuang

Feature Description
Very frequently, users have to change the shape of their simulation outputs as part of the configuration for generating the right data for training the approximator. Therefore, reshape() would be a great feature to have for the Adapter.

A (very rough) example usage is provided as below:

sim = {"x": np.arange(6)}

adapter = (
    bf.adapters.Adapter()
    # ...
    .reshape("x", to_shape=(3, 2))
    # ...
)

Metadata

Metadata

Assignees

Labels

featureNew feature or requestgood first issueGood for first-time contributorsuser interfaceChanges to the user interface and improvements in usability

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions