Skip to content

Conversation

@vpratz
Copy link
Collaborator

@vpratz vpratz commented Apr 20, 2025

This draft PR is intended as a place to fix the deserialization of the TimeSeriesTransformer, described in #423.

The deserialization of the TimeSeriesTransformer is broken, but it went undetected as this network is not included in the tests yet. I already added the test, but have no fix yet. I suggest we try to come up with a fix quickly and then merge tests and fix into dev together.

The deserialization of the `TimeSeriesTransformer` is broken, but it
went undetected as this network is not included in the tests yet. This
commit adds the network, but does not resolve the deserialization
problems yet.

Regards bayesflow-org#423
@codecov
Copy link

codecov bot commented Apr 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
...esflow/networks/transformers/fusion_transformer.py 94.33% <100.00%> (+59.96%) ⬆️
...w/networks/transformers/time_series_transformer.py 87.30% <100.00%> (+5.90%) ⬆️

@vpratz vpratz marked this pull request as ready for review April 20, 2025 09:07
@vpratz
Copy link
Collaborator Author

vpratz commented Apr 20, 2025

The config functions were missing, I included them following the example from SetTransform. One difference is that I included kwargs in the serialization as well. I'm not sure yet whether we want this, but I think we can discuss this at a future point in time. Self-merging this, as it seems to fix the problem for now.

@vpratz vpratz merged commit a814aa5 into bayesflow-org:dev Apr 20, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant