TD_GLMPredict Syntax | GLMPredict | Teradata Vantage - TD_GLMPredict Syntax - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-06
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢
Important: In Analytics Database Release 17.20.03.08 and later, the Model alias is changed to ModelTable in the ON clause. If you are running releases 17.20.03.01 through 17.20.03.07, use Model.

TD_GLMPredict Syntax Using Partition by Any

TD_GLMPredict (
  ON { table | view | (query) } AS  InputTable [ PARTITION BY ANY ] 
  ON { table | view | (query) } AS  ModelTable DIMENSION
  USING
  IDColumn ('id_column')
  [Accumulate({'accumulate_column'|accumulate_column_range}[,...])]
  [OutputProb ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no','n','0'})]
  [Responses ('response' [,...])]
  [ Family ('Gaussian' | 'Binomial') ] 
)

TD_GLMPredict Syntax Using Partition by Key

TD_GLMPredict (
  ON { table | view | (query) } AS InputTable PARTITION BY partition_by_column 
  ON { table | view | (query) } AS  ModelTable PARTITION BY partition_by_column
  USING
  IDColumn ('id_column')
  [PartitionColumn ('partition_column')]
  [Accumulate({'accumulate_column'|accumulate_column_range}[,...])]
  [OutputProb ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no','n','0'})]
  [Responses ('response' [,...])]
  [ Family ('Gaussian' | 'Binomial') ] 
)
You can call this function from:
  • The FROM clause of a SELECT statement
  • As part of a CREATE TABLE statement
  • As part of a CREATE VIEW statement