Aggregator#
- class tpcp.validate.Aggregator(_value: T)[source]#
Base class for aggregators.
You can subclass this class to create your own aggregators. The only thing you should change, is to overwrite the
aggregatemethod. Everything else should not be modified.Custom aggregators can then be used to wrap return values of score functions or they can be passed as
default_aggregatorto theScorerclass.Methods
aggregate(values, datapoints)Aggregate the values.
Return the value wrapped by aggregator.