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)

Choose the same weight and number of iterations (argument maxitem) to compare the logit and probit models, so that the cverror result reflects the true strength of the models.

DROP TABLE IF EXISTS logitmodel;
DROP TABLE IF EXISTS probitmodel;
DROP TABLE IF EXISTS glmcvtable;

SELECT * FROM CROSSVALIDATION (
  ON (SELECT 1) PARTITION BY 1
  Function ('glm')
  InputTable ('admissions_train')
  OutputTable ('logitmodel', 'probitmodel')
  InputColumns ('admitted', 'masters', 'gpa', 'stats', 'programming')
  CategoricalColumns ('masters', 'stats', 'programming')
  Link ('LOGIT', 'PROBIT')
  Weight ('1', '1')
  MaxIterNum ('25', '25')
  FoldNum ('5')
  CVParams('LINK', 'WEIGHT', 'MaxIterNum')
  CVTable ('glmcvtable')
  Metric ('AUROC')
);