perplexity.lda.madlib: Perplexity of LDA predictions

Description Usage Arguments Value Author(s) See Also Examples

View source: R/madlib-lda.R

Description

Perplexity is a measurement of how well a probability distribution or probability model predicts a sample. This functions computes the perplexity of the prediction by linlk{predict.madlib.lda}

Usage

1
2
## S3 method for class 'lda.madlib'
perplexity(object, predict_output_table, ...)

Arguments

object

The result of madlib.lda.

predict_output_table

The result of predict on the madlib.lda object.

...

Arguments passed to or from other methods, not implemented yet.

Value

A numeric value that indicates the perplexity of the LDA prediction.

Author(s)

Author: Predictive Analytics Team at Pivotal Inc.

Maintainer: Frank McQuillan, Pivotal Inc. [email protected]

See Also

madlib.lda builds a topic model using a set of documents.

Examples

1
2
3
4
## Not run: 
## Please see the examples in madlib.lda doc.

## End(Not run)

PivotalR documentation built on May 30, 2017, 8:18 a.m.