IMI: Calculate IMI

Description Usage Arguments References Examples

Description

Function to calculate instantanueous mutual information for types for a given topic.

See reference for details.

Usage

1
imi(state, w = NULL)

Arguments

state

A topic model state file

w

A tbl_df with types and topics to calculate IMI for. Default is NULL.

k

The topic to calculate IMI

References

Mimno, D. and Blei, D. Bayesian Checking for Topic Models

Examples

1
2
3
# Load the state of the union topic model
load(system.file("extdata/sotu_50.Rdata", package = "topicmodeltoolbox"))
w <- type_probability(sotu_50, 10)

MansMeg/topicmodeltoolbox documentation built on May 7, 2019, 2:45 p.m.