Package pyspark :: Module accumulators :: Class AccumulatorParam
[frames] | no frames]

Class AccumulatorParam

source code

object --+
         |
        AccumulatorParam

Helper object that defines how to accumulate values of a given type.

Instance Methods
 
zero(self, value)
Provide a "zero value" for the type, compatible in dimensions with the provided value (e.g., a zero vector)
source code
 
addInPlace(self, value1, value2)
Add two values of the accumulator's data type, returning a new value; for efficiency, can also update value1 in place and return it.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__