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;