priors: Constructor for prior object

Description Usage Arguments Details Value

View source: R/prior_object.R

Description

Constructor for prior object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
priors(
  x = NULL,
  alpha = 0.1,
  betax0 = 0.01,
  betax1 = 0.01,
  alpha_pi = 0.1,
  beta_pi = 0.1,
  non_zero_type_topics = NULL,
  non_zero_doc_topics = NULL,
  perspective_topics = NULL,
  annealing_iterations = NULL
)

Arguments

x

NULL or a list with priors to set

alpha

The alpha parameter

betax0

The betax0 parameter

betax1

The betax1 parameter

alpha_pi

The alpha_pi parameter (prior weight on perspective)

beta_pi

The beta_pi parameter (prior weight on non-perspective)

non_zero_type_topics

List of priors on wordtypes. See details.

non_zero_doc_topics

List of priors on documents. See details.

perspective_topics

Topics that contain perspectives. If NULL, all topics have perspectives. If 0, no topic has perspectives.

annealing_iterations

If simulated annealing is used. Indicate at which iteration the same position in hyper-parameter prior vector that should be used.

Details

The parameter non_zero_type_topics is a list named with types with prior settings. Each element is a type that contains a vector of non_zero probability topics. The parameter non_zero_doc_topics List of priors on documents. See details.

Value

A priors object


MansMeg/PerspectiveTopicModel documentation built on June 30, 2020, 9:20 a.m.