calculate_gmm: Fit a Guassian Mixture Model from a document-feature matrix

View source: R/rectr.R

calculate_gmmR Documentation

Fit a Guassian Mixture Model from a document-feature matrix

Description

This function fits a guassian mixture model (GMM) from a document-feature matrix.

Usage

calculate_gmm(input_dfm, seed = NULL)

Arguments

input_dfm

a rectr_dfm object

seed

integer, to set the random seed for reproducibility. When leave as NULL, no random seed is set.

Value

a rectr_model object. rectr_model$theta is the topic-assignment matrix


chainsawriot/rectr documentation built on July 30, 2023, 2:30 p.m.