merge.mallet_model | R Documentation |
This function joins together two models that share enough parameters for this
operation to make some sense, for example, an ordinary topic model and a
model of further documents created by infer_topics
.
## S3 method for class 'mallet_model' merge(x, y, weighting_dtx = identity, weighting_dty = identity)
x, |
y models with the same topic-word matrices and vocabulary |
a further pseudo-model, inheriting the topic-word matrix of the arguments, and with a document-topic matrix formed by stacking the corresponding matrices of the arguments. Note that merging an inferred topic model means that the document-topic matrix must be row-normalized.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.