1.0 - 8.00 - NaiveBayesTextClassifierPredict Syntax - Teradata Vantage

Teradata® Vantage Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.0
8.00
Release Date
May 2019
Content Type
Programming Reference
Publication ID
B700-4003-098K
Language
English (United States)

Version 1.7

This function requires "@coprocessor".
SELECT * FROM NaiveBayesTextClassifierPredict@coprocessor (
  ON { table | view | (query) } AS predicts PARTITION BY doc_id_column 
  ON model_table AS model DIMENSION
  USING
  InputTokenColumn ('token_column')
  [ ModelType ({ 'Multinomial' | 'Bernoulli' }) ]
  DocIDColumns ({ 'doc_id_column' | doc_id_column_range }[,...])
  [ ModelTokenColumn ('model_token_column')
    ModelCategoryColumn ('model_category_column')
    ModelProbColumn ('model_token_count_column')
  ]
  [ TopK (num_of_top_k_predictions) ]
) AS alias;