def extractFromAggregated(self, aggregated): batch = Batch() total = sum(aggregated) entropy = batch._entropy(aggregated) return [total, entropy]