16.20 - NaiveBayesTextClassifierPredict構文 - Teradata Vantage NewSQL Engine

Teradata Vantage™ - NewSQL Engineの分析関数

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
プログラミング リファレンス
featnum
B035-1206-162K-JPN
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;