NaiveBayesTextClassifierPredict Syntax Elements - Teradata® Database

Database Analytic Functions

Product
Teradata® Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
Teradata_Vantage™___Advanced_SQL_Engine_Analytic_Functions.withLogo_upload_July2021/wnd1589838592459.ditamap
dita:ditavalPath
Teradata_Vantage™___Advanced_SQL_Engine_Analytic_Functions.withLogo_upload_July2021/ayr1485454803741.ditaval
dita:id
B035-1206
lifecycle
previous
Product Category
Teradata Vantage™
InputTokenColumn
Specify the name of the PredictorValues column that contains the tokens.
ModelType
[Optional] Specify the model type of the text classifier.
Default: 'Multinomial'
DocIDColumns
Specify the names of the PredictorValues columns that contain the document identifier.
ModelTokenColumn
[Optional] Specify the name of the Model table column that contains the tokens.
Default: First column of Model table
ModelCategoryColumn
[Optional] Specify the name of the Model table column that contains the prediction categories.
Default: Second column of Model table
ModelProbColumn
[Optional] Specify the name of the Model table column that contains the probability values.
Default: Third column of Model table
TopK
[Disallowed with Responses, otherwise optional.] Specify the number of most likely prediction categories to output with their loglikelihood values (for example, the top 10 most likely prediction categories). To see the probability of each class, use OutputProb ('true').
Default: All prediction categories
Responses
[Disallowed with TopK, otherwise optional.] Specify the labels for which to output loglikelihood values and probabilities (with OutputProb ('true')).
OutputProb
Specify whether to output the calculated probability for each observation.
Default: 'false'
Accumulate
Specify the names of the PredictorValues table columns to copy to the output table.
  • Specify either all or none of the syntax elements ModelTokenColumn, ModelCategoryColumn, and ModelProbColumn.
  • Specifying neither TopK nor Responses is equivalent to specifying TopK.