17.10 - TD_PolynomialFeaturesTransformの例 - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Advanced SQL Engine分析関数

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
2021年7月
Content Type
プログラミング リファレンス
Publication ID
B035-1206-171K-JPN
Language
日本語 (日本)

SQL呼び出し

SELECT * FROM TD_PolynomialFeaturesTransform (
  ON polynomialFeatures AS InputTable PARTITION BY ANY
  ON polynomialFit AS FitTable DIMENSION
  USING
  Accumulate ('[0:0]')
) AS dt;

出力

id ONE         col1        col1_col2    col1_SQUARE  col2        col2_SQUARE  
 -- ----------- ----------- ------------ ------------ ----------- ------------ 
  1 1.000000000 2.000000000  6.000000000  4.000000000 3.000000000  9.000000000
  2 1.000000000 5.000000000 30.000000000 25.000000000 6.000000000 36.000000000
  3 1.000000000 1.000000000  2.000000000  1.000000000 2.000000000  4.000000000
  4 1.000000000 5.000000000 15.000000000 25.000000000 3.000000000  9.000000000
  5 1.000000000 3.000000000  6.000000000  9.000000000 2.000000000  4.000000000