Learn R Programming

SpeedReader (version 0.9.1)

compare_tf_idf_scalings: A function that performs a bunch of different forms of TF-IDF scaling to a document-term matrix.

Description

A function that performs a bunch of different forms of TF-IDF scaling to a document-term matrix.

Usage

compare_tf_idf_scalings(document_term_matrix)

Arguments

document_term_matrix

A document-term matrix as a dense or simple triplet matrix, with documents as rows, and vocabulary terms as columns. Note that internally, this function will turn the matrix into a dense matrix, so this function should only be used with moderately sized matrices.

Value

A list object containing a number of document-term matrices, each with a different form of TF-IDF scaling applied. Each list entry contains a list object with the rescaled doc-term matrix as the second entry, and a description of the method applied as the first entry.