TFIDF Output - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.00
1.0
Published
May 2019
Language
English (United States)
Last Update
2019-11-22
dita:mapPath
blj1506016597986.ditamap
dita:ditavalPath
blj1506016597986.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

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 argument.
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)