text: -- This SQL code was generated by sklearn2sql (development version).
  -- Copyright 2018
  
  -- Model : CaretClassifier_svmRadial_pca
  -- Dataset : iris_str_tgt
  -- Database : oracle
  
  
  -- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
  
  
  
  -- Model deployment code
  
  WITH "ADS_sca_1_OUT" AS 
  (SELECT "ADS"."KEY" AS "KEY", (CAST("ADS"."Feature_0" AS BINARY_DOUBLE) - 5.8475) / 0.8305068311812104 AS "Feature_0", (CAST("ADS"."Feature_1" AS BINARY_DOUBLE) - 3.040833333333333) / 0.4410636176856331 AS "Feature_1", (CAST("ADS"."Feature_2" AS BINARY_DOUBLE) - 3.8441666666666667) / 1.7181578875675667 AS "Feature_2", (CAST("ADS"."Feature_3" AS BINARY_DOUBLE) - 1.245833333333333) / 0.7517929083403303 AS "Feature_3" 
  FROM "IRIS_STR_TGT" "ADS"), 
  "ADS_pre_1_OUT" AS 
  (SELECT "ADS_sca_1_OUT"."KEY" AS "KEY", "ADS_sca_1_OUT"."Feature_0" * -0.5263014514387969 + "ADS_sca_1_OUT"."Feature_1" * 0.2495430740050257 + "ADS_sca_1_OUT"."Feature_2" * -0.5822562654142306 + "ADS_sca_1_OUT"."Feature_3" * -0.5671972124538438 AS "PC1", "ADS_sca_1_OUT"."Feature_0" * 0.35797855187209515 + "ADS_sca_1_OUT"."Feature_1" * 0.9312088394674648 + "ADS_sca_1_OUT"."Feature_2" * 0.009350349831007576 + "ADS_sca_1_OUT"."Feature_3" * 0.06792661227568664 AS "PC2", "ADS_sca_1_OUT"."Feature_0" * 0.7268387018817979 + "ADS_sca_1_OUT"."Feature_1" * -0.2319858665682916 + "ADS_sca_1_OUT"."Feature_2" * -0.142090941958786 + "ADS_sca_1_OUT"."Feature_3" * -0.6306331924126783 AS "PC3", "ADS_sca_1_OUT"."Feature_0" * -0.2579993024404442 + "ADS_sca_1_OUT"."Feature_1" * 0.1294639302135427 + "ADS_sca_1_OUT"."Feature_2" * 0.8004376156560707 + "ADS_sca_1_OUT"."Feature_3" * -0.5253332981610163 AS "PC4" 
  FROM "ADS_sca_1_OUT"), 
  kernel_input_with_scaling AS 
  (SELECT "ADS_pre_1_OUT"."KEY" AS "KEY", (CAST("ADS_pre_1_OUT"."PC1" AS BINARY_DOUBLE) - 5.782411586589357e-20) / 1.7024643738506824 AS "PC1", (CAST("ADS_pre_1_OUT"."PC2" AS BINARY_DOUBLE) - -4.1251724258728475e-16) / 0.9673313864403812 AS "PC2", (CAST("ADS_pre_1_OUT"."PC3" AS BINARY_DOUBLE) - -9.830099697201907e-19) / 0.3786830074967196 AS "PC3", (CAST("ADS_pre_1_OUT"."PC4" AS BINARY_DOUBLE) - -2.532696274926138e-17) / 0.1499474054786266 AS "PC4" 
  FROM "ADS_pre_1_OUT"), 
  "SV_data_CLASS_0" AS 
  (SELECT "Values".sv_idx AS sv_idx, "Values".dual_coeff AS dual_coeff, "Values".sv_0 AS sv_0, "Values".sv_1 AS sv_1, "Values".sv_2 AS sv_2, "Values".sv_3 AS sv_3 
  FROM (SELECT 0 AS sv_idx, -0.07084706186856536 AS dual_coeff, 1.3387575938307987 AS sv_0, 1.0134120666695476 AS sv_1, -0.2575108506624351 AS sv_2, -0.5024016608532013 AS sv_3 FROM DUAL UNION ALL SELECT 1 AS sv_idx, -0.5329766620528746 AS dual_coeff, 1.4893964085745592 AS sv_0, 0.12593786833584408 AS sv_1, -0.7530250924743178 AS sv_2, 0.101535763549962 AS sv_3 FROM DUAL UNION ALL SELECT 2 AS sv_idx, 0.3604463332586927 AS dual_coeff, -0.2290477843222614 AS sv_0, -0.4071901395685993 AS sv_1, 0.7640377136387312 AS sv_2, -0.762821332898633 AS sv_3 FROM DUAL UNION ALL SELECT 3 AS sv_idx, -0.772017995238873 AS dual_coeff, 1.200978322339704 AS sv_0, 0.5515797730697674 AS sv_1, -0.6757007395123698 AS sv_2, -1.3080699698291127 AS sv_3 FROM DUAL UNION ALL SELECT 4 AS sv_idx, -0.3351771997895669 AS dual_coeff, 1.4645656065716708 AS sv_0, 2.2636969182494373 AS sv_1, 0.4373265364491721 AS sv_2, 0.2690022804514796 AS sv_3 FROM DUAL UNION ALL SELECT 5 AS sv_idx, 0.40282704674696174 AS dual_coeff, -0.6931696701970625 AS sv_0, -0.08143381038463557 AS sv_1, 1.9855840473263175 AS sv_2, -0.19354612152777154 AS sv_3 FROM DUAL UNION ALL SELECT 6 AS sv_idx, -0.3134580483404453 AS dual_coeff, 1.3197565542586798 AS sv_0, -0.4479333556302453 AS sv_1, 0.303715499171448 AS sv_2, 0.18731757446329592 AS sv_3 FROM DUAL UNION ALL SELECT 7 AS sv_idx, -0.9942561001256884 AS dual_coeff, 1.3597383010881399 AS sv_0, 0.208529013752129 AS sv_1, -0.17848365845964853 AS sv_2, 1.70664291646024 AS sv_3 FROM DUAL UNION ALL SELECT 8 AS sv_idx, -0.744186903427483 AS dual_coeff, 1.1273898477974262 AS sv_0, 0.4923154064686469 AS sv_1, 0.852502544686145 AS sv_2, -1.7111844870767772 AS sv_3 FROM DUAL UNION ALL SELECT 9 AS sv_idx, 0.2682951800602691 AS dual_coeff, -0.40961603879400965 AS sv_0, 0.8051788785127104 AS sv_1, -0.2856291778067481 AS sv_2, 0.578377825256743 AS sv_3 FROM DUAL UNION ALL SELECT 10 AS sv_idx, 0.9387882509242894 AS dual_coeff, 0.3311720803058076 AS sv_0, -1.5318646212571525 AS sv_1, -0.4689638276281063 AS sv_2, -1.4531968887381883 AS sv_3 FROM DUAL UNION ALL SELECT 11 AS sv_idx, 0.10613133792788487 AS dual_coeff, -0.1159756927578675 AS sv_0, -0.8471197505535278 AS sv_1, -0.2962961875804218 AS sv_2, 0.6986756607354935 AS sv_3 FROM DUAL UNION ALL SELECT 12 AS sv_idx, 0.2829529373736771 AS dual_coeff, -0.03756936236345267 AS sv_0, -0.7865849677141171 AS sv_1, 0.8523073005241829 AS sv_2, 1.3716759808854126 AS sv_3 FROM DUAL UNION ALL SELECT 13 AS sv_idx, 0.57481193426438 AS dual_coeff, -0.6147795146654556 AS sv_0, 0.8801550475651518 AS sv_1, 1.914065816834344 AS sv_2, -0.13557158469806393 AS sv_3 FROM DUAL UNION ALL SELECT 14 AS sv_idx, -0.2901144349809581 AS dual_coeff, 1.416306063839626 AS sv_0, 1.2223298487031482 AS sv_1, -0.17489034888626204 AS sv_2, 0.15936411191278105 AS sv_3 FROM DUAL UNION ALL SELECT 15 AS sv_idx, 0.4839739407883598 AS dual_coeff, -0.10748054892090064 AS sv_0, -1.118152517348885 AS sv_1, -0.21067467510208224 AS sv_2, 1.79748722144701 AS sv_3 FROM DUAL UNION ALL SELECT 16 AS sv_idx, 0.2527937095499673 AS dual_coeff, -0.4766262633420692 AS sv_0, 0.5265311353535093 AS sv_1, 1.4251458952980132 AS sv_2, -0.6418671768968254 AS sv_3 FROM DUAL UNION ALL SELECT 17 AS sv_idx, -0.5549397414075538 AS dual_coeff, 1.1531560611812888 AS sv_0, 1.4908109200102704 AS sv_1, 1.1680930719988938 AS sv_2, -0.4623056735015083 AS sv_3 FROM DUAL UNION ALL SELECT 18 AS sv_idx, 0.6130120851652303 AS dual_coeff, 0.04831775178167375 AS sv_0, -1.0177043550349691 AS sv_1, -1.3767353921902683 AS sv_2, 0.1292949809373294 AS sv_3 FROM DUAL UNION ALL SELECT 19 AS sv_idx, 0.4190978964171447 AS dual_coeff, -0.5492798544022371 AS sv_0, -1.4071121750705449 AS sv_1, 1.83337464696438 AS sv_2, -0.9131809626961596 AS sv_3 FROM DUAL UNION ALL SELECT 20 AS sv_idx, 0.4455580191994365 AS dual_coeff, -0.009184894451922408 AS sv_0, -0.1571262461630556 AS sv_1, -0.2603541692315079 AS sv_2, 1.5447730540364581 AS sv_3 FROM DUAL UNION ALL SELECT 21 AS sv_idx, 0.6125099674061192 AS dual_coeff, -0.6538263780128065 AS sv_0, -1.6506862656401555 AS sv_1, 1.2762904419332939 AS sv_2, -1.52309619524668 AS sv_3 FROM DUAL UNION ALL SELECT 22 AS sv_idx, 0.5381550969329383 AS dual_coeff, 0.35698489266933514 AS sv_0, -1.846894117585088 AS sv_1, -0.6362912004473555 AS sv_2, 0.16347790852938487 AS sv_3 FROM DUAL UNION ALL SELECT 23 AS sv_idx, -0.8046303445282765 AS dual_coeff, 1.5674125842738735 AS sv_0, 1.9029829320970528 AS sv_1, 0.08256648741997613 AS sv_2, 1.4714742015543383 AS sv_3 FROM DUAL UNION ALL SELECT 24 AS sv_idx, -0.810594470159066 AS dual_coeff, 1.4419947262281017 AS sv_0, -1.0638122004046346 AS sv_1, -0.2992589914813187 AS sv_2, 0.00313214239519926 AS sv_3 FROM DUAL UNION ALL SELECT 25 AS sv_idx, 0.35167790119140746 AS dual_coeff, -0.4024930600127821 AS sv_0, 0.4279268390534952 AS sv_1, -1.536043829642959 AS sv_2, 0.589986189653623 AS sv_3 FROM DUAL UNION ALL SELECT 26 AS sv_idx, -0.02851334523042452 AS dual_coeff, 1.3902124696031366 AS sv_0, -0.27423446889661146 AS sv_1, -0.06628896594474408 AS sv_2, 0.5902451832044867 AS sv_3 FROM DUAL UNION ALL SELECT 27 AS sv_idx, 0.4235181529246537 AS dual_coeff, -0.22490279064694457 AS sv_0, 0.8886339591253616 AS sv_1, -1.0741764680679287 AS sv_2, 0.7742770901490198 AS sv_3 FROM DUAL UNION ALL SELECT 28 AS sv_idx, -0.41353679669598253 AS dual_coeff, 1.2923683459618378 AS sv_0, 1.2339206167555417 AS sv_1, -0.483760112293777 AS sv_2, 0.9361062325332178 AS sv_3 FROM DUAL UNION ALL SELECT 29 AS sv_idx, 0.35754589012462235 AS dual_coeff, 0.05402389213625515 AS sv_0, -1.5772878727500532 AS sv_1, 0.6630147477127027 AS sv_2, 0.1631855315956128 AS sv_3 FROM DUAL UNION ALL SELECT 30 AS sv_idx, 0.28454885818039755 AS dual_coeff, -0.67097329758465 AS sv_0, -0.9491019931972906 AS sv_1, 1.0033626968746907 AS sv_2, 0.09974331867472287 AS sv_3 FROM DUAL UNION ALL SELECT 31 AS sv_idx, 0.6569747472086396 AS dual_coeff, 0.14701973580856 AS sv_0, -2.6742424398813136 AS sv_1, 0.10671874048719518 AS sv_2, -0.20533152100746427 AS sv_3 FROM DUAL UNION ALL SELECT 32 AS sv_idx, -0.08093907636055347 AS dual_coeff, 1.561598468807048 AS sv_0, -0.4096001780780855 AS sv_1, -0.6941032036622251 AS sv_2, 0.2797026674311169 AS sv_3 FROM DUAL UNION ALL SELECT 33 AS sv_idx, -0.808812952225837 AS dual_coeff, 1.282019082124595 AS sv_0, -0.6579763111917594 AS sv_1, 0.26477247012037064 AS sv_2, -1.095825606783203 AS sv_3 FROM DUAL UNION ALL SELECT 34 AS sv_idx, 0.7056450279609341 AS dual_coeff, -0.09017905525714784 AS sv_0, -0.26109517177108804 AS sv_1, -1.6837452789962486 AS sv_2, 1.7003246746828506 AS sv_3 FROM DUAL UNION ALL SELECT 35 AS sv_idx, -1.0 AS dual_coeff, 1.180964848290088 AS sv_0, -2.320024268056499 AS sv_1, 0.5655409729458527 AS sv_2, -2.155262249053796 AS sv_3 FROM DUAL UNION ALL SELECT 36 AS sv_idx, 0.0695977741355456 AS dual_coeff, -0.7622391712317312 AS sv_0, 0.3396697158967823 AS sv_1, 0.7684633394319059 AS sv_2, -0.371526116902454 AS sv_3 FROM DUAL UNION ALL SELECT 37 AS sv_idx, 0.2381343715576543 AS dual_coeff, 0.08585405084418343 AS sv_0, -1.0527780076245596 AS sv_1, 0.8911238859455795 AS sv_2, -0.4810347886657211 AS sv_3 FROM DUAL UNION ALL SELECT 38 AS sv_idx, 0.4929340040778476 AS dual_coeff, -0.2165783957646952 AS sv_0, -0.03998635058028351 AS sv_1, -0.4626783252333973 AS sv_2, -0.2676140996169223 AS sv_3 FROM DUAL UNION ALL SELECT 39 AS sv_idx, -0.8278184142091842 AS dual_coeff, 1.3480478242108798 AS sv_0, 2.808575385659936 AS sv_1, 0.1568898296797568 AS sv_2, -0.3751773197702677 AS sv_3 FROM DUAL UNION ALL SELECT 40 AS sv_idx, -0.7771406959228098 AS dual_coeff, 1.1762102941792885 AS sv_0, 0.474759738003425 AS sv_1, 1.2518547078756983 AS sv_2, -0.15778168591507805 AS sv_3 FROM DUAL UNION ALL SELECT 41 AS sv_idx, -0.6052034612398653 AS dual_coeff, 1.333364585074794 AS sv_0, 1.5824812480915755 AS sv_1, 0.20170843650548456 AS sv_2, -1.3537965134303356 AS sv_3 FROM DUAL UNION ALL SELECT 42 AS sv_idx, -0.036843827046525134 AS dual_coeff, 1.5328238462004176 AS sv_0, 0.6774513812926509 AS sv_1, 0.10554635788315436 AS sv_2, 0.8035437121345277 AS sv_3 FROM DUAL UNION ALL SELECT 43 AS sv_idx, 0.5161649460144144 AS dual_coeff, -0.32407055475555924 AS sv_0, -0.41259245321747107 AS sv_1, 0.8326813770582218 AS sv_2, 1.8780122931237608 AS sv_3 FROM DUAL UNION ALL SELECT 44 AS sv_idx, 0.40591212145906463 AS dual_coeff, -0.3959452341354214 AS sv_0, 0.6210143972545975 AS sv_1, 0.3495675779918653 AS sv_2, 0.020085504375629268 AS sv_3 FROM DUAL) "Values"), 
  "kernel_dp_CLASS_0" AS 
  (SELECT t."KEY" AS "KEY", t.dot_product AS dot_product 
  FROM (SELECT full_join_data_sv."KEY" AS "KEY", sum(CAST(full_join_data_sv.dot_prod1 AS BINARY_DOUBLE)) + 0.0979264238500124 AS dot_product 
  FROM (SELECT kernel_input_with_scaling."KEY" AS "KEY", "SV_data_CLASS_0".dual_coeff * exp(least(100.0, greatest(-100.0, -1.0 * (power(kernel_input_with_scaling."PC1" - "SV_data_CLASS_0".sv_0, 2) + power(kernel_input_with_scaling."PC2" - "SV_data_CLASS_0".sv_1, 2) + power(kernel_input_with_scaling."PC3" - "SV_data_CLASS_0".sv_2, 2) + power(kernel_input_with_scaling."PC4" - "SV_data_CLASS_0".sv_3, 2))))) AS dot_prod1 
  FROM kernel_input_with_scaling, "SV_data_CLASS_0") full_join_data_sv GROUP BY full_join_data_sv."KEY") t), 
  "OVR_Score_CLASS_0" AS 
  (SELECT "kernel_dp_CLASS_0"."KEY" AS "KEY_CLASS_0", 1.0 / (1.0 + exp(least(100.0, greatest(-100.0, -(-("kernel_dp_CLASS_0".dot_product * -5.077275361919922 + 0.2361227860876248)))))) AS "Proba_CLASS_0", CAST(NULL AS BINARY_DOUBLE) AS "Score_CLASS_0" 
  FROM "kernel_dp_CLASS_0"), 
  "SV_data_CLASS_1" AS 
  (SELECT "Values".sv_idx AS sv_idx, "Values".dual_coeff AS dual_coeff, "Values".sv_0 AS sv_0, "Values".sv_1 AS sv_1, "Values".sv_2 AS sv_2, "Values".sv_3 AS sv_3 
  FROM (SELECT 0 AS sv_idx, 0.4574918895457435 AS dual_coeff, -1.0672290241345628 AS sv_0, 0.8965562954132525 AS sv_1, -2.563166112135787 AS sv_2, 0.4232167133147485 AS sv_3 FROM DUAL UNION ALL SELECT 1 AS sv_idx, -0.08083417716005462 AS dual_coeff, 1.3387575938307987 AS sv_0, 1.0134120666695476 AS sv_1, -0.2575108506624351 AS sv_2, -0.5024016608532013 AS sv_3 FROM DUAL UNION ALL SELECT 2 AS sv_idx, 0.6754053570804035 AS dual_coeff, -1.3546793492628288 AS sv_0, 2.6563446133816413 AS sv_1, 1.4603438342555553 AS sv_2, 1.6600078770528923 AS sv_3 FROM DUAL UNION ALL SELECT 3 AS sv_idx, -0.5458321909416585 AS dual_coeff, 1.4893964085745597 AS sv_0, 0.12593786833584408 AS sv_1, -0.7530250924743178 AS sv_2, 0.10153576354996201 AS sv_3 FROM DUAL UNION ALL SELECT 4 AS sv_idx, 0.3597331410380106 AS dual_coeff, -1.2675442200370148 AS sv_0, 0.5603319459448001 AS sv_1, 0.6102960360798437 AS sv_2, -0.2680766933657103 AS sv_3 FROM DUAL UNION ALL SELECT 5 AS sv_idx, -0.9104460179640776 AS dual_coeff, 1.200978322339704 AS sv_0, 0.5515797730697674 AS sv_1, -0.6757007395123698 AS sv_2, -1.3080699698291127 AS sv_3 FROM DUAL UNION ALL SELECT 6 AS sv_idx, -0.3990301724990751 AS dual_coeff, 1.4645656065716708 AS sv_0, 2.2636969182494373 AS sv_1, 0.4373265364491721 AS sv_2, 0.2690022804514796 AS sv_3 FROM DUAL UNION ALL SELECT 7 AS sv_idx, -0.36880417913594565 AS dual_coeff, 1.3197565542586795 AS sv_0, -0.4479333556302452 AS sv_1, 0.303715499171448 AS sv_2, 0.18731757446329592 AS sv_3 FROM DUAL UNION ALL SELECT 8 AS sv_idx, 0.004482113993576174 AS dual_coeff, -0.6354658508918914 AS sv_0, -0.6968953111054446 AS sv_1, -1.359713424717213 AS sv_2, 0.2844487562226476 AS sv_3 FROM DUAL UNION ALL SELECT 9 AS sv_idx, -1.0 AS dual_coeff, 1.35973830108814 AS sv_0, 0.208529013752129 AS sv_1, -0.17848365845964853 AS sv_2, 1.7066429164602397 AS sv_3 FROM DUAL UNION ALL SELECT 10 AS sv_idx, 0.6489506435553649 AS dual_coeff, -1.6193256669519571 AS sv_0, 0.8474938592450573 AS sv_1, 1.5102498210503517 AS sv_2, -1.821771871461186 AS sv_3 FROM DUAL UNION ALL SELECT 11 AS sv_idx, -0.8819269804899066 AS dual_coeff, 1.1273898477974262 AS sv_0, 0.4923154064686469 AS sv_1, 0.852502544686145 AS sv_2, -1.7111844870767772 AS sv_3 FROM DUAL UNION ALL SELECT 12 AS sv_idx, 0.6494006310646954 AS dual_coeff, -0.1588584015967163 AS sv_0, -1.556501926411469 AS sv_1, -2.587854078680349 AS sv_2, 0.825406561453712 AS sv_3 FROM DUAL UNION ALL SELECT 13 AS sv_idx, 0.5141753413581329 AS dual_coeff, -1.0892525899862582 AS sv_0, 0.7036516642633819 AS sv_1, -0.2591383229856554 AS sv_2, -3.075509578911965 AS sv_3 FROM DUAL UNION ALL SELECT 14 AS sv_idx, -0.32714565584098054 AS dual_coeff, 1.416306063839626 AS sv_0, 1.222329848703148 AS sv_1, -0.17489034888626204 AS sv_2, 0.15936411191278105 AS sv_3 FROM DUAL UNION ALL SELECT 15 AS sv_idx, 0.458687941690818 AS dual_coeff, -1.9115006499730287 AS sv_0, -0.021038258763963508 AS sv_1, 1.8911171948745753 AS sv_2, -0.11927454324069033 AS sv_3 FROM DUAL UNION ALL SELECT 16 AS sv_idx, 0.28531485977051135 AS dual_coeff, -1.131962624261631 AS sv_0, -0.7377801841458396 AS sv_1, 1.0667102114799558 AS sv_2, 0.669205438552054 AS sv_3 FROM DUAL UNION ALL SELECT 17 AS sv_idx, 0.07753809082248765 AS dual_coeff, -1.0137310467384235 AS sv_0, -0.1897874344831502 AS sv_1, -0.6641701650154997 AS sv_2, -0.1414272327266652 AS sv_3 FROM DUAL UNION ALL SELECT 18 AS sv_idx, -0.6504034221861563 AS dual_coeff, 1.1531560611812888 AS sv_0, 1.4908109200102704 AS sv_1, 1.1680930719988938 AS sv_2, -0.4623056735015084 AS sv_3 FROM DUAL UNION ALL SELECT 19 AS sv_idx, 0.4716240163105517 AS dual_coeff, -0.6891184023799406 AS sv_0, -1.1691931992297058 AS sv_1, -1.5127110228847276 AS sv_2, -0.6765842648931848 AS sv_3 FROM DUAL UNION ALL SELECT 20 AS sv_idx, 0.27181203078585364 AS dual_coeff, -0.9100585583762492 AS sv_0, 1.1032237303910273 AS sv_1, -2.393190664909423 AS sv_2, -0.1577723308802954 AS sv_3 FROM DUAL UNION ALL SELECT 21 AS sv_idx, 0.05010296212224412 AS dual_coeff, -0.7741800058650958 AS sv_0, 0.7156513391177087 AS sv_1, -0.6579287810350012 AS sv_2, -0.6530202842015935 AS sv_3 FROM DUAL UNION ALL SELECT 22 AS sv_idx, 0.3269620344179158 AS dual_coeff, -1.0603376425417677 AS sv_0, 0.6866585825621166 AS sv_1, 0.1183751038413496 AS sv_2, -1.2114180735100066 AS sv_3 FROM DUAL UNION ALL SELECT 23 AS sv_idx, 0.21239501370915428 AS dual_coeff, -0.9097150026608144 AS sv_0, 0.7002384593387894 AS sv_1, -1.5972608565671107 AS sv_2, -1.2225064324270563 AS sv_3 FROM DUAL UNION ALL SELECT 24 AS sv_idx, 0.37327964466272295 AS dual_coeff, -1.1252602242923606 AS sv_0, 1.0139489920759266 AS sv_1, 1.20632327016201 AS sv_2, 1.6249817204313048 AS sv_3 FROM DUAL UNION ALL SELECT 25 AS sv_idx, 0.14723102940420593 AS dual_coeff, -1.1586494718735536 AS sv_0, 0.6266863864866623 AS sv_1, -1.052067120625802 AS sv_2, -1.57372968941967 AS sv_3 FROM DUAL UNION ALL SELECT 26 AS sv_idx, 0.3959885931772725 AS dual_coeff, -0.5286750525859466 AS sv_0, -0.006901806714972248 AS sv_1, -1.3237714063682993 AS sv_2, 1.130546149523611 AS sv_3 FROM DUAL UNION ALL SELECT 27 AS sv_idx, 0.4009202368923428 AS dual_coeff, -0.8103279650090583 AS sv_0, -0.044109810739219005 AS sv_1, -0.36963017625972133 AS sv_2, 1.6595384650363063 AS sv_3 FROM DUAL UNION ALL SELECT 28 AS sv_idx, 0.15953289463138867 AS dual_coeff, -0.5061817232377643 AS sv_0, 0.03596974928969279 AS sv_1, -1.0271450483456157 AS sv_2, -0.008694495512959118 AS sv_3 FROM DUAL UNION ALL SELECT 29 AS sv_idx, -0.9653946096593534 AS dual_coeff, 1.5674125842738738 AS sv_0, 1.9029829320970528 AS sv_1, 0.08256648741997613 AS sv_2, 1.4714742015543385 AS sv_3 FROM DUAL UNION ALL SELECT 30 AS sv_idx, 0.6907351144669212 AS dual_coeff, -0.6583169852095577 AS sv_0, -0.825364736409063 AS sv_1, 0.4708917462429462 AS sv_2, 3.3506790857541064 AS sv_3 FROM DUAL UNION ALL SELECT 31 AS sv_idx, 0.3117173988096949 AS dual_coeff, -0.5322914923370617 AS sv_0, -0.5595404931996923 AS sv_1, -2.1386653840006766 AS sv_2, -0.19283920754146575 AS sv_3 FROM DUAL UNION ALL SELECT 32 AS sv_idx, 0.3378018385578124 AS dual_coeff, -0.6110860518178179 AS sv_0, -0.29320221057887275 AS sv_1, 0.5430022756061417 AS sv_2, 1.3083799564314078 AS sv_3 FROM DUAL UNION ALL SELECT 33 AS sv_idx, 0.42248409236724416 AS dual_coeff, -0.9791423086649674 AS sv_0, 1.0357441163212526 AS sv_1, -0.6871500354786788 AS sv_2, 0.5265032566931478 AS sv_3 FROM DUAL UNION ALL SELECT 34 AS sv_idx, 0.09239359487864893 AS dual_coeff, -0.6354658508918914 AS sv_0, -0.6968953111054446 AS sv_1, -1.359713424717213 AS sv_2, 0.2844487562226476 AS sv_3 FROM DUAL UNION ALL SELECT 35 AS sv_idx, 0.263204388192228 AS dual_coeff, -1.06794450187629 AS sv_0, 0.3968374154041001 AS sv_1, -0.6043030410371354 AS sv_2, -2.546224886465496 AS sv_3 FROM DUAL UNION ALL SELECT 36 AS sv_idx, 0.2548670184143412 AS dual_coeff, -1.156405197178178 AS sv_0, 1.0731058003075225 AS sv_1, -1.5732093073079765 AS sv_2, -1.3375475286692242 AS sv_3 FROM DUAL UNION ALL SELECT 37 AS sv_idx, 0.5467032946641793 AS dual_coeff, -1.3224447866057507 AS sv_0, 1.9529273379365284 AS sv_1, -0.9216964566264128 AS sv_2, -0.5434061440110245 AS sv_3 FROM DUAL UNION ALL SELECT 38 AS sv_idx, -0.742378706814178 AS dual_coeff, 1.4419947262281017 AS sv_0, -1.0638122004046346 AS sv_1, -0.2992589914813187 AS sv_2, 0.00313214239519926 AS sv_3 FROM DUAL UNION ALL SELECT 39 AS sv_idx, 0.23195292096618386 AS dual_coeff, -1.0632832779220625 AS sv_0, 0.5576265704945415 AS sv_1, 1.9708190111640569 AS sv_2, 1.5441235517811938 AS sv_3 FROM DUAL UNION ALL SELECT 40 AS sv_idx, -0.43546866917321214 AS dual_coeff, 1.2923683459618376 AS sv_0, 1.2339206167555417 AS sv_1, -0.483760112293777 AS sv_2, 0.9361062325332176 AS sv_3 FROM DUAL UNION ALL SELECT 41 AS sv_idx, -0.20971338255719246 AS dual_coeff, 1.561598468807048 AS sv_0, -0.4096001780780855 AS sv_1, -0.6941032036622251 AS sv_2, 0.2797026674311168 AS sv_3 FROM DUAL UNION ALL SELECT 42 AS sv_idx, 0.5894035344415073 AS dual_coeff, -0.6789075377717992 AS sv_0, -1.7369919644134428 AS sv_1, 0.704876462250472 AS sv_2, 0.4446963905862061 AS sv_3 FROM DUAL UNION ALL SELECT 43 AS sv_idx, -0.8089846106966074 AS dual_coeff, 1.2820190821245947 AS sv_0, -0.6579763111917595 AS sv_1, 0.26477247012037064 AS sv_2, -1.095825606783203 AS sv_3 FROM DUAL UNION ALL SELECT 44 AS sv_idx, -1.0 AS dual_coeff, 1.180964848290088 AS sv_0, -2.320024268056499 AS sv_1, 0.5655409729458527 AS sv_2, -2.155262249053796 AS sv_3 FROM DUAL UNION ALL SELECT 45 AS sv_idx, 0.2536011360526261 AS dual_coeff, -1.3968587718079994 AS sv_0, 0.2399378203088459 AS sv_1, 1.9807672784368275 AS sv_2, 0.27229635799780355 AS sv_3 FROM DUAL UNION ALL SELECT 46 AS sv_idx, 0.2548109538751149 AS dual_coeff, -1.3218981322099823 AS sv_0, 0.405421459573825 AS sv_1, 1.7886001585528615 AS sv_2, 1.7626140715601026 AS sv_3 FROM DUAL UNION ALL SELECT 47 AS sv_idx, -0.9783899095091828 AS dual_coeff, 1.3480478242108795 AS sv_0, 2.808575385659936 AS sv_1, 0.1568898296797568 AS sv_2, -0.3751773197702676 AS sv_3 FROM DUAL UNION ALL SELECT 48 AS sv_idx, -0.8431025518667808 AS dual_coeff, 1.1762102941792885 AS sv_0, 0.474759738003425 AS sv_1, 1.2518547078756983 AS sv_2, -0.15778168591507805 AS sv_3 FROM DUAL UNION ALL SELECT 49 AS sv_idx, -0.7197576976431297 AS dual_coeff, 1.3333645850747942 AS sv_0, 1.5824812480915758 AS sv_1, 0.20170843650548456 AS sv_2, -1.3537965134303358 AS sv_3 FROM DUAL UNION ALL SELECT 50 AS sv_idx, -0.12328775279562652 AS dual_coeff, 1.5328238462004176 AS sv_0, 0.6774513812926509 AS sv_1, 0.10554635788315436 AS sv_2, 0.8035437121345275 AS sv_3 FROM DUAL UNION ALL SELECT 51 AS sv_idx, 0.21766576734672563 AS dual_coeff, -0.8986158535502289 AS sv_0, -0.4284142397983223 AS sv_1, -0.01673000383205732 AS sv_2, -0.33722102919164065 AS sv_3 FROM DUAL UNION ALL SELECT 52 AS sv_idx, 0.5825311678664941 AS dual_coeff, -0.8681416850352319 AS sv_0, -0.911177722447064 AS sv_1, 0.09546468868284567 AS sv_2, -1.4536187624473933 AS sv_3 FROM DUAL) "Values"), 
  "kernel_dp_CLASS_1" AS 
  (SELECT t_1."KEY" AS "KEY", t_1.dot_product AS dot_product 
  FROM (SELECT full_join_data_sv_1."KEY" AS "KEY", sum(CAST(full_join_data_sv_1.dot_prod1 AS BINARY_DOUBLE)) + 0.298610876149777 AS dot_product 
  FROM (SELECT kernel_input_with_scaling."KEY" AS "KEY", "SV_data_CLASS_1".dual_coeff * exp(least(100.0, greatest(-100.0, -1.0 * (power(kernel_input_with_scaling."PC1" - "SV_data_CLASS_1".sv_0, 2) + power(kernel_input_with_scaling."PC2" - "SV_data_CLASS_1".sv_1, 2) + power(kernel_input_with_scaling."PC3" - "SV_data_CLASS_1".sv_2, 2) + power(kernel_input_with_scaling."PC4" - "SV_data_CLASS_1".sv_3, 2))))) AS dot_prod1 
  FROM kernel_input_with_scaling, "SV_data_CLASS_1") full_join_data_sv_1 GROUP BY full_join_data_sv_1."KEY") t_1), 
  "OVR_Score_CLASS_1" AS 
  (SELECT "kernel_dp_CLASS_1"."KEY" AS "KEY_CLASS_1", 1.0 / (1.0 + exp(least(100.0, greatest(-100.0, -(-("kernel_dp_CLASS_1".dot_product * -5.328898503122887 + 0.7646584803013178)))))) AS "Proba_CLASS_1", CAST(NULL AS BINARY_DOUBLE) AS "Score_CLASS_1" 
  FROM "kernel_dp_CLASS_1"), 
  "SV_data_CLASS_2" AS 
  (SELECT "Values".sv_idx AS sv_idx, "Values".dual_coeff AS dual_coeff, "Values".sv_0 AS sv_0, "Values".sv_1 AS sv_1, "Values".sv_2 AS sv_2, "Values".sv_3 AS sv_3 
  FROM (SELECT 0 AS sv_idx, 0.5892727968504412 AS dual_coeff, -1.0672290241345628 AS sv_0, 0.8965562954132525 AS sv_1, -2.563166112135787 AS sv_2, 0.4232167133147485 AS sv_3 FROM DUAL UNION ALL SELECT 1 AS sv_idx, 0.7140491017375087 AS dual_coeff, -1.3546793492628288 AS sv_0, 2.6563446133816413 AS sv_1, 1.4603438342555553 AS sv_2, 1.6600078770528923 AS sv_3 FROM DUAL UNION ALL SELECT 2 AS sv_idx, 1.0 AS dual_coeff, -1.2675442200370148 AS sv_0, 0.5603319459448001 AS sv_1, 0.6102960360798437 AS sv_2, -0.2680766933657103 AS sv_3 FROM DUAL UNION ALL SELECT 3 AS sv_idx, -0.7632816902177052 AS dual_coeff, -0.2290477843222614 AS sv_0, -0.4071901395685993 AS sv_1, 0.7640377136387312 AS sv_2, -0.762821332898633 AS sv_3 FROM DUAL UNION ALL SELECT 4 AS sv_idx, -1.0 AS dual_coeff, -0.34675080792126695 AS sv_0, -0.2119974770220477 AS sv_1, -0.15819006920484815 AS sv_2, 0.261524404362658 AS sv_3 FROM DUAL UNION ALL SELECT 5 AS sv_idx, -0.997465049323062 AS dual_coeff, -0.6931696701970625 AS sv_0, -0.08143381038463558 AS sv_1, 1.9855840473263175 AS sv_2, -0.19354612152777154 AS sv_3 FROM DUAL UNION ALL SELECT 6 AS sv_idx, -0.25325360634520167 AS dual_coeff, -0.10540702318024228 AS sv_0, -1.3293206464383127 AS sv_1, -0.20594023142806456 AS sv_2, -0.10703336828000429 AS sv_3 FROM DUAL UNION ALL SELECT 7 AS sv_idx, 0.002788486032651207 AS dual_coeff, -0.6354658508918913 AS sv_0, -0.6968953111054446 AS sv_1, -1.359713424717213 AS sv_2, 0.2844487562226476 AS sv_3 FROM DUAL UNION ALL SELECT 8 AS sv_idx, 1.0 AS dual_coeff, -0.5633103896390681 AS sv_0, 0.08109165235018401 AS sv_1, -0.8178736357731226 AS sv_2, 0.09481967641150019 AS sv_3 FROM DUAL UNION ALL SELECT 9 AS sv_idx, 0.7158245181472292 AS dual_coeff, -1.619325666951957 AS sv_0, 0.8474938592450573 AS sv_1, 1.5102498210503517 AS sv_2, -1.821771871461186 AS sv_3 FROM DUAL UNION ALL SELECT 10 AS sv_idx, -1.0 AS dual_coeff, -0.1646253901850123 AS sv_0, -0.17197653917801864 AS sv_1, -1.221524981126167 AS sv_2, 1.2859756100512512 AS sv_3 FROM DUAL UNION ALL SELECT 11 AS sv_idx, -1.0 AS dual_coeff, -0.40961603879400965 AS sv_0, 0.8051788785127104 AS sv_1, -0.2856291778067481 AS sv_2, 0.5783778252567429 AS sv_3 FROM DUAL UNION ALL SELECT 12 AS sv_idx, -1.0 AS dual_coeff, 0.3311720803058076 AS sv_0, -1.5318646212571525 AS sv_1, -0.4689638276281063 AS sv_2, -1.4531968887381883 AS sv_3 FROM DUAL UNION ALL SELECT 13 AS sv_idx, -0.5495024533777576 AS dual_coeff, -0.03756936236345267 AS sv_0, -0.7865849677141171 AS sv_1, 0.8523073005241829 AS sv_2, 1.3716759808854126 AS sv_3 FROM DUAL UNION ALL SELECT 14 AS sv_idx, -0.8281124420728883 AS dual_coeff, -0.6147795146654556 AS sv_0, 0.880155047565152 AS sv_1, 1.914065816834344 AS sv_2, -0.13557158469806393 AS sv_3 FROM DUAL UNION ALL SELECT 15 AS sv_idx, 0.8058096636958774 AS dual_coeff, -0.15885840159671633 AS sv_0, -1.556501926411469 AS sv_1, -2.587854078680349 AS sv_2, 0.825406561453712 AS sv_3 FROM DUAL UNION ALL SELECT 16 AS sv_idx, 0.5412642639513089 AS dual_coeff, -1.089252589986258 AS sv_0, 0.7036516642633819 AS sv_1, -0.2591383229856554 AS sv_2, -3.075509578911965 AS sv_3 FROM DUAL UNION ALL SELECT 17 AS sv_idx, -0.18278729165638402 AS dual_coeff, -0.1718725189412923 AS sv_0, -1.7658370524986495 AS sv_1, 0.0718484009342381 AS sv_2, -0.4985395211307865 AS sv_3 FROM DUAL UNION ALL SELECT 18 AS sv_idx, 0.3643083298719607 AS dual_coeff, -1.9115006499730287 AS sv_0, -0.021038258763963508 AS sv_1, 1.8911171948745753 AS sv_2, -0.11927454324069033 AS sv_3 FROM DUAL UNION ALL SELECT 19 AS sv_idx, 1.0 AS dual_coeff, -1.1319626242616307 AS sv_0, -0.7377801841458396 AS sv_1, 1.0667102114799558 AS sv_2, 0.669205438552054 AS sv_3 FROM DUAL UNION ALL SELECT 20 AS sv_idx, -0.7860493853988977 AS dual_coeff, -0.10748054892090064 AS sv_0, -1.118152517348885 AS sv_1, -0.21067467510208224 AS sv_2, 1.79748722144701 AS sv_3 FROM DUAL UNION ALL SELECT 21 AS sv_idx, 0.6343457097789157 AS dual_coeff, -0.6891184023799406 AS sv_0, -1.1691931992297058 AS sv_1, -1.5127110228847276 AS sv_2, -0.6765842648931848 AS sv_3 FROM DUAL UNION ALL SELECT 22 AS sv_idx, -1.0 AS dual_coeff, 0.04831775178167375 AS sv_0, -1.0177043550349694 AS sv_1, -1.3767353921902683 AS sv_2, 0.1292949809373294 AS sv_3 FROM DUAL UNION ALL SELECT 23 AS sv_idx, 0.03652221316726641 AS dual_coeff, -0.7741800058650958 AS sv_0, 0.7156513391177087 AS sv_1, -0.6579287810350012 AS sv_2, -0.6530202842015935 AS sv_3 FROM DUAL UNION ALL SELECT 24 AS sv_idx, 0.415453878037143 AS dual_coeff, -1.0603376425417677 AS sv_0, 0.6866585825621166 AS sv_1, 0.1183751038413496 AS sv_2, -1.2114180735100066 AS sv_3 FROM DUAL UNION ALL SELECT 25 AS sv_idx, -0.5083698044054973 AS dual_coeff, -0.5492798544022371 AS sv_0, -1.4071121750705449 AS sv_1, 1.83337464696438 AS sv_2, -0.9131809626961598 AS sv_3 FROM DUAL UNION ALL SELECT 26 AS sv_idx, 0.07519764479290332 AS dual_coeff, -0.9097150026608144 AS sv_0, 0.7002384593387894 AS sv_1, -1.5972608565671107 AS sv_2, -1.2225064324270563 AS sv_3 FROM DUAL UNION ALL SELECT 27 AS sv_idx, 0.609767023589292 AS dual_coeff, -0.7374549682085079 AS sv_0, -0.4845643241472509 AS sv_1, 0.06102961064041459 AS sv_2, -0.9067886174962738 AS sv_3 FROM DUAL UNION ALL SELECT 28 AS sv_idx, 0.3766170169355945 AS dual_coeff, -1.1252602242923608 AS sv_0, 1.0139489920759266 AS sv_1, 1.20632327016201 AS sv_2, 1.6249817204313048 AS sv_3 FROM DUAL UNION ALL SELECT 29 AS sv_idx, 0.1010495733885294 AS dual_coeff, -1.1586494718735536 AS sv_0, 0.6266863864866623 AS sv_1, -1.052067120625802 AS sv_2, -1.57372968941967 AS sv_3 FROM DUAL UNION ALL SELECT 30 AS sv_idx, -0.6343847687476456 AS dual_coeff, -0.009184894451922408 AS sv_0, -0.15712624616305562 AS sv_1, -0.2603541692315079 AS sv_2, 1.5447730540364581 AS sv_3 FROM DUAL UNION ALL SELECT 31 AS sv_idx, 1.0 AS dual_coeff, -0.5286750525859466 AS sv_0, -0.006901806714972248 AS sv_1, -1.3237714063682993 AS sv_2, 1.130546149523611 AS sv_3 FROM DUAL UNION ALL SELECT 32 AS sv_idx, -0.9919157318142354 AS dual_coeff, -0.6538263780128065 AS sv_0, -1.6506862656401555 AS sv_1, 1.2762904419332939 AS sv_2, -1.52309619524668 AS sv_3 FROM DUAL UNION ALL SELECT 33 AS sv_idx, 1.0 AS dual_coeff, -0.8103279650090583 AS sv_0, -0.044109810739219005 AS sv_1, -0.36963017625972133 AS sv_2, 1.6595384650363063 AS sv_3 FROM DUAL UNION ALL SELECT 34 AS sv_idx, -0.4685078813733798 AS dual_coeff, 0.35698489266933514 AS sv_0, -1.846894117585088 AS sv_1, -0.6362912004473555 AS sv_2, 0.1634779085293849 AS sv_3 FROM DUAL UNION ALL SELECT 35 AS sv_idx, 0.9031297773201548 AS dual_coeff, -0.5061817232377644 AS sv_0, 0.03596974928969279 AS sv_1, -1.0271450483456157 AS sv_2, -0.008694495512959118 AS sv_3 FROM DUAL UNION ALL SELECT 36 AS sv_idx, 0.8333694750358118 AS dual_coeff, -0.6583169852095576 AS sv_0, -0.825364736409063 AS sv_1, 0.4708917462429462 AS sv_2, 3.3506790857541064 AS sv_3 FROM DUAL UNION ALL SELECT 37 AS sv_idx, 0.2963890865889093 AS dual_coeff, -0.5322914923370617 AS sv_0, -0.5595404931996923 AS sv_1, -2.1386653840006766 AS sv_2, -0.19283920754146575 AS sv_3 FROM DUAL UNION ALL SELECT 38 AS sv_idx, 0.3733769772519747 AS dual_coeff, -0.7887086709092713 AS sv_0, 1.0481988195700123 AS sv_1, -2.3591085231620443 AS sv_2, -0.10596251070441513 AS sv_3 FROM DUAL UNION ALL SELECT 39 AS sv_idx, 1.0 AS dual_coeff, -0.6110860518178179 AS sv_0, -0.29320221057887275 AS sv_1, 0.5430022756061417 AS sv_2, 1.3083799564314078 AS sv_3 FROM DUAL UNION ALL SELECT 40 AS sv_idx, 1.0 AS dual_coeff, -0.8316360531190267 AS sv_0, 0.2627044381200628 AS sv_1, -0.024465458208240958 AS sv_2, 1.1302537725898394 AS sv_3 FROM DUAL UNION ALL SELECT 41 AS sv_idx, 1.0 AS dual_coeff, -0.9791423086649674 AS sv_0, 1.0357441163212526 AS sv_1, -0.6871500354786788 AS sv_2, 0.5265032566931478 AS sv_3 FROM DUAL UNION ALL SELECT 42 AS sv_idx, 0.6438385550041312 AS dual_coeff, -0.6354658508918913 AS sv_0, -0.6968953111054446 AS sv_1, -1.359713424717213 AS sv_2, 0.2844487562226476 AS sv_3 FROM DUAL UNION ALL SELECT 43 AS sv_idx, 0.27815660181458834 AS dual_coeff, -1.06794450187629 AS sv_0, 0.3968374154041001 AS sv_1, -0.6043030410371354 AS sv_2, -2.546224886465496 AS sv_3 FROM DUAL UNION ALL SELECT 44 AS sv_idx, 0.39675659684929276 AS dual_coeff, -1.156405197178178 AS sv_0, 1.0731058003075225 AS sv_1, -1.5732093073079765 AS sv_2, -1.3375475286692242 AS sv_3 FROM DUAL UNION ALL SELECT 45 AS sv_idx, 0.5342078921778383 AS dual_coeff, -1.3224447866057507 AS sv_0, 1.9529273379365284 AS sv_1, -0.9216964566264128 AS sv_2, -0.5434061440110245 AS sv_3 FROM DUAL UNION ALL SELECT 46 AS sv_idx, 0.30081555213967137 AS dual_coeff, -1.0632832779220625 AS sv_0, 0.5576265704945415 AS sv_1, 1.9708190111640569 AS sv_2, 1.5441235517811938 AS sv_3 FROM DUAL UNION ALL SELECT 47 AS sv_idx, -1.0 AS dual_coeff, -0.4024930600127821 AS sv_0, 0.42792683905349516 AS sv_1, -1.536043829642959 AS sv_2, 0.589986189653623 AS sv_3 FROM DUAL UNION ALL SELECT 48 AS sv_idx, -1.0 AS dual_coeff, -0.22490279064694457 AS sv_0, 0.8886339591253617 AS sv_1, -1.0741764680679287 AS sv_2, 0.7742770901490199 AS sv_3 FROM DUAL UNION ALL SELECT 49 AS sv_idx, -0.8138104978936771 AS dual_coeff, 0.05402389213625515 AS sv_0, -1.5772878727500532 AS sv_1, 0.6630147477127027 AS sv_2, 0.1631855315956128 AS sv_3 FROM DUAL UNION ALL SELECT 50 AS sv_idx, -1.0 AS dual_coeff, -0.67097329758465 AS sv_0, -0.9491019931972904 AS sv_1, 1.0033626968746907 AS sv_2, 0.09974331867472287 AS sv_3 FROM DUAL UNION ALL SELECT 51 AS sv_idx, -0.9226654803368672 AS dual_coeff, 0.14701973580856 AS sv_0, -2.6742424398813136 AS sv_1, 0.10671874048719518 AS sv_2, -0.20533152100746424 AS sv_3 FROM DUAL UNION ALL SELECT 52 AS sv_idx, 1.0 AS dual_coeff, -0.6789075377717992 AS sv_0, -1.7369919644134428 AS sv_1, 0.704876462250472 AS sv_2, 0.4446963905862061 AS sv_3 FROM DUAL UNION ALL SELECT 53 AS sv_idx, -1.0 AS dual_coeff, -0.3794692511316394 AS sv_0, -0.1756534081941675 AS sv_1, 0.25075742496242187 AS sv_2, 1.1417399768679672 AS sv_3 FROM DUAL UNION ALL SELECT 54 AS sv_idx, -0.90467845186389 AS dual_coeff, -0.09017905525714784 AS sv_0, -0.26109517177108804 AS sv_1, -1.6837452789962486 AS sv_2, 1.7003246746828506 AS sv_3 FROM DUAL UNION ALL SELECT 55 AS sv_idx, -1.0 AS dual_coeff, -0.7622391712317312 AS sv_0, 0.33966971589678224 AS sv_1, 0.7684633394319059 AS sv_2, -0.371526116902454 AS sv_3 FROM DUAL UNION ALL SELECT 56 AS sv_idx, -1.0 AS dual_coeff, -0.2165783957646952 AS sv_0, -0.03998635058028351 AS sv_1, -0.4626783252333973 AS sv_2, -0.26761409961692223 AS sv_3 FROM DUAL UNION ALL SELECT 57 AS sv_idx, 1.0 AS dual_coeff, -1.3968587718079994 AS sv_0, 0.2399378203088459 AS sv_1, 1.9807672784368275 AS sv_2, 0.27229635799780355 AS sv_3 FROM DUAL UNION ALL SELECT 58 AS sv_idx, 0.20376393205787924 AS dual_coeff, -1.3218981322099823 AS sv_0, 0.405421459573825 AS sv_1, 1.7886001585528615 AS sv_2, 1.7626140715601026 AS sv_3 FROM DUAL UNION ALL SELECT 59 AS sv_idx, 1.0 AS dual_coeff, -0.8986158535502287 AS sv_0, -0.4284142397983223 AS sv_1, -0.01673000383205732 AS sv_2, -0.33722102919164065 AS sv_3 FROM DUAL UNION ALL SELECT 60 AS sv_idx, -1.0 AS dual_coeff, -0.32407055475555924 AS sv_0, -0.41259245321747107 AS sv_1, 0.8326813770582218 AS sv_2, 1.8780122931237608 AS sv_3 FROM DUAL UNION ALL SELECT 61 AS sv_idx, 0.6607523149213916 AS dual_coeff, -0.8681416850352319 AS sv_0, -0.911177722447064 AS sv_1, 0.09546468868284567 AS sv_2, -1.4536187624473933 AS sv_3 FROM DUAL UNION ALL SELECT 62 AS sv_idx, -0.4540068247373586 AS dual_coeff, -0.3959452341354214 AS sv_0, 0.6210143972545975 AS sv_1, 0.3495675779918653 AS sv_2, 0.02008550437562927 AS sv_3 FROM DUAL UNION ALL SELECT 63 AS sv_idx, -0.3480356215738176 AS dual_coeff, -0.6949158150850943 AS sv_0, 0.6278031227629293 AS sv_1, 1.556657693398034 AS sv_2, 0.031214583332265795 AS sv_3 FROM DUAL) "Values"), 
  "kernel_dp_CLASS_2" AS 
  (SELECT t_2."KEY" AS "KEY", t_2.dot_product AS dot_product 
  FROM (SELECT full_join_data_sv_2."KEY" AS "KEY", sum(CAST(full_join_data_sv_2.dot_prod1 AS BINARY_DOUBLE)) + 0.260010548070222 AS dot_product 
  FROM (SELECT kernel_input_with_scaling."KEY" AS "KEY", "SV_data_CLASS_2".dual_coeff * exp(least(100.0, greatest(-100.0, -1.0 * (power(kernel_input_with_scaling."PC1" - "SV_data_CLASS_2".sv_0, 2) + power(kernel_input_with_scaling."PC2" - "SV_data_CLASS_2".sv_1, 2) + power(kernel_input_with_scaling."PC3" - "SV_data_CLASS_2".sv_2, 2) + power(kernel_input_with_scaling."PC4" - "SV_data_CLASS_2".sv_3, 2))))) AS dot_prod1 
  FROM kernel_input_with_scaling, "SV_data_CLASS_2") full_join_data_sv_2 GROUP BY full_join_data_sv_2."KEY") t_2), 
  "OVR_Score_CLASS_2" AS 
  (SELECT "kernel_dp_CLASS_2"."KEY" AS "KEY_CLASS_2", 1.0 / (1.0 + exp(least(100.0, greatest(-100.0, -(-("kernel_dp_CLASS_2".dot_product * -3.678385390227902 + 0.01391590186522363)))))) AS "Proba_CLASS_2", CAST(NULL AS BINARY_DOUBLE) AS "Score_CLASS_2" 
  FROM "kernel_dp_CLASS_2"), 
  "OVR_Join_CTE" AS 
  (SELECT "OVR_Score_CLASS_0"."KEY_CLASS_0" AS "KEY_CLASS_0", "OVR_Score_CLASS_0"."Proba_CLASS_0" AS "Proba_CLASS_0", "OVR_Score_CLASS_0"."Score_CLASS_0" AS "Score_CLASS_0", "OVR_Score_CLASS_1"."KEY_CLASS_1" AS "KEY_CLASS_1", "OVR_Score_CLASS_1"."Proba_CLASS_1" AS "Proba_CLASS_1", "OVR_Score_CLASS_1"."Score_CLASS_1" AS "Score_CLASS_1", "OVR_Score_CLASS_2"."KEY_CLASS_2" AS "KEY_CLASS_2", "OVR_Score_CLASS_2"."Proba_CLASS_2" AS "Proba_CLASS_2", "OVR_Score_CLASS_2"."Score_CLASS_2" AS "Score_CLASS_2" 
  FROM "OVR_Score_CLASS_0" LEFT OUTER JOIN "OVR_Score_CLASS_1" ON "OVR_Score_CLASS_0"."KEY_CLASS_0" = "OVR_Score_CLASS_1"."KEY_CLASS_1" LEFT OUTER JOIN "OVR_Score_CLASS_2" ON "OVR_Score_CLASS_2"."KEY_CLASS_2" = "OVR_Score_CLASS_1"."KEY_CLASS_1"), 
  orig_cte AS 
  (SELECT "OVR_Join_CTE"."KEY_CLASS_0" AS "KEY", "OVR_Join_CTE"."Score_CLASS_0" AS "Score_CLASS_0", "OVR_Join_CTE"."Score_CLASS_1" AS "Score_CLASS_1", "OVR_Join_CTE"."Score_CLASS_2" AS "Score_CLASS_2", "OVR_Join_CTE"."Proba_CLASS_0" / ("OVR_Join_CTE"."Proba_CLASS_0" + "OVR_Join_CTE"."Proba_CLASS_1" + "OVR_Join_CTE"."Proba_CLASS_2") AS "Proba_CLASS_0", "OVR_Join_CTE"."Proba_CLASS_1" / ("OVR_Join_CTE"."Proba_CLASS_0" + "OVR_Join_CTE"."Proba_CLASS_1" + "OVR_Join_CTE"."Proba_CLASS_2") AS "Proba_CLASS_1", "OVR_Join_CTE"."Proba_CLASS_2" / ("OVR_Join_CTE"."Proba_CLASS_0" + "OVR_Join_CTE"."Proba_CLASS_1" + "OVR_Join_CTE"."Proba_CLASS_2") AS "Proba_CLASS_2", CAST(NULL AS BINARY_DOUBLE) AS "LogProba_CLASS_0", CAST(NULL AS BINARY_DOUBLE) AS "LogProba_CLASS_1", CAST(NULL AS BINARY_DOUBLE) AS "LogProba_CLASS_2", CAST(NULL AS NUMBER(19)) AS "Decision", CAST(NULL AS BINARY_DOUBLE) AS "DecisionProba" 
  FROM "OVR_Join_CTE"), 
  score_class_union AS 
  (SELECT scu."KEY_u" AS "KEY_u", scu.class AS class, scu."LogProba" AS "LogProba", scu."Proba" AS "Proba", scu."Score" AS "Score" 
  FROM (SELECT orig_cte."KEY" AS "KEY_u", 'CLASS_0' AS class, orig_cte."LogProba_CLASS_0" AS "LogProba", orig_cte."Proba_CLASS_0" AS "Proba", orig_cte."Score_CLASS_0" AS "Score" 
  FROM orig_cte UNION ALL SELECT orig_cte."KEY" AS "KEY_u", 'CLASS_1' AS class, orig_cte."LogProba_CLASS_1" AS "LogProba", orig_cte."Proba_CLASS_1" AS "Proba", orig_cte."Score_CLASS_1" AS "Score" 
  FROM orig_cte UNION ALL SELECT orig_cte."KEY" AS "KEY_u", 'CLASS_2' AS class, orig_cte."LogProba_CLASS_2" AS "LogProba", orig_cte."Proba_CLASS_2" AS "Proba", orig_cte."Score_CLASS_2" AS "Score" 
  FROM orig_cte) scu), 
  score_max AS 
  (SELECT orig_cte."KEY" AS "KEY", orig_cte."Score_CLASS_0" AS "Score_CLASS_0", orig_cte."Score_CLASS_1" AS "Score_CLASS_1", orig_cte."Score_CLASS_2" AS "Score_CLASS_2", orig_cte."Proba_CLASS_0" AS "Proba_CLASS_0", orig_cte."Proba_CLASS_1" AS "Proba_CLASS_1", orig_cte."Proba_CLASS_2" AS "Proba_CLASS_2", orig_cte."LogProba_CLASS_0" AS "LogProba_CLASS_0", orig_cte."LogProba_CLASS_1" AS "LogProba_CLASS_1", orig_cte."LogProba_CLASS_2" AS "LogProba_CLASS_2", orig_cte."Decision" AS "Decision", orig_cte."DecisionProba" AS "DecisionProba", max_select."KEY_m" AS "KEY_m", max_select."max_Score" AS "max_Score" 
  FROM orig_cte LEFT OUTER JOIN (SELECT score_class_union."KEY_u" AS "KEY_m", max(score_class_union."Score") AS "max_Score" 
  FROM score_class_union GROUP BY score_class_union."KEY_u") max_select ON orig_cte."KEY" = max_select."KEY_m"), 
  union_with_max AS 
  (SELECT score_class_union."KEY_u" AS "KEY_u", score_class_union.class AS class, score_class_union."LogProba" AS "LogProba", score_class_union."Proba" AS "Proba", score_class_union."Score" AS "Score", score_max."KEY" AS "KEY", score_max."Score_CLASS_0" AS "Score_CLASS_0", score_max."Score_CLASS_1" AS "Score_CLASS_1", score_max."Score_CLASS_2" AS "Score_CLASS_2", score_max."Proba_CLASS_0" AS "Proba_CLASS_0", score_max."Proba_CLASS_1" AS "Proba_CLASS_1", score_max."Proba_CLASS_2" AS "Proba_CLASS_2", score_max."LogProba_CLASS_0" AS "LogProba_CLASS_0", score_max."LogProba_CLASS_1" AS "LogProba_CLASS_1", score_max."LogProba_CLASS_2" AS "LogProba_CLASS_2", score_max."Decision" AS "Decision", score_max."DecisionProba" AS "DecisionProba", score_max."KEY_m" AS "KEY_m", score_max."max_Score" AS "max_Score" 
  FROM score_class_union LEFT OUTER JOIN score_max ON score_class_union."KEY_u" = score_max."KEY"), 
  arg_max_cte AS 
  (SELECT score_max."KEY" AS "KEY", score_max."Score_CLASS_0" AS "Score_CLASS_0", score_max."Score_CLASS_1" AS "Score_CLASS_1", score_max."Score_CLASS_2" AS "Score_CLASS_2", score_max."Proba_CLASS_0" AS "Proba_CLASS_0", score_max."Proba_CLASS_1" AS "Proba_CLASS_1", score_max."Proba_CLASS_2" AS "Proba_CLASS_2", score_max."LogProba_CLASS_0" AS "LogProba_CLASS_0", score_max."LogProba_CLASS_1" AS "LogProba_CLASS_1", score_max."LogProba_CLASS_2" AS "LogProba_CLASS_2", score_max."Decision" AS "Decision", score_max."DecisionProba" AS "DecisionProba", score_max."KEY_m" AS "KEY_m", score_max."max_Score" AS "max_Score", "arg_max_t_Score"."KEY_Score" AS "KEY_Score", "arg_max_t_Score"."arg_max_Score" AS "arg_max_Score" 
  FROM score_max LEFT OUTER JOIN (SELECT union_with_max."KEY" AS "KEY_Score", max(union_with_max.class) AS "arg_max_Score" 
  FROM union_with_max 
  WHERE union_with_max."max_Score" <= union_with_max."Score" GROUP BY union_with_max."KEY") "arg_max_t_Score" ON score_max."KEY" = "arg_max_t_Score"."KEY_Score")
   SELECT arg_max_cte."KEY" AS "KEY", arg_max_cte."Score_CLASS_0" AS "Score_CLASS_0", arg_max_cte."Score_CLASS_1" AS "Score_CLASS_1", arg_max_cte."Score_CLASS_2" AS "Score_CLASS_2", arg_max_cte."Proba_CLASS_0" AS "Proba_CLASS_0", arg_max_cte."Proba_CLASS_1" AS "Proba_CLASS_1", arg_max_cte."Proba_CLASS_2" AS "Proba_CLASS_2", CASE WHEN (arg_max_cte."Proba_CLASS_0" IS NULL OR arg_max_cte."Proba_CLASS_0" > 0.0) THEN ln(arg_max_cte."Proba_CLASS_0") ELSE -BINARY_DOUBLE_INFINITY END AS "LogProba_CLASS_0", CASE WHEN (arg_max_cte."Proba_CLASS_1" IS NULL OR arg_max_cte."Proba_CLASS_1" > 0.0) THEN ln(arg_max_cte."Proba_CLASS_1") ELSE -BINARY_DOUBLE_INFINITY END AS "LogProba_CLASS_1", CASE WHEN (arg_max_cte."Proba_CLASS_2" IS NULL OR arg_max_cte."Proba_CLASS_2" > 0.0) THEN ln(arg_max_cte."Proba_CLASS_2") ELSE -BINARY_DOUBLE_INFINITY END AS "LogProba_CLASS_2", arg_max_cte."arg_max_Score" AS "Decision", CASE WHEN (arg_max_cte."arg_max_Score" = 'CLASS_0') THEN arg_max_cte."Proba_CLASS_0" WHEN (arg_max_cte."arg_max_Score" = 'CLASS_1') THEN arg_max_cte."Proba_CLASS_1" WHEN (arg_max_cte."arg_max_Score" = 'CLASS_2') THEN arg_max_cte."Proba_CLASS_2" END AS "DecisionProba" 
  FROM arg_max_cte