Generate the posterior likelihood of speaker given their rates and predicted dfm frequencies.
posterior(log_weights, pred_docs_dfm, speakers, log_prior)The posterior likelihoods of authorship for prediction texts.
The logged author-level term weights from a stylest2 model.
A document-feature matrix for the texts to be predicted.
The speaker labels for pred_docs_dfm rows.
A vector of log prior probabilities.