1.1 - 8.10 - NaiveBayesTextClassifierPredict_MLE Syntax - Teradata Vantage

Teradata Vantage™ - Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.1
8.10
Release Date
October 2019
Content Type
Programming Reference
Publication ID
B700-4003-079K
Language
English (United States)

Version 1.13

SELECT * FROM NaiveBayesTextClassifierPredict_MLE (
  ON { table | view | (query) } AS PredictorValues 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) ]
  [ OutputProb {'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'} ]
  [ Responses ('response' [,...]) ]
  [ Accumulate ({ 'accumulate_column' | accumulate_column_range }[,...]) ]
) AS alias;