lenskit.metrics.basic.UniqueItemAccumulator#

class lenskit.metrics.basic.UniqueItemAccumulator#

Bases: lenskit.data.accum.Accumulator

Protocol implemented by data accumulators.

add(value)#

Add a single value to this accumulator.

Parameters:

value (lenskit.data.types.IDSequence)

Return type:

None

accumulate()#

Compute the accumulated value from this accumulator.

Return type:

int