cluster.matrix¶
-
class
cluster.matrix.
Matrix
(data, combinfunc, symmetric=False, diagonal=None)¶ Bases:
object
Object representation of the item-item matrix.
-
genmatrix
(num_processes=1)¶ Actually generate the matrix
Parameters: num_processes – If you want to use multiprocessing to split up the work and run combinfunc()
in parallel, specifynum_processes > 1
and this number of workers will be spun up, the work is split up amongst them evenly.
-
worker
()¶ Multiprocessing task function run by worker processes
-