NaiveBayesTextClassifierPredict Function Syntax | Teradata Vantage - 17.05 - NaiveBayesTextClassifierPredict Syntax - Teradata Database

Teradata Vantage™ - Advanced SQL Engine Analytic Functions

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
17.05
created_date
June 2020
category
Programming Reference
featnum
B035-1206-170K
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;