TD_NaiveBayesTextClassifierPredict Input - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantage™
Table Description
PredictorValues Contains test data, for which to predict outcomes, in document-token pairs. To transform the input document into this form, input it to TD_TextParser or ML Engine function, TextTokenizer, or TextParser.

TextTokenizer and TextParser have language-processing limitations that might limit support for Unicode input data (see Teradata Vantage™ Machine Learning Engine Analytic Function Reference, B700-4003).

Model Model output by TD_NaiveBayesTextClassifier or ML Engine NaiveBayesTextClassifierTrainer2 function. If the latter, then for schema, see Teradata Vantage™ Machine Learning Engine Analytic Function Reference, B700-4003.

PredictorValues Schema

Column Data Type Description
doc_id_column CHARACTER, VARCHAR, INTEGER, or SMALLINT Identifier of document that contains classified testing tokens.
token_column CHARACTER or VARCHAR Testing token.
accumulate_column Any Column to copy to output table.

Model Schema

For CHARACTER and VARCHAR columns, CHARACTER SET must be either UNICODE or LATIN.

Column Data Type Description
token CHARACTER or VARCHAR Classified training token.
category CHARACTER or VARCHAR Prediction category for token.
prob DOUBLE PRECISION Probability that token is in category.