16.20 - NaiveBayesTextClassifierPredict Syntax - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ - NewSQL Engine Analytic Functions

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
July 2019
Content Type
Programming Reference
Publication ID
B035-1206-162K
Language
English (United States)
SELECT * FROM NaiveBayesTextClassifierPredict (
  ON { table | view | (query) } AS PredictorValues PARTITION BY doc_id_column 
  ON { table | view | (query) } AS Model DIMENSION
  USING
  InputTokenColumn ('token_column')
  [ ModelType ({ 'Multinomial' | 'Bernoulli' }) ]
  DocIDColumns ('doc_id_column'[,...])
  [ ModelTokenColumn ('model_token_column')
    ModelCategoryColumn ('model_category_column')
    ModelProbColumn ('model_token_count_column') ]
  [ TopK ({ num_of_top_k_predictions | 'num_of_top_k_predictions' }) ]
) AS alias;