get_class_matrix: Get Document Class Probability Matrix

get_class_matrixR Documentation

Get Document Class Probability Matrix

Description

Gets matrix of document classifications.

Usage

get_class_matrix(
  docs,
  n_class,
  hand_labeled_index,
  doc_name,
  index_name,
  NB_init
)

Arguments

docs

[matrix] Matrix of labeled and unlabeled documents.

n_class

[numeric] Number of classes to be considered.

hand_labeled_index

[vector] Vector of index values for hand labeled documents in docs.

doc_name

[character] Character string indicating the variable in 'docs' that denotes the text of the documents .

index_name

[character] Character string indicating the variable in 'docs' that denotes the index value of the documents .

Value

[matrix] Class assignment matrix.


activetext/activeR documentation built on May 31, 2024, 10:21 a.m.