diff --git a/bayesflow/adapters/transforms/as_set.py b/bayesflow/adapters/transforms/as_set.py index 49f1b47d3..e61828952 100644 --- a/bayesflow/adapters/transforms/as_set.py +++ b/bayesflow/adapters/transforms/as_set.py @@ -33,3 +33,10 @@ def inverse(self, data: np.ndarray, **kwargs) -> np.ndarray: return np.squeeze(data, axis=2) return data + + @classmethod + def from_config(cls, config: dict, custom_objects=None) -> "AsSet": + return cls() + + def get_config(self) -> dict: + return {} diff --git a/bayesflow/adapters/transforms/as_time_series.py b/bayesflow/adapters/transforms/as_time_series.py index 15ce04ddf..f52111146 100644 --- a/bayesflow/adapters/transforms/as_time_series.py +++ b/bayesflow/adapters/transforms/as_time_series.py @@ -30,3 +30,10 @@ def inverse(self, data: np.ndarray, **kwargs) -> np.ndarray: return np.squeeze(data, axis=2) return data + + @classmethod + def from_config(cls, config: dict, custom_objects=None) -> "AsTimeSeries": + return cls() + + def get_config(self) -> dict: + return {}