7.00.02 - SQL-MapReduce Call - 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)

In this example, the family is GAUSSIAN and the default family link is IDENTITY.

DROP TABLE IF EXISTS glm_housing_model;

SELECT * FROM GLM (
  ON (SELECT 1)
  PARTITION BY 1
  InputTable ('housing_train')
  OutputTable ('glm_housing_model')
  InputColumns ('price', 'lotsize', 'bedrooms', 'bathrms',
                'stories', 'garagepl', 'driveway', 'recroom',
                'fullbase', 'gashw', 'airco', 'prefarea', 'homestyle')
  CategoricalColumns ('driveway', 'recroom', 'fullbase', 'gashw',
                       'airco', 'prefarea', 'homestyle')
  Family ('GAUSSIAN')
  Link ('IDENTITY')
  Weight ('1')
  Threshold ('0.01')
  MaxIterNum ('25')
  Step ('false')
  Intercept ('true')
);