1.1 - 8.10 - NaiveBayesTextClassifierTrainer 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)

NaiveBayesTextClassifierTrainer version 1.9, NaiveBayesTextClassifierInternal version 1.7

SELECT * FROM NaiveBayesTextClassifierTrainer (
  ON NaiveBayesTextClassifierInternal (
  ON input_table AS InputTable PARTITION BY doc_category_column 
      [ ON categories_table AS CategoriesTable DIMENSION ]
      [ ON stop_words_table AS StopWords DIMENSION ]
      USING
      TokenColumn ('token_column')
      [ ModelType ({ 'Multinomial' | 'Bernoulli' }) ]
      [ DocIDColumns ({ 'doc_id_column' | doc_id_column_range }[,...])]
      DocCategoryColumn ('doc_category_column')
      [ CategoryColumn ('category_column') | Categories ('category' [,...]) ]
      [ StopWordsColumn ('stop_words_column') | StopWordsList ('word' [,...]) ]
  ) AS alias_1 PARTITION BY 1
) AS alias_2;