lenskit.data.accum.Accumulator#

class lenskit.data.accum.Accumulator[X, R]#

Bases: Protocol

Protocol implemented by data accumulators.

add(value)#

Add a single value to this accumulator.

Parameters:

value (X)

Return type:

None

accumulate()#

Compute the accumulated value from this accumulator.

Return type:

R