text: -- This SQL code was generated by sklearn2sql (development version).
  -- Copyright 2018
  
  -- Model : CaretRegressor_glmnet
  -- Dataset : freidman1
  -- Database : db2
  
  
  -- 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) AS "Feature_0", CAST("ADS"."Feature_1" AS DOUBLE) AS "Feature_1", CAST("ADS"."Feature_2" AS DOUBLE) AS "Feature_2", CAST("ADS"."Feature_3" AS DOUBLE) AS "Feature_3", CAST("ADS"."Feature_4" AS DOUBLE) AS "Feature_4", CAST("ADS"."Feature_5" AS DOUBLE) AS "Feature_5", CAST("ADS"."Feature_6" AS DOUBLE) AS "Feature_6", CAST("ADS"."Feature_7" AS DOUBLE) AS "Feature_7", CAST("ADS"."Feature_8" AS DOUBLE) AS "Feature_8", CAST("ADS"."Feature_9" AS DOUBLE) AS "Feature_9" 
  FROM "FREIDMAN1" AS "ADS"), 
  linear_model_cte AS 
  (SELECT linear_input."KEY" AS "KEY", 4.029896906477497 * linear_input."Feature_0" + 8.481910913094431 * linear_input."Feature_1" + -0.002990493631765967 * linear_input."Feature_2" + 7.692715342749534 * linear_input."Feature_3" + 4.057627449474546 * linear_input."Feature_4" + 0.0 * linear_input."Feature_5" + 0.0 * linear_input."Feature_6" + 0.71761204462301 * linear_input."Feature_7" + 0.0 * linear_input."Feature_8" + -0.7532441836565519 * linear_input."Feature_9" + 3.245988193857114 AS "Estimator" 
  FROM linear_input)
   SELECT linear_model_cte."KEY" AS "KEY", linear_model_cte."Estimator" AS "Estimator" 
  FROM linear_model_cte