7.00.02 - SQL-MapReduce Call to Generate the Model - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
DROP TABLE IF EXISTS nb_iris_model;

CREATE TABLE nb_iris_model (PARTITION KEY(class)) AS
  SELECT * FROM NaiveBayesReduce (
    ON (
    SELECT * FROM NaiveBayesMap (
      ON nb_iris_input_train
      Response ('species')
      NumericInputs ('[1:4]')
    )
  ) PARTITION BY class
);