We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From another project:
from __future__ import annotations from attrs import frozen, field from tensorwaves.interface import DataSample, DataTransformer @frozen class ChainedDataTransformer(DataTransformer): transformers: tuple[DataTransformer] = field(converter=tuple) extend: bool = True def __call__(self, data: DataSample) -> DataSample: new_data = dict(data) weights = new_data.get("weights") for transformer in self.transformers: if self.extend: new_data.update(transformer(new_data)) else: new_data = transformer(new_data) if weights is not None: new_data["weights"] = weights return new_data
The text was updated successfully, but these errors were encountered:
ChainedDataTransformer
redeboer
Successfully merging a pull request may close this issue.
From another project:
The text was updated successfully, but these errors were encountered: