text: -- This SQL code was generated by sklearn2sql (development version).
  -- Copyright 2018
  
  -- Model : CaretRegressor_glmnet
  -- Dataset : boston
  -- Database : teradata
  
  
  -- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
  
  
  
  -- Model deployment code
  
  WITH linear_input AS 
  (SELECT "ADS"."KEY" AS "KEY", CAST("ADS"."Feature_0" AS DOUBLE PRECISION) AS "Feature_0", CAST("ADS"."Feature_1" AS DOUBLE PRECISION) AS "Feature_1", CAST("ADS"."Feature_2" AS DOUBLE PRECISION) AS "Feature_2", CAST("ADS"."Feature_3" AS DOUBLE PRECISION) AS "Feature_3", CAST("ADS"."Feature_4" AS DOUBLE PRECISION) AS "Feature_4", CAST("ADS"."Feature_5" AS DOUBLE PRECISION) AS "Feature_5", CAST("ADS"."Feature_6" AS DOUBLE PRECISION) AS "Feature_6", CAST("ADS"."Feature_7" AS DOUBLE PRECISION) AS "Feature_7", CAST("ADS"."Feature_8" AS DOUBLE PRECISION) AS "Feature_8", CAST("ADS"."Feature_9" AS DOUBLE PRECISION) AS "Feature_9", CAST("ADS"."Feature_10" AS DOUBLE PRECISION) AS "Feature_10", CAST("ADS"."Feature_11" AS DOUBLE PRECISION) AS "Feature_11", CAST("ADS"."Feature_12" AS DOUBLE PRECISION) AS "Feature_12" 
  FROM boston AS "ADS"), 
  linear_model_cte AS 
  (SELECT linear_input."KEY" AS "KEY", CAST(-0.052679691514308 AS DOUBLE PRECISION) * linear_input."Feature_0" + CAST(0.016850206987048 AS DOUBLE PRECISION) * linear_input."Feature_1" + CAST(-0.037744065848786 AS DOUBLE PRECISION) * linear_input."Feature_2" + CAST(2.378129565079398 AS DOUBLE PRECISION) * linear_input."Feature_3" + CAST(-7.063548561670039 AS DOUBLE PRECISION) * linear_input."Feature_4" + CAST(4.644895382055689 AS DOUBLE PRECISION) * linear_input."Feature_5" + CAST(-0.011634644483087 AS DOUBLE PRECISION) * linear_input."Feature_6" + CAST(-0.720894257370521 AS DOUBLE PRECISION) * linear_input."Feature_7" + CAST(0.033045621214374 AS DOUBLE PRECISION) * linear_input."Feature_8" + CAST(-0.002538937326906 AS DOUBLE PRECISION) * linear_input."Feature_9" + CAST(-0.828711684005496 AS DOUBLE PRECISION) * linear_input."Feature_10" + CAST(0.008408154916369 AS DOUBLE PRECISION) * linear_input."Feature_11" + CAST(-0.369725271288943 AS DOUBLE PRECISION) * linear_input."Feature_12" + CAST(18.62107488584135 AS DOUBLE PRECISION) AS "Estimator" 
  FROM linear_input)
   SELECT linear_model_cte."KEY" AS "KEY", linear_model_cte."Estimator" AS "Estimator" 
  FROM linear_model_cte