1.0 - 8.00 - Naive Bayes Classifier Syntax - Teradata Vantage

Teradata® Vantage Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.0
8.00
Release Date
May 2019
Content Type
Programming Reference
Publication ID
B700-4003-098K
Language
English (United States)

NaiveBayesReduce version 1.6, NaiveBayesMap version 1.7

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;