LdaHoffman.putBatch

Accepts mini-batch and performs multiple E-step iterations for each document and single M-step.

This implementation is optimized for sparse documents, which contain much less unique words than a dictionary.

struct LdaHoffman(F)
size_t
putBatch
(
SliceKind kind
C
I
J
)
(
Slice!(ChopIterator!(J*, Series!(I*, C*)), 1, kind) n
,)
if (
isFloatingPoint!F
)

Parameters

n Slice!(ChopIterator!(J*, Series!(I*, C*)), 1, kind)

mini-batch, a collection of compressed documents.

maxIterations size_t

maximal number of iterations for s This implementation is optimized for sparse documents, ingle document in a batch for E-step.

Meta