AggregateFilter (autotransform.filter.aggregate)
The implementation for the AggregateFilter.
- class autotransform.filter.aggregate.AggregateFilter(*, inverted: bool = False, aggregator: AggregatorType, filters: Sequence[Filter])
Bases:
FilterA Filter which aggregates a list of Filters using the supplied aggregator and returns the result of the aggregation.
- aggregator
How to aggregate the filters, using any or all.
- Type:
- name
The name of the Component.
- Type:
ClassVar[FilterName]
- aggregator: AggregatorType
- classmethod from_data(data: Dict[str, Any]) AggregateFilter
Produces an instance of the component from decoded data.
- Parameters:
data (Dict[str, Any]) – The JSON decoded data.
- Returns:
An instance of the component.
- Return type:
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: ClassVar[FilterName] = 'aggregate'