1.1 - 8.10 - Naive Bayes Classifier 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)

NaiveBayesReduce version 1.8, NaiveBayesMap version 1.9

CREATE MULTISET TABLE model_table_name AS (
  SELECT * FROM NaiveBayesReduce (
    ON (
      SELECT * FROM NaiveBayesMap (
        ON { table | view | (query) }
        USING
        ResponseColumn ('response_column')
        [ NumericInputs ({ 'numeric_input_column' | numeric_input_column_range }[,...] ) ]
        [ CategoricalInputs ({ 'categorical_input_column' | categorical_input_column_range }[,...] ) ]
      ) AS alias_1
    ) PARTITION BY partition_column [ ORDER BY cnt ]
  ) AS alias_2
) WITH DATA;