1.1 - 8.10 - TFIDF Output - Teradata Vantage

Teradata Vantage™ - Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.1
8.10
Release Date
October 2019
Content Type
Programming Reference
Publication ID
B700-4003-079K
Language
English (United States)

Output Schema

Column Data Type Description
docid Any Document identifier of document d.
term VARCHAR Term t.
tf DOUBLE PRECISION Term frequency of term t in document d, calculated as specified by Formula syntax element.
idf DOUBLE PRECISION Inverse document frequency of term t in document d, calculated by this formula:

IDF(t) = log (doccount / doccount (t))

where doccount is the number of documents in the document set and doccount (t) is the number of documents that contain the term t.

tf_idf DOUBLE PRECISION TFIDF score of term t in document d, calculated by this formula:

TFIDF(t, d) = TF(t, d) * IDF(t)