17.10 - NaiveBayesTextClassifierPredict構文 - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Advanced SQL Engine分析関数

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
2021年7月
Content Type
プログラミング リファレンス
Publication ID
B035-1206-171K-JPN
Language
日本語 (日本)
SELECT * FROM NaiveBayesTextClassifierPredict (
  ON { table | view | (query) } AS PredictorValues PARTITION BY doc_id_column [,...]
  ON { table | view | (query) } AS Model DIMENSION
  USING
  InputTokenColumn ('input_token_column')
  [ ModelType ({ 'Multinomial' | 'Bernoulli' }) ]
  DocIDColumns ({ 'doc_id_column' | 'doc_id_column_range' }[,...])
  [ ModelTokenColumn ('model_token_column')
    ModelCategoryColumn ('model_category_column')
    ModelProbColumn ('model_probability_column') ]
  [ TopK ({ num_of_top_k_predictions | 'num_of_top_k_predictions' }) |
    Responses ('response' [,...]) ]
  [ OutputProb {'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'} ]
  [ Accumulate ({ 'accumulate_column' | accumulate_column_range }[,...]) ]
) AS alias;