Repository: kaspersgit/ml_2_sql (language: python)

Issue:
Bump pillow from 9.1.1 to 9.3.0
Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.1.1 to 9.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/9.1.1...9.3.0)

---
updated-dependencies:
- dependency-name: pillow dependency-type: direct:production ...

Signed-off-by: dependabot[bot] <support@github.com>


Discussion / hints:

Fix patch:
diff --git a/Readme.md b/Readme.md
index 10de9bb..d87fbde 100644
--- a/Readme.md
+++ b/Readme.md
@@ -62,8 +62,8 @@ This tool can be used by anybody, but is aimed for people who want to easily tra
 3. Check the output in the newly created folder
 
 ## Try it out using own data
-1. Save csv file containing target and all features in the `input/data/` folder (more on input data at [input data](#data))
-2. Save a configuration json file in the `input/configuration/` (explained below at [configuration json](#configuration-json))
+1. Save csv file containing target and all features in the `input/data/` folder (more info on [input data](#data))
+2. Save a configuration json file in the `input/configuration/` (or create one during the next step) (more info on [config json](#configuration-json))
 3. In the terminal in the root of this folder run: 
   - `python3 run.py` (Mac/Linux)
   - `python run.py` (Windows)
@@ -73,7 +73,7 @@ This tool can be used by anybody, but is aimed for people who want to easily tra
 
 ## Testing already trained model on a new dataset
 1. Make sure new dataset has the same features as the dataset the model was trained on (same features)
-2. Save dataset in the `input/data/` folder (more on input data at [input data](#data))
+2. Save dataset in the `input/data/` folder (more info on [input data](#data))
 3. In the terminal in the root of this folder run: 
   - `python3 check_model.py` (Mac/Linux)
   - `python check_model.py` (Windows)
@@ -85,7 +85,6 @@ This tool can be used by anybody, but is aimed for people who want to easily tra
 # Input
 ## Data
 The csv file containing the data has to fulfill some basic assumptions:
-- No empty values (e.g. NULL, Na, NaN, etc.)
 - Target columns should have more than 1 unique value
 - For binary classification (target with 2 unique values) these values should be 0 and 1
 
@@ -115,6 +114,9 @@ Dictionary of parameters that can be used with model of choice (optional). Check
 - `false`, outputs the SQL model as one SELECT statement, using column aliases within the same select statement
 - `true`, outputs the SQL model as several CTEs, this can be used if column aliases can't be referenced within the same SELECT statement
 
+`sql_decimals` options:
+- Any whole positive number, rounds the 'scores' in the SQL file to X decimal places. Can be lowered to avoid any data type overflow problems, but will decrease precision.
+
 `file_type` options (optional):
 - `png`, output of features importance graphs will be static .png (smaller file).
 - `html`, output of features importance graphs will be dynamic .html (bigger file and opens in browser).
@@ -150,9 +152,7 @@ Name of target column (required)
 - Checks and config
   - Add check if variables and target are finite 
   - Add check such that variables have (enough different values)
-  - Add variables being NULL checked
   - Add random seed to config file
-  - Implement null handling (there is an implementation mentioned [here](https://github.com/interpretml/interpret/issues/18))
 
 - Performance monitoring
   - Add performance summary for easy and quick comparison (including label count, auc pr & roc, best f1-score, etc)
diff --git a/hello.json b/hello.json
new file mode 100644
index 0000000..1df2d46
--- /dev/null
+++ b/hello.json
@@ -0,0 +1,52 @@
+{
+  "version": "1.0",
+  "ebm": {
+    "outputs": [
+      {
+        "task": "classification",
+        "classes": [
+          0,
+          1
+        ],
+        "link": "logit",
+        "link_param": "nan"
+      }
+    ],
+    "intercept": [
+      -0.5625990664424884
+    ],
+    "bag_weights": [
+      753.0,
+      753.0,
+      753.0,
+      753.0,
+      753.0,
+      753.0,
+      753.0,
+      753.0
+    ],
+    "breakpoint_iteration": [
+      [
+        325,
+        365,
+        394,
+        376,
+        228,
+        334,
+        628,
+        411
+      ],
+      [
+        156,
+        136,
+        427,
+        211,
+        215,
+        167,
+        769,
+        280
+      ]
+    ],
+    "implementation": "python",
+    "implementation_params": {
+      "feature_names": 
\ No newline at end of file
diff --git a/input/configuration/example_binary_titanic.json b/input/configuration/example_binary_titanic.json
index fef229c..290f75d 100644
--- a/input/configuration/example_binary_titanic.json
+++ b/input/configuration/example_binary_titanic.json
@@ -12,7 +12,7 @@
   "post_params": {
     "calibration": "false",
     "sql_split": "true",
-    "file_type": "html"
+    "file_type": "png"
   },
   "pre_params": {
     "cv_type": "notimeseriesplit",
diff --git a/input/data/example_regression_used_cars.csv b/input/data/example_regression_used_cars.csv
index 1e3d396..212520a 100644
--- a/input/data/example_regression_used_cars.csv
+++ b/input/data/example_regression_used_cars.csv
@@ -366,7 +366,7 @@
 364,2014 Hyundai Verna 1.6 SX CRDI (O) AT,2014,Third Party insurance,Diesel,5,100000,First Owner,Automatic,2014,22.32,1582,1582,12632,3.95
 365,2018 Toyota Yaris J CVT BSIV,2018,Third Party insurance,Petrol,5,33500,First Owner,Automatic,2018,17.8,1496,1496,1055,7.5
 366,2015 Hyundai Grand i10 Magna CNG,Oct-15,Comprehensive,CNG,5,64000,First Owner,Manual,2015,1197,82,82,114,4.25
-367,2011 Honda City 1.5 S MT,2011,Third Party insurance,Petrol,5,110000,1497 cc,2011,Power Steering,1497,1186600,1186600,1464800,3.5
+367,2011 Honda City 1.5 S MT,2011,Third Party insurance,Petrol,5,110000,1497 cc,2011,Power Steering,1497,1186,1186,1464800,3.5
 368,2017 Audi Q7 3.0 TDI Quattro Technology,May-17,Comprehensive,Diesel,7,70000,Second Owner,Automatic,2017,12.07,2967,2967,2414,40
 369,2015 Hyundai Creta 1.6 Gamma SX Plus,Oct-15,Comprehensive,Petrol,5,49341,First Owner,Manual,2015,15.29,1591,1591,1213,8.42
 370,2018 Isuzu MU-X 4X2,Oct-18,Comprehensive,Diesel,7,55000,First Owner,Automatic,2018,13.8,2999,2999,175,18.95
@@ -386,7 +386,7 @@
 384,2014 Hyundai Verna 1.6 SX CRDI (O) AT,2014,Third Party insurance,Diesel,5,100000,First Owner,Automatic,2014,22.32,1582,1582,12632,3.95
 385,2018 Toyota Yaris J CVT BSIV,2018,Third Party insurance,Petrol,5,33500,First Owner,Automatic,2018,17.8,1496,1496,1055,7.5
 386,2015 Hyundai Grand i10 Magna CNG,Oct-15,Comprehensive,CNG,5,64000,First Owner,Manual,2015,1197,82,82,114,4.25
-387,2011 Honda City 1.5 S MT,2011,Third Party insurance,Petrol,5,110000,1497 cc,2011,Power Steering,1497,1186600,1186600,1464800,3.5
+387,2011 Honda City 1.5 S MT,2011,Third Party insurance,Petrol,5,110000,1497 cc,2011,Power Steering,1497,1186,1186,1464800,3.5
 388,2022 BMW 7 Series 740Li M Sport,Oct-22,Comprehensive,Petrol,4,4000,First Owner,Automatic,2022,11.86,2998,2998,33525,1.25
 389,2011 Maruti A-Star Zxi,May-12,Comprehensive,Petrol,5,48936,Second Owner,Manual,2011,19,998,998,661,2.34
 390,2019 Mitsubishi Outlander 2.4 CVT,Mar-19,Comprehensive,Petrol,7,23000,Second Owner,Automatic,2019,10.2,2360,2360,16494,19.5
@@ -909,7 +909,7 @@
 915,2020 Mercedes-Benz S-Class S 350 d,Apr-20,Third Party,Diesel,5,18346,First Owner,Automatic,2020,13.5,2925,2925,28161,9706
 917,2018 Maruti SX4 S Cross Alpha DDiS 200 SH,Feb-19,Comprehensive,Diesel,5,59710,First Owner,Manual,2018,25.1,1248,1248,885,7.8
 918,2020 Honda City VX CVT,Mar-20,Comprehensive,Petrol,5,40000,First Owner,Automatic,2020,17.4,1497,1497,1176,10.95
-919,2015 Mercedes-Benz M-Class ML 350 4Matic,May-15,Comprehensive,Diesel,5,76000,First Owner,Automatic,2015,2987,1652243800,1652243800,510,19.99
+919,2015 Mercedes-Benz M-Class ML 350 4Matic,May-15,Comprehensive,Diesel,5,76000,First Owner,Automatic,2015,2987,1652,1652,510,19.99
 920,2020 Volvo XC60 D5 Inscription,Aug-20,Comprehensive,Diesel,5,25000,Second Owner,Automatic,2020,11.2,2400,2400,215,52
 921,2014 Maruti Ritz VXi,Jun-15,Comprehensive,Petrol,5,48539,Second Owner,Manual,2014,1197,8580,8580,114,3.21
 922,2015 Honda City V MT,Sep-15,Comprehensive,Petrol,5,65000,First Owner,Manual,2015,16.8,1497,1497,1163,6.25
@@ -927,7 +927,7 @@
 934,2020 Mercedes-Benz S-Class S 350 d,Apr-20,Third Party,Diesel,5,18346,First Owner,Automatic,2020,13.5,2925,2925,28161,9706
 936,2018 Maruti SX4 S Cross Alpha DDiS 200 SH,Feb-19,Comprehensive,Diesel,5,59710,First Owner,Manual,2018,25.1,1248,1248,885,7.8
 937,2020 Honda City VX CVT,Mar-20,Comprehensive,Petrol,5,40000,First Owner,Automatic,2020,17.4,1497,1497,1176,10.95
-938,2015 Mercedes-Benz M-Class ML 350 4Matic,May-15,Comprehensive,Diesel,5,76000,First Owner,Automatic,2015,2987,1652243800,1652243800,510,19.99
+938,2015 Mercedes-Benz M-Class ML 350 4Matic,May-15,Comprehensive,Diesel,5,76000,First Owner,Automatic,2015,2987,1652,1652,510,19.99
 939,2022 Audi Q7 Technology 2022-2022,Aug-22,Comprehensive,Petrol,7,8000,First Owner,Automatic,2022,11.21,2995,2995,33525,87
 940,2019 Honda WR-V i-VTEC VX,Apr-19,Comprehensive,Petrol,5,67606,First Owner,Manual,2019,17.5,1199,1199,887,6.82
 941,2016 Audi Q3 35 TDI Quattro Premium Plus,Sep-16,Third Party insurance,Diesel,5,72135,Second Owner,Automatic,2016,15.73,1968,1968,17433,15.75
@@ -938,7 +938,7 @@
 946,2009 Mercedes-Benz S-Class S 350 L,Mar-09,Not Available,Petrol,5,92762,Fifth Owner,Automatic,2009,10.13,3498,3498,3649,8.25
 947,2018 Jaguar XF 2.0 Diesel Portfolio,Jul-18,Comprehensive,Diesel,5,14000,First Owner,Automatic,2018,19.33,1999,1999,177,35.5
 948,2018 Nissan Micra Active XV S,Aug-18,Comprehensive,Petrol,5,43293,First Owner,Manual,2018,19.49,1198,1198,6704,4.12
-949,2017 Honda City 1.5 V MT Exclusive,Aug-17,Comprehensive,Petrol,5,102786,First Owner,Manual,2017,17,1497,1497,1186600,5.95
+949,2017 Honda City 1.5 V MT Exclusive,Aug-17,Comprehensive,Petrol,5,102786,First Owner,Manual,2017,17,1497,1497,1186,5.95
 950,2015 Nissan Micra Active XV S,Dec-15,Comprehensive,Petrol,5,98751,First Owner,Manual,2015,19.49,1198,1198,6704,2.98
 951,2017 Jeep Grand Cherokee Summit 4X4,Jul-17,Comprehensive,Diesel,5,53000,First Owner,Automatic,2017,12.8,2998,2998,2396,34.9
 952,2017 BMW 3 Series 320d,May-17,Zero Dep,Diesel,5,54776,Second Owner,Automatic,2017,22.69,1995,1995,190,18.9
@@ -958,7 +958,7 @@
 966,2009 Mercedes-Benz S-Class S 350 L,Mar-09,Not Available,Petrol,5,92762,Fifth Owner,Automatic,2009,10.13,3498,3498,3649,8.25
 967,2018 Jaguar XF 2.0 Diesel Portfolio,Jul-18,Comprehensive,Diesel,5,14000,First Owner,Automatic,2018,19.33,1999,1999,177,35.5
 968,2018 Nissan Micra Active XV S,Aug-18,Comprehensive,Petrol,5,43293,First Owner,Manual,2018,19.49,1198,1198,6704,4.12
-969,2017 Honda City 1.5 V MT Exclusive,Aug-17,Comprehensive,Petrol,5,102786,First Owner,Manual,2017,17,1497,1497,1186600,5.95
+969,2017 Honda City 1.5 V MT Exclusive,Aug-17,Comprehensive,Petrol,5,102786,First Owner,Manual,2017,17,1497,1497,1186,5.95
 970,2015 Nissan Micra Active XV S,Dec-15,Comprehensive,Petrol,5,98751,First Owner,Manual,2015,19.49,1198,1198,6704,2.98
 971,2017 Jeep Grand Cherokee Summit 4X4,Jul-17,Comprehensive,Diesel,5,53000,First Owner,Automatic,2017,12.8,2998,2998,2396,34.9
 972,2017 BMW 3 Series 320d,May-17,Zero Dep,Diesel,5,54776,Second Owner,Automatic,2017,22.69,1995,1995,190,18.9
@@ -1173,7 +1173,7 @@
 1181,2014 Mercedes-Benz E-Class E 200 CGI,Nov-14,Comprehensive,Petrol,5,59000,First Owner,Automatic,2014,12,1991,1991,184,19.9
 1182,2014 Hyundai i10 Magna 1.1L,Nov-14,Third Party,Petrol,5,29584,First Owner,Manual,2014,1086,6805,6805,9904,3.7
 1183,2013 Nissan Sunny Petrol Special Edition,2013,Third Party insurance,Petrol,5,80000,Third Owner,Manual,2013,16.95,1498,1498,977,3
-1184,2011 Honda City 1.5 S MT,Apr-11,Third Party,Petrol,5,87217,First Owner,Manual,2011,17,1497,1497,1186600,3.73
+1184,2011 Honda City 1.5 S MT,Apr-11,Third Party,Petrol,5,87217,First Owner,Manual,2011,17,1497,1497,1186,3.73
 1185,2017 Tata Tiago 1.2 Revotron XT,Feb-18,Third Party,Petrol,5,77482,Second Owner,Manual,2017,23.84,1199,1199,84,3.99
 1186,2018 Honda Jazz 1.2 V AT i VTEC,Oct-18,Comprehensive,Petrol,5,60000,First Owner,Automatic,2018,19,1199,1199,887,6.25
 1187,2020 Tata Tiago XZ,Nov-20,Third Party insurance,Petrol,5,34312,First Owner,Manual,2020,20.09,1199,1199,8482,5.57
@@ -1495,7 +1495,7 @@
 1504,2020 Hyundai Grand i10 Nios Sportz CNG,Oct-20,Comprehensive,CNG,5,27019,First Owner,Manual,2020,1197,6805,6805,952,6.7
 1505,2016 Audi A3 35 TDI Premium Plus,2016,Third Party insurance,Diesel,5,80000,1968 cc,2016,Power Steering,1968,143,143,320,15.3
 1506,2020 Maruti Vitara Brezza ZDi AMT,Feb-20,Comprehensive,Diesel,5,24000,First Owner,Automatic,2020,24.3,1248,1248,885,9.95
-1507,2010 Honda City 1.5 V MT,Jan-10,Comprehensive,Petrol,5,32000,First Owner,Manual,2010,17,1497,1497,1186600,2.4
+1507,2010 Honda City 1.5 V MT,Jan-10,Comprehensive,Petrol,5,32000,First Owner,Manual,2010,17,1497,1497,1186,2.4
 1508,2020 Volvo XC40 T4 R-Design BSIV,Sep-20,Third Party insurance,Petrol,5,22600,First Owner,Automatic,2020,1969,190,190,300,37.75
 1509,2022 Volvo XC 90 B6 Inscription 7STR,2022,Third Party insurance,Petrol,7,10000,First Owner,Automatic,2022,17.2,1969,1969,29589,85
 1510,2019 Jeep Compass 1.4 Limited Plus BSIV,May-19,Comprehensive,Petrol,5,34000,First Owner,Automatic,2019,16,1368,1368,16077,17.5
diff --git a/requirements.txt b/requirements.txt
index 148fe66..b0712cc 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -32,8 +32,8 @@ imbalanced-learn==0.9.0
 imblearn==0.0
 importlib-metadata==4.11.3
 iniconfig==2.0.0
-interpret==0.4.2
-interpret-core==0.4.2
+interpret==0.5.1
+interpret-core==0.5.1
 ipykernel==6.13.0
 ipython==7.32.0
 itsdangerous==2.1.2
@@ -99,6 +99,7 @@ six==1.16.0
 sklearn==0.0
 skope-rules==1.0.1
 slicer==0.0.7
+sql-formatter==0.6.2
 statsmodels==0.14.0
 tabulate==0.9.0
 tenacity==8.0.1
diff --git a/run.py b/run.py
index a2c633e..20bf64c 100644
--- a/run.py
+++ b/run.py
@@ -44,9 +44,6 @@
 
 print(f"CSV file {csv_path} will be used for modelling")
 
-# Function to create a new config file
-def create_new_config(csv_path):
-
 # Function to create a new config file
 def create_new_config(csv_path):
     if sys.platform == "win32":
diff --git a/scripts/create_config.py b/scripts/create_config.py
index 32e67d1..193c8dd 100644
--- a/scripts/create_config.py
+++ b/scripts/create_config.py
@@ -57,6 +57,7 @@ def create_config(args):
             "post_params": {
                 "calibration": "false",
                 "sql_split": "true",
+                "sql_decimals": 15,
                 "file_type": "html",
             },
             "pre_params": {
diff --git a/scripts/main.py b/scripts/main.py
index 2b5e5e8..28fb1a6 100644
--- a/scripts/main.py
+++ b/scripts/main.py
@@ -59,7 +59,7 @@ def main(args):
     logging.info(f"Configuration file content: \n{configuration}")
 
     # Perform some basic checks
-    checkInputDataHard(data, configuration)
+    checkInputDataHard(data, configuration, logging)
 
     # set model type based on target value
     if (data[target_col].dtype == "float") | (
@@ -104,7 +104,7 @@ def main(args):
 
     # Create SQL version of model and save it
     globals()[model_name + "_as_code"].save_model_and_extras(
-        clf, given_name, post_params["sql_split"], logging
+        clf, given_name, post_params, logging
     )
 
     # Exit with code 0 for success
diff --git a/scripts/utils/helper_functions/checks.py b/scripts/utils/helper_functions/checks.py
index 226e316..3f31614 100644
--- a/scripts/utils/helper_functions/checks.py
+++ b/scripts/utils/helper_functions/checks.py
@@ -1,24 +1,24 @@
 import numpy as np
 
 
-def checkTargetHard(target):
+def checkTargetHard(target, logging):
     if target.nunique() == 1:
         raise Exception("Target column needs more than 1 unique value")
 
 
-def checkFeaturesHard(features):
+def checkFeatures(features, logging):
     featNullCount = features.isnull().sum()
     nullf = featNullCount[featNullCount > 0]
     if len(nullf) > 0:
-        raise Exception(f"NULL values not allowed, found the following: \n{nullf}")
+        logging.info(f"NULL values found in the data, for the following: \n{nullf}")
 
 
-def checkInputDataHard(data, config):
+def checkInputDataHard(data, config, logging):
     """
     Checks at start ensuring target and feature columns are good to go
     """
-    checkTargetHard(data[config["target"]])
-    checkFeaturesHard(data[config["features"]])
+    checkTargetHard(data[config["target"]], logging)
+    checkFeatures(data[config["features"]], logging)
 
 
 def checkAllClassesHaveLeafNode(clf):
diff --git a/scripts/utils/helper_functions/config_handling.py b/scripts/utils/helper_functions/config_handling.py
index c6affaf..d57ffbf 100644
--- a/scripts/utils/helper_functions/config_handling.py
+++ b/scripts/utils/helper_functions/config_handling.py
@@ -101,6 +101,10 @@ def config_handling(configuration, data, logging):
     else:
         post_params["sql_split"] = False
 
+    # If not present set sql decimals to 15
+    if "sql_decimals" not in post_params.keys():
+        post_params["sql_decimals"] = 15
+
     # If not present set file type to png
     if "file_type" in post_params.keys():
         if post_params["file_type"].lower() == "html":
@@ -145,17 +149,31 @@ def select_ml_cols(df):
 
     print("Columns excluded for feature list:")
 
+    # Check certain column name
+    check_date_cols = ["date", "dt"]
+    
     # Check uniqeness
     for col in df.columns:
+        # Check share of unq values in the columns
         uniqueness_ratio = len(df[col].unique()) / len(df[col])
+        
+        # Check if all elements in the column have the same length
+        all_same_length = df[col].apply(lambda x: len(str(x))).nunique() == 1
+
         if uniqueness_ratio == 1:
             features_set.discard(col)
-            print(f'"{col}" is an ID column')
+            print(f'"{col}" only has unique values')
 
-        elif (uniqueness_ratio > 0.9) & (df[col].dtypes == "int"):
+        elif (uniqueness_ratio > 0.9) & (df[col].dtypes == "int") & (all_same_length):
             features_set.discard(col)
             print(f'"{col}" is int column with high cardinality')
 
+        elif any([cdc in col.lower() for cdc in check_date_cols]):
+            for cdc in check_date_cols:
+                if cdc in col.lower():
+                    features_set.discard(col)
+                    print(f'"{col}" is a date column')
+
         elif (uniqueness_ratio > 0.2) & (df[col].dtypes == "object"):
             features_set.discard(col)
             print(f'"{col}" is object column with high cardinality')
@@ -163,23 +181,14 @@ def select_ml_cols(df):
         elif df[col].nunique() == 1:
             features_set.discard(col)
             print(f'"{col}" is column with only one value')
-
-    # Check column name
-    check_date_cols = ["date", "dt"]
-
-    for cdc in check_date_cols:
-        for col in df.columns:
-            if cdc in col.lower():
+        
+        else:
+            inferred_dtype = _get_col_dtype(df[col])
+            if all(
+                ele not in str(inferred_dtype)
+                for ele in ["object", "string", "int", "float"]
+            ):
                 features_set.discard(col)
-                print(f'"{col}" is a date column')
-
-    for col in df.columns:
-        inferred_dtype = _get_col_dtype(df[col])
-        if all(
-            ele not in str(inferred_dtype)
-            for ele in ["object", "string", "int", "float"]
-        ):
-            features_set.discard(col)
-            print(f'"{col}" with datetype {inferred_dtype}')
+                print(f'"{col}" with datetype {inferred_dtype}')
 
     return features_set
diff --git a/scripts/utils/output_scripts/decision_tree_as_code.py b/scripts/utils/output_scripts/decision_tree_as_code.py
index 593f925..1192cb5 100644
--- a/scripts/utils/output_scripts/decision_tree_as_code.py
+++ b/scripts/utils/output_scripts/decision_tree_as_code.py
@@ -83,11 +83,11 @@ def recurse(node, depth):
     print("FROM <source_table> -- change to your table name")
 
 
-def save_model_and_extras(clf, model_name, sql_split, logging):
+def save_model_and_extras(clf, model_name, post_params, logging):
     # Write printed output to file
     with open(
         "{model_name}/model/tree_in_sql.sql".format(model_name=model_name), "w"
     ) as f:
         with redirect_stdout(f):
             tree_to_sql(clf)
-    print("SQL version of decision tree saved")
+    logging.info("SQL version of decision tree saved")
diff --git a/scripts/utils/output_scripts/ebm_as_code.py b/scripts/utils/output_scripts/ebm_as_code.py
index 6c8f6da..cad5103 100644
--- a/scripts/utils/output_scripts/ebm_as_code.py
+++ b/scripts/utils/output_scripts/ebm_as_code.py
@@ -202,7 +202,7 @@ def RestructureReduceInteractions(df_):
     return lookup_df_group_feat2
 
 
-def extractLookupTable(ebm):
+def extractLookupTable(ebm, post_params):
     """Provides reformatted structure of EBM
 
     Args:
@@ -223,9 +223,9 @@ def extractLookupTable(ebm):
         errors = ebm.standard_deviations_[feature_group_index]
 
         if len(feature_indexes) == 1:
-            # hack. remove the 0th index which is for missing values
-            model_graph = model_graph[1:-1]
-            errors = errors[1:-1]
+            # hack. remove the last index which is for unknown values
+            model_graph = model_graph[0:-1]
+            errors = errors[0:-1]
 
             feature_bins = ebm.bins_[feature_group_index][0]
 
@@ -236,10 +236,12 @@ def extractLookupTable(ebm):
             if isinstance(feature_bins, dict):
                 # categorical
                 feat_bound = list(feature_bins.keys())
+                feat_bound.insert(0, None)
                 feat_type = "categorical"
 
             else:
                 feat_bound = np.append(feature_bins, np.PINF)
+                feat_bound = np.append(None, feat_bound)
                 feat_type = "numeric"
 
             score = scores
@@ -250,7 +252,7 @@ def extractLookupTable(ebm):
                 "nr_features": 1,
                 "feature": ebm.feature_names[feature_indexes[0]],
                 "feat_bound": feat_bound,
-                "score": score,
+                "score": list(np.round(score, post_params['sql_decimals'])), ## To avoid data type overflow
                 "score_lower_bound": score_lower_bound,
                 "score_upper_bound": score_upper_bound,
                 "feat_type": feat_type,
@@ -259,8 +261,8 @@ def extractLookupTable(ebm):
             lookup_dicts.append(lookup_dict)
 
         elif len(feature_indexes) == 2:
-            # hack. remove the 0th index which is for missing values and remove last value which is just zeros
-            model_graph = model_graph[1:-1, 1:-1]
+            # hack. remove the last index which is for unknown values and just zeros
+            model_graph = model_graph[0:-1, 0:-1]
 
             score = model_graph
 
@@ -277,9 +279,11 @@ def extractLookupTable(ebm):
 
                 if isinstance(feature_bins, dict):
                     feat_bound[b] = list(feature_bins.keys())
+                    feat_bound[b].insert(0, None)
                     feat_type[b] = "categorical"
                 else:
                     feat_bound[b] = np.append(feature_bins, np.PINF)
+                    feat_bound[b] = np.append(None, feat_bound[b])
                     feat_type[b] = "numeric"
 
             lookup_dict = {
@@ -289,7 +293,7 @@ def extractLookupTable(ebm):
                     ebm.feature_names[feature_indexes[1]],
                 ],
                 "feat_bound": feat_bound,
-                "score": score,
+                "score": np.round(score, post_params['sql_decimals']),
                 "feat_type": feat_type,
                 # not implemented for interaction terms
                 # , 'score_lower_bound': score_lower_bound
@@ -420,8 +424,21 @@ def single_feature_handling(df):
 
 def single_feature_2_sql(df, feature):
     for index, row in df.iterrows():
+        # Check if bound is for missing values (=None)
+        if row["feat_bound"] == None:
+            print(
+                " WHEN {feature} IS NULL THEN {score}".format(
+                    feature=feature,
+                    score=row["score"],
+                )
+            )
+            # Add ELSE 0.0 as last entry
+            if index == df.index[-1]:
+                print(" ELSE 0.0")
+
+
         # check if string/category
-        if row["feat_type"] == "categorical":
+        elif row["feat_type"] == "categorical":
             # check for manual imputed null values
             print(
                 " WHEN {feature} = '{lb}' THEN {score}".format(
@@ -447,8 +464,8 @@ def single_feature_2_sql(df, feature):
 
         # otherwise it should be a float
         elif isinstance(row["feat_bound"], float):
-            # First bound
-            if index == 0:
+            # First bound (skipping the missing values)
+            if index <= 1:
                 print(
                     " WHEN {feature} <= {ub} THEN {score}".format(
                         feature=feature, ub=row["feat_bound"], score=row["score"]
@@ -496,8 +513,16 @@ def double_feature_sql_handling(df):
 
 def double_feature_2_sql(df, double_feature):
     for index, row in df.iterrows():
+        # Check if bound is for missing values (=None)
+        if row["feat_bound_1"] == None:
+            print(
+                " WHEN {feature} IS NULL THEN \n      CASE".format(
+                    feature=row["feat_1"]
+                )
+            )
+
         # check if string/category
-        if row["feat_type_1"] == "categorical":
+        elif row["feat_type_1"] == "categorical":
             print(
                 " WHEN {feature} = '{lb}' THEN \n     CASE".format(
                     feature=row["feat_1"], lb=row["feat_bound_1"]
@@ -514,8 +539,8 @@ def double_feature_2_sql(df, double_feature):
 
         # otherwise it should be a float
         elif isinstance(row["feat_bound_1"], float):
-            # First bound
-            if index == 0:
+            # First bound (skipping the missing values)
+            if index <= 1:
                 print(
                     " WHEN {feature} <= {ub} THEN \n      CASE".format(
                         feature=row["feat_1"], ub=row["feat_bound_1"]
@@ -539,8 +564,17 @@ def double_feature_2_sql(df, double_feature):
 
         # Looping over the bound values for the second feature
         for sf_index in range(nr_bounds):
+            # Check if bound is for missing values (=None)
+            if row["feat_bound_2"][sf_index] == None:
+                print(
+                    "         WHEN {feature} IS NULL THEN {score}".format(
+                        feature=row["feat_2"],
+                        score=row["score"][sf_index],
+                    )
+                )
+
             # check if string/category
-            if row["feat_type_2"] == "categorical":
+            elif row["feat_type_2"] == "categorical":
                 # check for manual imputed null values
                 print(
                     "         WHEN {feature} = '{lb}' THEN {score}".format(
@@ -562,8 +596,8 @@ def double_feature_2_sql(df, double_feature):
 
             # otherwise it should be a float
             elif isinstance(row["feat_bound_2"][sf_index], float):
-                # First bound
-                if sf_index == 0:
+                # First bound (skipping the missing values)
+                if sf_index <= 1:
                     print(
                         "         WHEN {feature} <= {ub} THEN {score}".format(
                             feature=row["feat_2"],
@@ -719,8 +753,20 @@ def single_feature_2_sql_multiclass(df, feature, class_nr):
     print(",\nCASE")
 
     for index, row in df.iterrows():
+        # Check if bound is for missing values (=None)
+        if row["feat_bound"] == None:
+            print(
+                " WHEN {feature} IS NULL THEN {score}".format(
+                    feature=feature,
+                    score=row["score"][class_nr],
+                )
+            )
+            # Add ELSE 0.0 as last entry
+            if index == df.index[-1]:
+                print(" ELSE 0.0")
+
         # check if string/category
-        if row["feat_type"] == "categorical":
+        elif row["feat_type"] == "categorical":
             # check for manual imputed null values
             print(
                 " WHEN {feature} = '{lb}' THEN {score}".format(
@@ -746,8 +792,8 @@ def single_feature_2_sql_multiclass(df, feature, class_nr):
 
         # otherwise it should be a float
         elif isinstance(row["feat_bound"], float):
-            # First bound
-            if index == 0:
+            # First bound (skipping the missing values)
+            if index <= 1:
                 print(
                     " WHEN {feature} <= {ub} THEN {score}".format(
                         feature=feature,
@@ -786,9 +832,9 @@ def ebm_to_sql(model_name, df, classes, split=True):
         lookup_df_to_sql(model_name, df, model_type, split)
 
 
-def save_model_and_extras(ebm, model_name, split, logging):
+def save_model_and_extras(ebm, model_name, post_params, logging):
     # extract lookup table from EBM
-    lookup_df = extractLookupTable(ebm)
+    lookup_df = extractLookupTable(ebm, post_params)
 
     # In case of regression
     if not hasattr(ebm, "classes_"):
@@ -799,5 +845,5 @@ def save_model_and_extras(ebm, model_name, split, logging):
     with open(f"{model_name}/model/ebm_in_sql.sql", "w") as f:
         with redirect_stdout(f):
             model_name = model_name.split("/")[-1]
-            ebm_to_sql(model_name, lookup_df, ebm.classes_, split)
+            ebm_to_sql(model_name, lookup_df, ebm.classes_, post_params['sql_split'])
     logging.info("SQL version of EBM saved")
diff --git a/scripts/utils/output_scripts/l_regression_as_code.py b/scripts/utils/output_scripts/l_regression_as_code.py
index c0d949c..a1dbea0 100644
--- a/scripts/utils/output_scripts/l_regression_as_code.py
+++ b/scripts/utils/output_scripts/l_regression_as_code.py
@@ -1,3 +1,5 @@
+import numpy as np
+import pandas as pd
 from contextlib import redirect_stdout
 
 
@@ -49,8 +51,11 @@ def extract_parameters(model):
 
 
 def format_sql(
-    model_name, model_type, pclasses, features, coefficients, intercept, split
+    model_name, model_type, pclasses, features, coefficients, intercept, post_params
 ):
+    # round coefficients if needed
+    coefficients = list(np.round(coefficients, post_params['sql_decimals']))
+
     # List of column aliases of the scores of the different features
     if model_type == "multiclass":
         score_cols = {}
@@ -78,7 +83,7 @@ def format_sql(
         )
 
     # Create the SQL query with the logistic regression formula and feature scores
-    if not split:
+    if not post_params['sql_split']:
         print("SELECT")
         print(f"\t'{model_name}' AS model_name")
 
@@ -110,7 +115,7 @@ def format_sql(
 
         print("FROM <source_table>;  -- TODO replace with correct table")
 
-    elif split:
+    elif post_params['sql_split']:
         # Creating CTE to create table aliases
         print("WITH feature_scores AS (\nSELECT")
         print(f"\t'{model_name}' AS model_name")
@@ -165,7 +170,7 @@ def format_sql(
     return
 
 
-def save_model_and_extras(clf, model_name, sql_split, logging):
+def save_model_and_extras(clf, model_name, post_params, logging):
     model_type, pclasses, features, coefficients, intercept = extract_parameters(clf)
     # Write printed output to file
     with open(
@@ -180,6 +185,6 @@ def save_model_and_extras(clf, model_name, sql_split, logging):
                 features,
                 coefficients,
                 intercept,
-                sql_split,
+                post_params,
             )
     logging.info("SQL version of logistic/linear regression saved")
diff --git a/trained_models/example_titanic/feature_importance/1_overall_feature_importance.png b/trained_models/example_titanic/feature_importance/1_overall_feature_importance.png
index e48bbc0..413bc4e 100644
Binary files a/trained_models/example_titanic/feature_importance/1_overall_feature_importance.png and b/trained_models/example_titanic/feature_importance/1_overall_feature_importance.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Age x Siblings_Spouses Aboard.png b/trained_models/example_titanic/feature_importance/explain_Age x Siblings_Spouses Aboard.png
deleted file mode 100644
index 09320a1..0000000
Binary files a/trained_models/example_titanic/feature_importance/explain_Age x Siblings_Spouses Aboard.png and /dev/null differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Age.png b/trained_models/example_titanic/feature_importance/explain_Age.png
index 6a8c789..2e6e945 100644
Binary files a/trained_models/example_titanic/feature_importance/explain_Age.png and b/trained_models/example_titanic/feature_importance/explain_Age.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Age_x_Fare.png b/trained_models/example_titanic/feature_importance/explain_Age_x_Fare.png
new file mode 100644
index 0000000..cc55742
Binary files /dev/null and b/trained_models/example_titanic/feature_importance/explain_Age_x_Fare.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Age_x_Siblings_Spouses_Aboard.png b/trained_models/example_titanic/feature_importance/explain_Age_x_Siblings_Spouses_Aboard.png
new file mode 100644
index 0000000..e30944a
Binary files /dev/null and b/trained_models/example_titanic/feature_importance/explain_Age_x_Siblings_Spouses_Aboard.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Fare.png b/trained_models/example_titanic/feature_importance/explain_Fare.png
index b72c240..9d7303d 100644
Binary files a/trained_models/example_titanic/feature_importance/explain_Fare.png and b/trained_models/example_titanic/feature_importance/explain_Fare.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Parents_Children Aboard.png b/trained_models/example_titanic/feature_importance/explain_Parents_Children Aboard.png
deleted file mode 100644
index d9e0158..0000000
Binary files a/trained_models/example_titanic/feature_importance/explain_Parents_Children Aboard.png and /dev/null differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Parents_Children_Aboard.png b/trained_models/example_titanic/feature_importance/explain_Parents_Children_Aboard.png
new file mode 100644
index 0000000..8fa696b
Binary files /dev/null and b/trained_models/example_titanic/feature_importance/explain_Parents_Children_Aboard.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Pclass x Sex.png b/trained_models/example_titanic/feature_importance/explain_Pclass x Sex.png
deleted file mode 100644
index 2a7b6dc..0000000
Binary files a/trained_models/example_titanic/feature_importance/explain_Pclass x Sex.png and /dev/null differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Pclass.png b/trained_models/example_titanic/feature_importance/explain_Pclass.png
index 98ba48a..9a78b17 100644
Binary files a/trained_models/example_titanic/feature_importance/explain_Pclass.png and b/trained_models/example_titanic/feature_importance/explain_Pclass.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Pclass_x_Sex.png b/trained_models/example_titanic/feature_importance/explain_Pclass_x_Sex.png
new file mode 100644
index 0000000..b810d5c
Binary files /dev/null and b/trained_models/example_titanic/feature_importance/explain_Pclass_x_Sex.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Sex x Age.png b/trained_models/example_titanic/feature_importance/explain_Sex x Age.png
deleted file mode 100644
index a312f7e..0000000
Binary files a/trained_models/example_titanic/feature_importance/explain_Sex x Age.png and /dev/null differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Sex x Fare.png b/trained_models/example_titanic/feature_importance/explain_Sex x Fare.png
deleted file mode 100644
index d2e0061..0000000
Binary files a/trained_models/example_titanic/feature_importance/explain_Sex x Fare.png and /dev/null differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Sex.png b/trained_models/example_titanic/feature_importance/explain_Sex.png
index e725d7d..f249e69 100644
Binary files a/trained_models/example_titanic/feature_importance/explain_Sex.png and b/trained_models/example_titanic/feature_importance/explain_Sex.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Sex_x_Age.png b/trained_models/example_titanic/feature_importance/explain_Sex_x_Age.png
new file mode 100644
index 0000000..07faa3a
Binary files /dev/null and b/trained_models/example_titanic/feature_importance/explain_Sex_x_Age.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Sex_x_Parents_Children_Aboard.png b/trained_models/example_titanic/feature_importance/explain_Sex_x_Parents_Children_Aboard.png
new file mode 100644
index 0000000..d0210a6
Binary files /dev/null and b/trained_models/example_titanic/feature_importance/explain_Sex_x_Parents_Children_Aboard.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses Aboard.png b/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses Aboard.png
deleted file mode 100644
index a9bb14e..0000000
Binary files a/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses Aboard.png and /dev/null differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses_Aboard.png b/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses_Aboard.png
new file mode 100644
index 0000000..47a2cf8
Binary files /dev/null and b/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses_Aboard.png differ
diff --git a/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses_Aboard_x_Fare.png b/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses_Aboard_x_Fare.png
new file mode 100644
index 0000000..dceeba8
Binary files /dev/null and b/trained_models/example_titanic/feature_importance/explain_Siblings_Spouses_Aboard_x_Fare.png differ
diff --git a/trained_models/example_titanic/feature_info/numeric_clustermap.png b/trained_models/example_titanic/feature_info/numeric_clustermap.png
index 0013407..6bc6d27 100644
Binary files a/trained_models/example_titanic/feature_info/numeric_clustermap.png and b/trained_models/example_titanic/feature_info/numeric_clustermap.png differ
diff --git a/trained_models/example_titanic/model/ebm_classification.sav b/trained_models/example_titanic/model/ebm_classification.sav
index 68af95d..3eed983 100644
Binary files a/trained_models/example_titanic/model/ebm_classification.sav and b/trained_models/example_titanic/model/ebm_classification.sav differ
diff --git a/trained_models/example_titanic/model/ebm_in_sql.sql b/trained_models/example_titanic/model/ebm_in_sql.sql
index 5f75390..5ed17e5 100644
--- a/trained_models/example_titanic/model/ebm_in_sql.sql
+++ b/trained_models/example_titanic/model/ebm_in_sql.sql
@@ -1,211 +1,1525 @@
-'20220915_example_titanic_v3' AS model_name 
-, -0.5515015056056135 AS intercept
+WITH feature_scores AS (
+SELECT
+'20240306_exmple_test' AS model_name 
+, 
+-0.6179200939152524 AS intercept
 ,
 CASE
- WHEN Age <= 1.5 THEN 2.5819579687721017
- WHEN Age > 1.5 AND Age <= 2.5 THEN 0.5978616356212765
- WHEN Age > 2.5 AND Age <= 3.5 THEN 1.5660371885295894
- WHEN Age > 3.5 AND Age <= 4.5 THEN 1.5674183568012336
- WHEN Age > 4.5 AND Age <= 8.5 THEN 0.9860053408472826
- WHEN Age > 8.5 AND Age <= 12.5 THEN 0.23866193227721277
- WHEN Age > 12.5 AND Age <= 15.5 THEN 0.1916808655379177
- WHEN Age > 15.5 AND Age <= 16.5 THEN 0.14779299378975533
- WHEN Age > 16.5 AND Age <= 17.5 THEN -0.00032421385556334614
- WHEN Age > 17.5 AND Age <= 18.5 THEN -0.052242511184433474
- WHEN Age > 18.5 AND Age <= 19.5 THEN -0.05184669767572446
- WHEN Age > 19.5 AND Age <= 21.5 THEN -0.10512853786755642
- WHEN Age > 21.5 AND Age <= 22.5 THEN 0.027033067094811583
- WHEN Age > 22.5 AND Age <= 24.25 THEN 0.03357971607599877
- WHEN Age > 24.25 AND Age <= 26.5 THEN 0.046620567722346774
- WHEN Age > 26.5 AND Age <= 27.5 THEN 0.09067788982012744
- WHEN Age > 27.5 AND Age <= 28.25 THEN 0.04292375206174639
- WHEN Age > 28.25 AND Age <= 29.5 THEN 0.044085865740375596
- WHEN Age > 29.5 AND Age <= 30.25 THEN 0.042782454183682955
- WHEN Age > 30.25 AND Age <= 31.5 THEN 0.044900747911660994
- WHEN Age > 31.5 AND Age <= 32.25 THEN 0.15691821352554972
- WHEN Age > 32.25 AND Age <= 36.25 THEN 0.052622568150958296
- WHEN Age > 36.25 AND Age <= 37.5 THEN -0.3280586372272431
- WHEN Age > 37.5 AND Age <= 38.5 THEN -0.33526171355556267
- WHEN Age > 38.5 AND Age <= 39.5 THEN -0.4011438954275447
- WHEN Age > 39.5 AND Age <= 44.5 THEN -0.411444439939554
- WHEN Age > 44.5 AND Age <= 52.5 THEN -0.5081278501689948
- WHEN Age > 52.5 AND Age <= 54.5 THEN -0.6018793706928309
- WHEN Age > 54.5 AND Age <= 56.5 THEN -0.6052123481456839
- WHEN Age > 56.5 AND Age <= 58.5 THEN -0.776047641863542
- WHEN Age > 58.5 AND Age <= 61.5 THEN -0.7798290219692582
- WHEN Age >= 61.5 THEN -0.9517061094480752
+ WHEN Age IS NULL THEN 0.0
+ WHEN Age <= 0.545 THEN 2.580060312577278
+ WHEN Age > 0.545 AND Age <= 0.71 THEN 2.443257947081018
+ WHEN Age > 0.71 AND Age <= 0.79 THEN 2.31643363883227
+ WHEN Age > 0.79 AND Age <= 0.875 THEN 2.213283471303042
+ WHEN Age > 0.875 AND Age <= 0.96 THEN 2.127642669379653
+ WHEN Age > 0.96 AND Age <= 1.5 THEN 1.915433878324316
+ WHEN Age > 1.5 AND Age <= 2.5 THEN 0.613037522471381
+ WHEN Age > 2.5 AND Age <= 3.5 THEN 1.313495621871423
+ WHEN Age > 3.5 AND Age <= 4.5 THEN 1.29697963594542
+ WHEN Age > 4.5 AND Age <= 5.5 THEN 1.253399456304853
+ WHEN Age > 5.5 AND Age <= 6.5 THEN 1.104116677556052
+ WHEN Age > 6.5 AND Age <= 7.5 THEN 0.49101790033117
+ WHEN Age > 7.5 AND Age <= 8.5 THEN 0.362810295316907
+ WHEN Age > 8.5 AND Age <= 9.5 THEN 0.270617650738889
+ WHEN Age > 9.5 AND Age <= 10.5 THEN 0.193848959031335
+ WHEN Age > 10.5 AND Age <= 11.5 THEN 0.17180595526333
+ WHEN Age > 11.5 AND Age <= 12.5 THEN 0.178725966929774
+ WHEN Age > 12.5 AND Age <= 13.5 THEN 0.206333842198708
+ WHEN Age > 13.5 AND Age <= 14.25 THEN 0.166716847606258
+ WHEN Age > 14.25 AND Age <= 14.75 THEN 0.145461956111871
+ WHEN Age > 14.75 AND Age <= 15.5 THEN 0.124658830870537
+ WHEN Age > 15.5 AND Age <= 16.5 THEN 0.072183227986343
+ WHEN Age > 16.5 AND Age <= 17.5 THEN 0.045114170037454
+ WHEN Age > 17.5 AND Age <= 18.5 THEN -0.030971823587654
+ WHEN Age > 18.5 AND Age <= 19.5 THEN -0.047471752495349
+ WHEN Age > 19.5 AND Age <= 20.25 THEN -0.073765700396152
+ WHEN Age > 20.25 AND Age <= 20.75 THEN -0.083629532402499
+ WHEN Age > 20.75 AND Age <= 21.5 THEN -0.089197239730631
+ WHEN Age > 21.5 AND Age <= 22.5 THEN -0.000415293571824
+ WHEN Age > 22.5 AND Age <= 23.25 THEN 0.000546735648755
+ WHEN Age > 23.25 AND Age <= 23.75 THEN 0.009974015694037
+ WHEN Age > 23.75 AND Age <= 24.25 THEN 0.021789656889792
+ WHEN Age > 24.25 AND Age <= 24.75 THEN 0.01839783859238
+ WHEN Age > 24.75 AND Age <= 25.5 THEN 0.020751661324492
+ WHEN Age > 25.5 AND Age <= 26.5 THEN 0.023662979411379
+ WHEN Age > 26.5 AND Age <= 27.5 THEN 0.029329441810896
+ WHEN Age > 27.5 AND Age <= 28.25 THEN 0.023327888040752
+ WHEN Age > 28.25 AND Age <= 28.75 THEN 0.022283343349
+ WHEN Age > 28.75 AND Age <= 29.5 THEN 0.025637809534749
+ WHEN Age > 29.5 AND Age <= 30.25 THEN 0.021892254837959
+ WHEN Age > 30.25 AND Age <= 30.75 THEN 0.02153731694438
+ WHEN Age > 30.75 AND Age <= 31.5 THEN 0.047649117851109
+ WHEN Age > 31.5 AND Age <= 32.25 THEN 0.10224482134569
+ WHEN Age > 32.25 AND Age <= 32.75 THEN 0.094730991257767
+ WHEN Age > 32.75 AND Age <= 33.5 THEN 0.089202317830573
+ WHEN Age > 33.5 AND Age <= 34.25 THEN 0.085392374618884
+ WHEN Age > 34.25 AND Age <= 34.75 THEN 0.075476468774099
+ WHEN Age > 34.75 AND Age <= 35.5 THEN 0.069665286247223
+ WHEN Age > 35.5 AND Age <= 36.25 THEN 0.030095153562211
+ WHEN Age > 36.25 AND Age <= 36.75 THEN -0.171340475176588
+ WHEN Age > 36.75 AND Age <= 37.5 THEN -0.198171963072373
+ WHEN Age > 37.5 AND Age <= 38.5 THEN -0.212834961238842
+ WHEN Age > 38.5 AND Age <= 39.5 THEN -0.231555139597563
+ WHEN Age > 39.5 AND Age <= 40.25 THEN -0.242110239352513
+ WHEN Age > 40.25 AND Age <= 40.75 THEN -0.254997973951253
+ WHEN Age > 40.75 AND Age <= 41.5 THEN -0.266613049269233
+ WHEN Age > 41.5 AND Age <= 42.5 THEN -0.272694883004671
+ WHEN Age > 42.5 AND Age <= 43.5 THEN -0.287202483805824
+ WHEN Age > 43.5 AND Age <= 44.5 THEN -0.293928560197688
+ WHEN Age > 44.5 AND Age <= 45.25 THEN -0.303705133174136
+ WHEN Age > 45.25 AND Age <= 45.75 THEN -0.312500890772953
+ WHEN Age > 45.75 AND Age <= 46.5 THEN -0.319489814509284
+ WHEN Age > 46.5 AND Age <= 47.5 THEN -0.327022260848343
+ WHEN Age > 47.5 AND Age <= 48.5 THEN -0.321942328539615
+ WHEN Age > 48.5 AND Age <= 49.5 THEN -0.333012322644169
+ WHEN Age > 49.5 AND Age <= 50.5 THEN -0.35063519024859
+ WHEN Age > 50.5 AND Age <= 51.5 THEN -0.366453149661517
+ WHEN Age > 51.5 AND Age <= 52.5 THEN -0.38395552140715
+ WHEN Age > 52.5 AND Age <= 53.5 THEN -0.402605983898132
+ WHEN Age > 53.5 AND Age <= 54.5 THEN -0.43747701045505
+ WHEN Age > 54.5 AND Age <= 55.25 THEN -0.464593109446237
+ WHEN Age > 55.25 AND Age <= 55.75 THEN -0.483015623837224
+ WHEN Age > 55.75 AND Age <= 56.5 THEN -0.499344831072596
+ WHEN Age > 56.5 AND Age <= 57.5 THEN -0.527129288816091
+ WHEN Age > 57.5 AND Age <= 58.5 THEN -0.544981884145857
+ WHEN Age > 58.5 AND Age <= 59.5 THEN -0.568280964319412
+ WHEN Age > 59.5 AND Age <= 60.5 THEN -0.585708541571213
+ WHEN Age > 60.5 AND Age <= 61.5 THEN -0.610477917341304
+ WHEN Age > 61.5 AND Age <= 62.5 THEN -0.628068205328093
+ WHEN Age > 62.5 AND Age <= 63.5 THEN -0.652073922018551
+ WHEN Age > 63.5 AND Age <= 64.5 THEN -0.948175537198389
+ WHEN Age > 64.5 AND Age <= 65.5 THEN -0.999126268005718
+ WHEN Age > 65.5 AND Age <= 67.5 THEN -1.03779761413087
+ WHEN Age > 67.5 AND Age <= 69.5 THEN -1.062517783115664
+ WHEN Age > 69.5 AND Age <= 70.25 THEN -1.088949275937837
+ WHEN Age > 70.25 AND Age <= 70.75 THEN -1.102135824811766
+ WHEN Age > 70.75 AND Age <= 72.5 THEN -1.105776142001474
+ WHEN Age > 72.5 AND Age <= 77.0 THEN -0.587531794948042
+ WHEN Age >= 77.0 THEN -0.465866441335143
  ELSE 0.0
 END
 AS Age_score
 ,
 CASE
- WHEN Fare <= 2.00625 THEN -0.9222369665554453
- WHEN Fare > 2.00625 AND Fare <= 7.0479 THEN -0.8493072448402628
- WHEN Fare > 7.0479 AND Fare <= 7.2271 THEN 0.08887255052109347
- WHEN Fare > 7.2271 AND Fare <= 7.239599999999999 THEN 0.006681122209540313
- WHEN Fare > 7.239599999999999 AND Fare <= 7.5354 THEN -0.18449464053411627
- WHEN Fare > 7.5354 AND Fare <= 7.78125 THEN -0.18063003777758482
- WHEN Fare > 7.78125 AND Fare <= 7.8416999999999994 THEN -0.023134365237299143
- WHEN Fare > 7.8416999999999994 AND Fare <= 7.89165 THEN -0.1429767218158109
- WHEN Fare > 7.89165 AND Fare <= 7.9104 THEN -0.3517172516126371
- WHEN Fare > 7.9104 AND Fare <= 8.0396 THEN 0.30201310827083083
- WHEN Fare > 8.0396 AND Fare <= 8.08125 THEN -0.2791744781181277
- WHEN Fare > 8.08125 AND Fare <= 8.672899999999998 THEN -0.32352435964275617
- WHEN Fare > 8.672899999999998 AND Fare <= 10.50835 THEN -0.20580720360611596
- WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.1436249856029054
- WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.14699452429267612
- WHEN Fare > 13.20835 AND Fare <= 14.45625 THEN -0.39247615642513267
- WHEN Fare > 14.45625 AND Fare <= 15.172899999999998 THEN -0.4144942962110214
- WHEN Fare > 15.172899999999998 AND Fare <= 15.8 THEN 0.11401688520574198
- WHEN Fare > 15.8 AND Fare <= 19.0229 THEN 0.09068988851228493
- WHEN Fare > 19.0229 AND Fare <= 20.549999999999997 THEN 0.07843987274566463
- WHEN Fare > 20.549999999999997 AND Fare <= 21.8521 THEN 0.060197694918103964
- WHEN Fare > 21.8521 AND Fare <= 25.9646 THEN 0.014242216376426517
- WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.059977577342744406
- WHEN Fare > 26.125 AND Fare <= 26.775 THEN 0.4435170580744172
- WHEN Fare > 26.775 AND Fare <= 28.2 THEN 0.09613397700525465
- WHEN Fare > 28.2 AND Fare <= 41.989599999999996 THEN 0.030040347918875193
- WHEN Fare > 41.989599999999996 AND Fare <= 50.9875 THEN 0.023601570613635034
- WHEN Fare > 50.9875 AND Fare <= 52.8271 THEN 0.42879196259438035
- WHEN Fare > 52.8271 AND Fare <= 56.712500000000006 THEN 0.7717844017731594
- WHEN Fare > 56.712500000000006 AND Fare <= 65.8 THEN 0.598046184049755
- WHEN Fare > 65.8 AND Fare <= 71.14165 THEN 0.45513594494054155
- WHEN Fare > 71.14165 AND Fare <= 79.825 THEN 0.5635216010915918
- WHEN Fare > 79.825 AND Fare <= 89.5521 THEN 0.6152565345977166
- WHEN Fare > 89.5521 AND Fare <= 149.0354 THEN 0.657935047809421
- WHEN Fare > 149.0354 AND Fare <= 224.65210000000002 THEN 0.10923089199072955
- WHEN Fare >= 224.65210000000002 THEN 0.7206930537958363
+ WHEN Fare IS NULL THEN 0.0
+ WHEN Fare <= 2.00625 THEN -0.937619076950566
+ WHEN Fare > 2.00625 AND Fare <= 4.50625 THEN -0.928739137137935
+ WHEN Fare > 4.50625 AND Fare <= 5.61875 THEN -0.921669376039329
+ WHEN Fare > 5.61875 AND Fare <= 6.3375 THEN -0.906685787707386
+ WHEN Fare > 6.3375 AND Fare <= 6.44375 THEN -0.893724350160637
+ WHEN Fare > 6.44375 AND Fare <= 6.4729 THEN -0.881818510012593
+ WHEN Fare > 6.4729 AND Fare <= 6.6229 THEN -0.865731303835303
+ WHEN Fare > 6.6229 AND Fare <= 6.80415 THEN -0.852357855286305
+ WHEN Fare > 6.80415 AND Fare <= 6.90415 THEN -0.836724563606052
+ WHEN Fare > 6.90415 AND Fare <= 6.9625 THEN -0.758833930062917
+ WHEN Fare > 6.9625 AND Fare <= 7.0104 THEN 0.097988220338083
+ WHEN Fare > 7.0104 AND Fare <= 7.0479 THEN -0.453694983624942
+ WHEN Fare > 7.0479 AND Fare <= 7.052099999999999 THEN -0.50728062905208
+ WHEN Fare > 7.052099999999999 AND Fare <= 7.0896 THEN -0.496352365440563
+ WHEN Fare > 7.0896 AND Fare <= 7.13335 THEN -0.484680957950316
+ WHEN Fare > 7.13335 AND Fare <= 7.18335 THEN -0.198011711603482
+ WHEN Fare > 7.18335 AND Fare <= 7.2271 THEN -0.154890730617266
+ WHEN Fare > 7.2271 AND Fare <= 7.239599999999999 THEN -0.167590359528863
+ WHEN Fare > 7.239599999999999 AND Fare <= 7.28125 THEN -0.272364947104406
+ WHEN Fare > 7.28125 AND Fare <= 7.40415 THEN -0.267282768155068
+ WHEN Fare > 7.40415 AND Fare <= 7.5083 THEN -0.262572873604329
+ WHEN Fare > 7.5083 AND Fare <= 7.5354 THEN -0.256603460371438
+ WHEN Fare > 7.5354 AND Fare <= 7.5896 THEN -0.25024480541194
+ WHEN Fare > 7.5896 AND Fare <= 7.6396 THEN -0.243568259842346
+ WHEN Fare > 7.6396 AND Fare <= 7.6875 THEN -0.23316584821146
+ WHEN Fare > 7.6875 AND Fare <= 7.7271 THEN -0.229852432513577
+ WHEN Fare > 7.7271 AND Fare <= 7.731249999999999 THEN -0.2215868141365
+ WHEN Fare > 7.731249999999999 AND Fare <= 7.7354 THEN -0.212133070309428
+ WHEN Fare > 7.7354 AND Fare <= 7.739599999999999 THEN -0.207998418336126
+ WHEN Fare > 7.739599999999999 AND Fare <= 7.74585 THEN -0.203016123239447
+ WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.197664048206257
+ WHEN Fare > 7.7625 AND Fare <= 7.78125 THEN -0.200002930793442
+ WHEN Fare > 7.78125 AND Fare <= 7.79165 THEN -0.17960942654393
+ WHEN Fare > 7.79165 AND Fare <= 7.7979 THEN -0.180449389099153
+ WHEN Fare > 7.7979 AND Fare <= 7.8146 THEN -0.180899028189167
+ WHEN Fare > 7.8146 AND Fare <= 7.8416999999999994 THEN -0.179917358491648
+ WHEN Fare > 7.8416999999999994 AND Fare <= 7.864599999999999 THEN -0.200062248841067
+ WHEN Fare > 7.864599999999999 AND Fare <= 7.8771 THEN -0.198838327939814
+ WHEN Fare > 7.8771 AND Fare <= 7.88335 THEN -0.195433776783973
+ WHEN Fare > 7.88335 AND Fare <= 7.89165 THEN -0.230716557734503
+ WHEN Fare > 7.89165 AND Fare <= 7.9104 THEN -0.231518552187428
+ WHEN Fare > 7.9104 AND Fare <= 7.9771 THEN -0.184478939793281
+ WHEN Fare > 7.9771 AND Fare <= 8.0396 THEN -0.185472509336083
+ WHEN Fare > 8.0396 AND Fare <= 8.08125 THEN -0.219828651516391
+ WHEN Fare > 8.08125 AND Fare <= 8.125 THEN -0.217223853023758
+ WHEN Fare > 8.125 AND Fare <= 8.1479 THEN -0.277886521874445
+ WHEN Fare > 8.1479 AND Fare <= 8.22915 THEN -0.281537915038616
+ WHEN Fare > 8.22915 AND Fare <= 8.33125 THEN -0.283822092477563
+ WHEN Fare > 8.33125 AND Fare <= 8.38335 THEN -0.279291519438168
+ WHEN Fare > 8.38335 AND Fare <= 8.41875 THEN -0.275904341111058
+ WHEN Fare > 8.41875 AND Fare <= 8.445799999999998 THEN -0.272100161773752
+ WHEN Fare > 8.445799999999998 AND Fare <= 8.4875 THEN -0.269959494100418
+ WHEN Fare > 8.4875 AND Fare <= 8.58545 THEN -0.268068347508852
+ WHEN Fare > 8.58545 AND Fare <= 8.658349999999999 THEN -0.267661796292149
+ WHEN Fare > 8.658349999999999 AND Fare <= 8.672899999999998 THEN -0.263589242851328
+ WHEN Fare > 8.672899999999998 AND Fare <= 8.6979 THEN -0.260243455370852
+ WHEN Fare > 8.6979 AND Fare <= 8.78125 THEN -0.257118429736067
+ WHEN Fare > 8.78125 AND Fare <= 8.925 THEN -0.25337801384688
+ WHEN Fare > 8.925 AND Fare <= 9.10835 THEN -0.248578141347047
+ WHEN Fare > 9.10835 AND Fare <= 9.220849999999999 THEN -0.245498470863786
+ WHEN Fare > 9.220849999999999 AND Fare <= 9.2875 THEN -0.23968472457781
+ WHEN Fare > 9.2875 AND Fare <= 9.4125 THEN -0.231889472165646
+ WHEN Fare > 9.4125 AND Fare <= 9.47915 THEN -0.226498149806437
+ WHEN Fare > 9.47915 AND Fare <= 9.49165 THEN -0.220658907012467
+ WHEN Fare > 9.49165 AND Fare <= 9.54375 THEN -0.218030555694787
+ WHEN Fare > 9.54375 AND Fare <= 9.70625 THEN -0.215311215283827
+ WHEN Fare > 9.70625 AND Fare <= 9.83125 THEN -0.210803503876805
+ WHEN Fare > 9.83125 AND Fare <= 9.8396 THEN -0.200400381981766
+ WHEN Fare > 9.8396 AND Fare <= 9.84375 THEN -0.196570880588737
+ WHEN Fare > 9.84375 AND Fare <= 10.0083 THEN -0.193273762929135
+ WHEN Fare > 10.0083 AND Fare <= 10.31665 THEN -0.187053879090046
+ WHEN Fare > 10.31665 AND Fare <= 10.48125 THEN -0.180044394566109
+ WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.143954868022924
+ WHEN Fare > 10.50835 AND Fare <= 10.825 THEN -0.137714764317728
+ WHEN Fare > 10.825 AND Fare <= 11.1875 THEN -0.13275227689169
+ WHEN Fare > 11.1875 AND Fare <= 11.37085 THEN -0.128178853760487
+ WHEN Fare > 11.37085 AND Fare <= 11.75 THEN -0.12620743173107
+ WHEN Fare > 11.75 AND Fare <= 12.1375 THEN -0.121480468482275
+ WHEN Fare > 12.1375 AND Fare <= 12.28125 THEN -0.116515329518597
+ WHEN Fare > 12.28125 AND Fare <= 12.31875 THEN -0.112134602863103
+ WHEN Fare > 12.31875 AND Fare <= 12.4125 THEN -0.10612830498902
+ WHEN Fare > 12.4125 AND Fare <= 12.5 THEN -0.098760983064058
+ WHEN Fare > 12.5 AND Fare <= 12.5875 THEN -0.095879110856369
+ WHEN Fare > 12.5875 AND Fare <= 12.7625 THEN -0.096224079876505
+ WHEN Fare > 12.7625 AND Fare <= 12.9375 THEN -0.094040057687686
+ WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.091574273591122
+ WHEN Fare > 13.20835 AND Fare <= 13.45835 THEN -0.089501519602488
+ WHEN Fare > 13.45835 AND Fare <= 13.64585 THEN -0.088003255613357
+ WHEN Fare > 13.64585 AND Fare <= 13.825 THEN -0.085622834501906
+ WHEN Fare > 13.825 AND Fare <= 13.8604 THEN -0.082568035520065
+ WHEN Fare > 13.8604 AND Fare <= 13.93125 THEN -0.081780787129776
+ WHEN Fare > 13.93125 AND Fare <= 14.05415 THEN -0.095680214353144
+ WHEN Fare > 14.05415 AND Fare <= 14.25415 THEN -0.093796555357732
+ WHEN Fare > 14.25415 AND Fare <= 14.4271 THEN -0.090862607051471
+ WHEN Fare > 14.4271 AND Fare <= 14.45625 THEN -0.089248192312257
+ WHEN Fare > 14.45625 AND Fare <= 14.47915 THEN -0.084966985369731
+ WHEN Fare > 14.47915 AND Fare <= 14.75 THEN -0.078747221074975
+ WHEN Fare > 14.75 AND Fare <= 15.0229 THEN -0.076359169163537
+ WHEN Fare > 15.0229 AND Fare <= 15.0479 THEN -0.070058873704542
+ WHEN Fare > 15.0479 AND Fare <= 15.075 THEN -0.065730635945627
+ WHEN Fare > 15.075 AND Fare <= 15.172899999999998 THEN -0.052659788447154
+ WHEN Fare > 15.172899999999998 AND Fare <= 15.3729 THEN -0.022226138735495
+ WHEN Fare > 15.3729 AND Fare <= 15.525 THEN -0.017529800756924
+ WHEN Fare > 15.525 AND Fare <= 15.64585 THEN -0.011376345039549
+ WHEN Fare > 15.64585 AND Fare <= 15.74585 THEN 0.007041990365179
+ WHEN Fare > 15.74585 AND Fare <= 15.8 THEN 0.010903960024994
+ WHEN Fare > 15.8 AND Fare <= 15.875 THEN 0.012674148952263
+ WHEN Fare > 15.875 AND Fare <= 15.95 THEN 0.01623420586715
+ WHEN Fare > 15.95 AND Fare <= 16.05 THEN 0.019805975674913
+ WHEN Fare > 16.05 AND Fare <= 16.4 THEN 0.012145436097265
+ WHEN Fare > 16.4 AND Fare <= 17.049999999999997 THEN 0.015056358151053
+ WHEN Fare > 17.049999999999997 AND Fare <= 17.6 THEN 0.016968826213512
+ WHEN Fare > 17.6 AND Fare <= 17.9 THEN 0.019754392128407
+ WHEN Fare > 17.9 AND Fare <= 18.375 THEN 0.023255900312252
+ WHEN Fare > 18.375 AND Fare <= 18.76875 THEN 0.02821439828323
+ WHEN Fare > 18.76875 AND Fare <= 19.0229 THEN 0.030614589596088
+ WHEN Fare > 19.0229 AND Fare <= 19.37915 THEN 0.032148166822159
+ WHEN Fare > 19.37915 AND Fare <= 19.73335 THEN 0.033593786612132
+ WHEN Fare > 19.73335 AND Fare <= 20.089599999999997 THEN 0.033195252060432
+ WHEN Fare > 20.089599999999997 AND Fare <= 20.23125 THEN 0.035109217812562
+ WHEN Fare > 20.23125 AND Fare <= 20.3875 THEN 0.03675161295608
+ WHEN Fare > 20.3875 AND Fare <= 20.549999999999997 THEN 0.039574208790776
+ WHEN Fare > 20.549999999999997 AND Fare <= 20.7875 THEN 0.040933931325899
+ WHEN Fare > 20.7875 AND Fare <= 21.0375 THEN 0.042118536278943
+ WHEN Fare > 21.0375 AND Fare <= 21.3771 THEN 0.042147456254314
+ WHEN Fare > 21.3771 AND Fare <= 21.8521 THEN 0.043335846640223
+ WHEN Fare > 21.8521 AND Fare <= 22.19165 THEN 0.04913623573459
+ WHEN Fare > 22.19165 AND Fare <= 22.44165 THEN 0.05144684731632
+ WHEN Fare > 22.44165 AND Fare <= 22.7625 THEN 0.051455383636219
+ WHEN Fare > 22.7625 AND Fare <= 23.125 THEN 0.053961424932598
+ WHEN Fare > 23.125 AND Fare <= 23.35 THEN 0.054985899740405
+ WHEN Fare > 23.35 AND Fare <= 23.725 THEN 0.055563065381892
+ WHEN Fare > 23.725 AND Fare <= 24.075 THEN 0.057598373929198
+ WHEN Fare > 24.075 AND Fare <= 24.808349999999997 THEN 0.057762356837943
+ WHEN Fare > 24.808349999999997 AND Fare <= 25.527099999999997 THEN 0.057900256561587
+ WHEN Fare > 25.527099999999997 AND Fare <= 25.75625 THEN 0.06055949049309
+ WHEN Fare > 25.75625 AND Fare <= 25.927100000000003 THEN 0.066679382516789
+ WHEN Fare > 25.927100000000003 AND Fare <= 25.9646 THEN 0.071302884461064
+ WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.07313860997626
+ WHEN Fare > 26.125 AND Fare <= 26.26665 THEN 0.091072328298855
+ WHEN Fare > 26.26665 AND Fare <= 26.285400000000003 THEN 0.094373137814328
+ WHEN Fare > 26.285400000000003 AND Fare <= 26.3375 THEN 0.097581419958237
+ WHEN Fare > 26.3375 AND Fare <= 26.46875 THEN 0.101237545627746
+ WHEN Fare > 26.46875 AND Fare <= 26.775 THEN 0.100220091730546
+ WHEN Fare > 26.775 AND Fare <= 27.3604 THEN 0.083321709945218
+ WHEN Fare > 27.3604 AND Fare <= 27.7354 THEN 0.082633071511331
+ WHEN Fare > 27.7354 AND Fare <= 27.825 THEN 0.081882868913384
+ WHEN Fare > 27.825 AND Fare <= 28.2 THEN 0.081604447471993
+ WHEN Fare > 28.2 AND Fare <= 28.60625 THEN 0.083758914192873
+ WHEN Fare > 28.60625 AND Fare <= 28.85625 THEN 0.084958188903573
+ WHEN Fare > 28.85625 AND Fare <= 29.0625 THEN 0.091437336214031
+ WHEN Fare > 29.0625 AND Fare <= 29.4125 THEN 0.098167563206792
+ WHEN Fare > 29.4125 AND Fare <= 29.85 THEN 0.10167115542099
+ WHEN Fare > 29.85 AND Fare <= 30.0354 THEN 0.123031516628176
+ WHEN Fare > 30.0354 AND Fare <= 30.2854 THEN 0.126345519151884
+ WHEN Fare > 30.2854 AND Fare <= 30.5979 THEN 0.12880075664075
+ WHEN Fare > 30.5979 AND Fare <= 30.8479 THEN 0.123281957667943
+ WHEN Fare > 30.8479 AND Fare <= 31.1375 THEN 0.124973892085212
+ WHEN Fare > 31.1375 AND Fare <= 31.331249999999997 THEN 0.126303983172325
+ WHEN Fare > 31.331249999999997 AND Fare <= 31.854149999999997 THEN 0.130299336063635
+ WHEN Fare > 31.854149999999997 AND Fare <= 32.410399999999996 THEN 0.12992573955259
+ WHEN Fare > 32.410399999999996 AND Fare <= 32.75 THEN 0.134292527395132
+ WHEN Fare > 32.75 AND Fare <= 33.25 THEN 0.137251574592524
+ WHEN Fare > 33.25 AND Fare <= 33.760400000000004 THEN 0.136155476648354
+ WHEN Fare > 33.760400000000004 AND Fare <= 34.197900000000004 THEN 0.136429279916131
+ WHEN Fare > 34.197900000000004 AND Fare <= 34.5146 THEN 0.139758966909688
+ WHEN Fare > 34.5146 AND Fare <= 34.8271 THEN 0.145207511016797
+ WHEN Fare > 34.8271 AND Fare <= 35.25 THEN 0.151012770307739
+ WHEN Fare > 35.25 AND Fare <= 36.125 THEN 0.154840403708373
+ WHEN Fare > 36.125 AND Fare <= 36.8771 THEN 0.16087757980629
+ WHEN Fare > 36.8771 AND Fare <= 37.7521 THEN 0.165047155691551
+ WHEN Fare > 37.7521 AND Fare <= 38.75 THEN 0.167367287206461
+ WHEN Fare > 38.75 AND Fare <= 39.2 THEN 0.172227497909713
+ WHEN Fare > 39.2 AND Fare <= 39.5 THEN 0.173684080974052
+ WHEN Fare > 39.5 AND Fare <= 39.64375 THEN 0.160367272762027
+ WHEN Fare > 39.64375 AND Fare <= 39.90625 THEN 0.140356965869875
+ WHEN Fare > 39.90625 AND Fare <= 40.8521 THEN 0.144790435067771
+ WHEN Fare > 40.8521 AND Fare <= 41.989599999999996 THEN 0.148344519592463
+ WHEN Fare > 41.989599999999996 AND Fare <= 44.65 THEN 0.15333025389102
+ WHEN Fare > 44.65 AND Fare <= 47.0 THEN 0.157631188072716
+ WHEN Fare > 47.0 AND Fare <= 48.3 THEN 0.168585984745128
+ WHEN Fare > 48.3 AND Fare <= 49.5021 THEN 0.176553278329377
+ WHEN Fare > 49.5021 AND Fare <= 49.7521 THEN 0.184660236683652
+ WHEN Fare > 49.7521 AND Fare <= 50.2479 THEN 0.190279930673563
+ WHEN Fare > 50.2479 AND Fare <= 50.9875 THEN 0.19891198304055
+ WHEN Fare > 50.9875 AND Fare <= 51.67085 THEN 0.224994782097047
+ WHEN Fare > 51.67085 AND Fare <= 51.93125 THEN 0.234240140267619
+ WHEN Fare > 51.93125 AND Fare <= 52.277100000000004 THEN 0.249557658715989
+ WHEN Fare > 52.277100000000004 AND Fare <= 52.8271 THEN 0.780842589236177
+ WHEN Fare > 52.8271 AND Fare <= 54.05 THEN 0.784638019366578
+ WHEN Fare > 54.05 AND Fare <= 55.22085 THEN 0.795929632512024
+ WHEN Fare > 55.22085 AND Fare <= 55.67085 THEN 0.802468231880558
+ WHEN Fare > 55.67085 AND Fare <= 56.197900000000004 THEN 0.813289401524277
+ WHEN Fare > 56.197900000000004 AND Fare <= 56.712500000000006 THEN 0.889656551648999
+ WHEN Fare > 56.712500000000006 AND Fare <= 56.964600000000004 THEN 0.893954065531397
+ WHEN Fare > 56.964600000000004 AND Fare <= 57.489599999999996 THEN 0.896536466276523
+ WHEN Fare > 57.489599999999996 AND Fare <= 58.6896 THEN 0.896805702027167
+ WHEN Fare > 58.6896 AND Fare <= 60.287499999999994 THEN 0.875157376976012
+ WHEN Fare > 60.287499999999994 AND Fare <= 61.2771 THEN 0.432296654176596
+ WHEN Fare > 61.2771 AND Fare <= 61.679199999999994 THEN 0.37690718726519
+ WHEN Fare > 61.679199999999994 AND Fare <= 62.66875 THEN 0.378287644336032
+ WHEN Fare > 62.66875 AND Fare <= 64.17914999999999 THEN 0.381338727679045
+ WHEN Fare > 64.17914999999999 AND Fare <= 65.8 THEN 0.38287463514476
+ WHEN Fare > 65.8 AND Fare <= 67.94999999999999 THEN 0.372835009939183
+ WHEN Fare > 67.94999999999999 AND Fare <= 69.425 THEN 0.374646109106352
+ WHEN Fare > 69.425 AND Fare <= 70.275 THEN 0.378045266978452
+ WHEN Fare > 70.275 AND Fare <= 71.14165 THEN 0.385638676270392
+ WHEN Fare > 71.14165 AND Fare <= 72.39165 THEN 0.39317263012808
+ WHEN Fare > 72.39165 AND Fare <= 74.375 THEN 0.406461224698153
+ WHEN Fare > 74.375 AND Fare <= 75.77085 THEN 0.416639817360977
+ WHEN Fare > 75.77085 AND Fare <= 76.51045 THEN 0.426915953633834
+ WHEN Fare > 76.51045 AND Fare <= 77.00835000000001 THEN 0.43547623616187
+ WHEN Fare > 77.00835000000001 AND Fare <= 77.62289999999999 THEN 0.446395472609716
+ WHEN Fare > 77.62289999999999 AND Fare <= 78.1125 THEN 0.452697581828751
+ WHEN Fare > 78.1125 AND Fare <= 78.55834999999999 THEN 0.458132708531986
+ WHEN Fare > 78.55834999999999 AND Fare <= 79.025 THEN 0.463087330627624
+ WHEN Fare > 79.025 AND Fare <= 79.42500000000001 THEN 0.470481731023589
+ WHEN Fare > 79.42500000000001 AND Fare <= 79.825 THEN 0.477066399443633
+ WHEN Fare > 79.825 AND Fare <= 80.92914999999999 THEN 0.482582560274405
+ WHEN Fare > 80.92914999999999 AND Fare <= 82.01455 THEN 0.492144312831422
+ WHEN Fare > 82.01455 AND Fare <= 82.66454999999999 THEN 0.499137673484634
+ WHEN Fare > 82.66454999999999 AND Fare <= 83.31665 THEN 0.509101045695767
+ WHEN Fare > 83.31665 AND Fare <= 84.9875 THEN 0.515302192797916
+ WHEN Fare > 84.9875 AND Fare <= 87.8021 THEN 0.561595019705461
+ WHEN Fare > 87.8021 AND Fare <= 89.5521 THEN 0.571024891549585
+ WHEN Fare > 89.5521 AND Fare <= 90.53960000000001 THEN 0.5741510828361
+ WHEN Fare > 90.53960000000001 AND Fare <= 92.28960000000001 THEN 0.58057838833219
+ WHEN Fare > 92.28960000000001 AND Fare <= 99.9625 THEN 0.583331891262128
+ WHEN Fare > 99.9625 AND Fare <= 107.6625 THEN 0.565589626240899
+ WHEN Fare > 107.6625 AND Fare <= 109.89165 THEN 0.568458795306273
+ WHEN Fare > 109.89165 AND Fare <= 112.07915 THEN 0.57138166694313
+ WHEN Fare > 112.07915 AND Fare <= 116.6375 THEN 0.57577111839549
+ WHEN Fare > 116.6375 AND Fare <= 126.825 THEN 0.581238336561552
+ WHEN Fare > 126.825 AND Fare <= 134.075 THEN 0.583720856200252
+ WHEN Fare > 134.075 AND Fare <= 135.06664999999998 THEN 0.584288576296079
+ WHEN Fare > 135.06664999999998 AND Fare <= 141.07704999999999 THEN 0.560025723609544
+ WHEN Fare > 141.07704999999999 AND Fare <= 149.0354 THEN 0.558105764273985
+ WHEN Fare > 149.0354 AND Fare <= 152.50625000000002 THEN 0.186751508848466
+ WHEN Fare > 152.50625000000002 AND Fare <= 159.1646 THEN 0.270460299432849
+ WHEN Fare > 159.1646 AND Fare <= 188.1021 THEN 0.273747010475228
+ WHEN Fare > 188.1021 AND Fare <= 211.41875 THEN 0.275853574416444
+ WHEN Fare > 211.41875 AND Fare <= 216.6396 THEN 0.265569797192791
+ WHEN Fare > 216.6396 AND Fare <= 224.65210000000002 THEN 0.268024934581335
+ WHEN Fare > 224.65210000000002 AND Fare <= 237.5229 THEN 0.274616925442933
+ WHEN Fare > 237.5229 AND Fare <= 254.9479 THEN 0.279670399953501
+ WHEN Fare > 254.9479 AND Fare <= 262.6875 THEN 0.85434508202578
+ WHEN Fare > 262.6875 AND Fare <= 387.6646 THEN 0.863763086381887
+ WHEN Fare >= 387.6646 THEN 1.039960420224148
  ELSE 0.0
 END
 AS Fare_score
 ,
 CASE
- WHEN Parents/Children Aboard <= 0.5 THEN 0.009592088297724649
- WHEN Parents/Children Aboard > 0.5 AND Parents/Children Aboard <= 1.5 THEN 0.13901629092065113
- WHEN Parents/Children Aboard > 1.5 AND Parents/Children Aboard <= 2.5 THEN -0.056518302941909446
- WHEN Parents/Children Aboard > 2.5 AND Parents/Children Aboard <= 3.5 THEN 0.16897632695938536
- WHEN Parents/Children Aboard > 3.5 AND Parents/Children Aboard <= 4.5 THEN -2.281720176608636
- WHEN Parents/Children Aboard >= 4.5 THEN -1.6775877557188137
+ WHEN Parents_Children_Aboard IS NULL THEN 0.0
+ WHEN Parents_Children_Aboard <= 0.5 THEN -0.005270536664201
+ WHEN Parents_Children_Aboard > 0.5 AND Parents_Children_Aboard <= 1.5 THEN 0.145532943939556
+ WHEN Parents_Children_Aboard > 1.5 AND Parents_Children_Aboard <= 2.5 THEN 0.043940395350437
+ WHEN Parents_Children_Aboard > 2.5 AND Parents_Children_Aboard <= 3.5 THEN -0.174517123688408
+ WHEN Parents_Children_Aboard > 3.5 AND Parents_Children_Aboard <= 4.5 THEN -1.49687080619082
+ WHEN Parents_Children_Aboard > 4.5 AND Parents_Children_Aboard <= 5.5 THEN -1.635733226335456
+ WHEN Parents_Children_Aboard >= 5.5 THEN -2.09704232634826
  ELSE 0.0
 END
-AS Parents/Children Aboard_score
+AS Parents_Children_Aboard_score
 ,
 CASE
- WHEN Pclass <= 1.5 THEN 0.9302805894546928
- WHEN Pclass > 1.5 AND Pclass <= 2.5 THEN 0.25551210547337744
- WHEN Pclass >= 2.5 THEN -0.509147504577649
+ WHEN Pclass IS NULL THEN 0.0
+ WHEN Pclass <= 1.5 THEN 0.805920536365221
+ WHEN Pclass > 1.5 AND Pclass <= 2.5 THEN 0.261431270399019
+ WHEN Pclass >= 2.5 THEN -0.456226262029379
  ELSE 0.0
 END
 AS Pclass_score
 ,
 CASE
- WHEN Sex = 'female' THEN 1.6174321150802822
- WHEN Sex = 'male' THEN -0.8863415080893693
+ WHEN Sex IS NULL THEN 0.0
+ WHEN Sex = 'female' THEN 1.475010051392259
+ WHEN Sex = 'male' THEN -0.808295211408673
  ELSE 0.0
 END
 AS Sex_score
 ,
 CASE
- WHEN Siblings/Spouses Aboard <= 0.5 THEN 0.14311543044890396
- WHEN Siblings/Spouses Aboard > 0.5 AND Siblings/Spouses Aboard <= 1.5 THEN 0.09610932869908732
- WHEN Siblings/Spouses Aboard > 1.5 AND Siblings/Spouses Aboard <= 2.5 THEN -0.17792316345214299
- WHEN Siblings/Spouses Aboard > 2.5 AND Siblings/Spouses Aboard <= 3.5 THEN -1.894139602264278
- WHEN Siblings/Spouses Aboard > 3.5 AND Siblings/Spouses Aboard <= 4.5 THEN -1.8119556555411975
- WHEN Siblings/Spouses Aboard >= 4.5 THEN -3.2187738063847706
+ WHEN Siblings_Spouses_Aboard IS NULL THEN 0.0
+ WHEN Siblings_Spouses_Aboard <= 0.5 THEN 0.10216256635294
+ WHEN Siblings_Spouses_Aboard > 0.5 AND Siblings_Spouses_Aboard <= 1.5 THEN 0.122683464335491
+ WHEN Siblings_Spouses_Aboard > 1.5 AND Siblings_Spouses_Aboard <= 2.5 THEN -0.200382160680672
+ WHEN Siblings_Spouses_Aboard > 2.5 AND Siblings_Spouses_Aboard <= 3.5 THEN -1.307821447197824
+ WHEN Siblings_Spouses_Aboard > 3.5 AND Siblings_Spouses_Aboard <= 4.5 THEN -1.623616283445086
+ WHEN Siblings_Spouses_Aboard > 4.5 AND Siblings_Spouses_Aboard <= 6.5 THEN -2.363098113188522
+ WHEN Siblings_Spouses_Aboard >= 6.5 THEN -2.82437240015932
  ELSE 0.0
 END
-AS Siblings/Spouses Aboard_score
+AS Siblings_Spouses_Aboard_score
 ,
 CASE
- WHEN Pclass <= 1.5 THEN 
-  CASE
-         WHEN Sex = 'female' THEN 0.7705653528819336
-         WHEN Sex = 'male' THEN -0.24371192509571704
+ WHEN Age <= 2.5 THEN 
+      CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.001024022781208
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.056468381283715
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.249751550076573
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.160325507658612
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.160971197325844
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.119168350245708
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.080684292695823
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.084708248623612
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.035579953993915
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.051592695835596
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.276449150889029
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.309913799592657
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.255977126885693
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN 0.248434046836153
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.32140185863124
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.238307473931493
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.184770684645041
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.142020666937305
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.144057029185768
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.076171592806838
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.047870445827125
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.083141727928499
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.080350445673811
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.101123452350491
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.182032140064913
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.224963096501173
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.285835676371637
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.445593211263725
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.793765709029888
+         WHEN Fare >= 149.0354 THEN -1.13966033500186
          ELSE 0.0
      END
- WHEN Pclass > 1.5 AND Pclass <= 2.5 THEN 
+ WHEN Age <= 5.5 THEN 
+      CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.00757723249524
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.047460229213003
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.259717912198096
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.166828199409313
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.166443789753901
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.123119260190921
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.08315152674262
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.088929351526784
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.033659582553826
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.04691192198668
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.279457978040229
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.303271519568785
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.242359754833492
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN 0.233577797070348
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.306041088457237
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.222670146235998
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.168582192319049
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.126488582528985
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.130505048824211
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.137018771645956
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.112163271497667
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.115079168544926
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.117719022984984
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.096946016308304
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.036033990758952
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.001442554121791
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.04668650947727
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.203178555234196
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.532145389657408
+         WHEN Fare >= 149.0354 THEN -0.875480144166253
+         ELSE 0.0
+     END
+ WHEN Age > 5.5 AND Age <= 9.5 THEN 
      CASE
-         WHEN Sex = 'female' THEN 0.7818234104071947
-         WHEN Sex = 'male' THEN -0.516249820220179
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.132193644832084
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.077280922044636
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.379948410515773
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.284525884990728
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.282595136451561
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.2233820233437
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.173094139365636
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.1788719641498
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.050132422344999
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.039184123533302
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.089691366554389
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.109788932364792
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.044587436937202
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN 0.034941830510709
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.10881007516287
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.026996379968287
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.026684408741997
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.066531475883583
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.063326525070675
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.015434565167449
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.039933783767922
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.036879444670795
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.034239590230738
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.042427155573752
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.04682894787852
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.07906223278938
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.117567474498011
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.167602560463336
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.237592699224627
+         WHEN Fare >= 149.0354 THEN -0.572586391531728
          ELSE 0.0
      END
- WHEN Pclass > 2.5 THEN 
-   CASE
-         WHEN Sex = 'female' THEN -0.4769576921046914
-         WHEN Sex = 'male' THEN 0.06506711587954458
+ WHEN Age > 9.5 AND Age <= 15.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.102696109181803
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.048689658468336
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.350890957001139
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.250403425668367
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.247380526629738
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.186621779108857
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.133729577132938
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.13607677631966
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.005839961974742
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.00235196202723
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.012709017386514
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.026894442110945
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.036585420390484
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.045704960587367
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.030736512019932
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.047663445342603
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.078770954765524
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.106432429021899
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.103614358446781
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.037392091982265
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.059567388289827
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.0565130491927
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.054357635967237
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.058903833300888
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.060927357982038
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.057955750342877
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.093273789536236
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.078322088121985
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.082755638521843
+         WHEN Fare >= 149.0354 THEN -0.397538547922643
          ELSE 0.0
      END
- ELSE 0.0
-END
-AS Pclass_x_Sex_score
-,
-CASE
- WHEN Age <= 19.5 THEN 
-  CASE
-         WHEN Siblings/Spouses Aboard <= 0.5 THEN 0.11638610591893593
-         WHEN Siblings/Spouses Aboard > 0.5 AND Siblings/Spouses Aboard <= 1.5 THEN 0.12292631088784307
-         WHEN Siblings/Spouses Aboard > 1.5 AND Siblings/Spouses Aboard <= 2.5 THEN -0.25944261148938375
-         WHEN Siblings/Spouses Aboard > 2.5 AND Siblings/Spouses Aboard <= 3.5 THEN -0.6154429971524731
-         WHEN Siblings/Spouses Aboard > 3.5 THEN -0.35300748582765057
+ WHEN Age > 15.5 AND Age <= 17.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.061267028685555
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.0064674044513
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.307985750240835
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.208443520653238
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.208379586449319
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.148341349177074
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.093184222229419
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.086718989118958
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.048316330097597
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.055678689638054
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.039153703409307
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.028449684408119
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.086169402461291
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.094639041763867
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.01691633884214
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.089845837744101
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.111346655811737
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.124707819593836
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.120685754671545
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.051715458799853
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.072732994320038
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.069101915711914
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.06774545878246
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.070192491762696
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.070499186483185
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.065622783211478
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.099573221658621
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.085143365437
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.08618769264698
+         WHEN Fare >= 149.0354 THEN -0.391687139074662
+         ELSE 0.0
+     END
+ WHEN Age > 17.5 AND Age <= 18.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.027248217163396
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.029699023787383
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.268069908659163
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.16602618313469
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.165456095084124
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.10388363960601
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.046651133834362
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.038986796971206
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.068081451102171
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.07596591060235
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.062023231984764
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.05181973563997
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.107834232736632
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.112757391881614
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.032897703407981
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.103118607948257
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.120795053018951
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.131511662267256
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.125834073700232
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.054788398589635
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.075960310080143
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.074005619269958
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.077426968711649
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.08072492246782
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.081518339365053
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.076545024252556
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.110591305521682
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.113532231226969
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.114660860606092
+         WHEN Fare >= 149.0354 THEN -0.417535712231525
+         ELSE 0.0
+     END
+ WHEN Age > 18.5 AND Age <= 20.25 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.049156313646115
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.009871363593905
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.280780794065228
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.162915229968304
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.161789152923508
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.100397576975048
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.030737448606999
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.020970200520906
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.082811986627161
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.088898120260741
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.074083428242942
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.06356925396518
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.116645427756259
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.121668970410892
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.039833423807719
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.10629744061079
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.122529865352285
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.131543531720699
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.125387068725807
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.053687962534444
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.073950014322955
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.073285320736336
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.077091519821996
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.082031890030699
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.082352294367452
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.0764669903036
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.11043105315866
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.112113004822672
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.11336010251026
+         WHEN Fare >= 149.0354 THEN -0.415375785249184
+         ELSE 0.0
+     END
+ WHEN Age > 20.25 AND Age <= 21.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.047988583016721
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.108251934720716
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.174646210890395
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.05605816768123
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.057117439133477
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.000121856191827
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.074878632375918
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.085029951250013
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.155172483184573
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.161504157528225
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.145733600157277
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.134364561411078
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.144799250798928
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.148378196846607
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.066140588080176
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.107980572675179
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.121867384498506
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.129434743447011
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.122876280349573
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.035801466282981
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.054987640501269
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.053238615884254
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.058221023292373
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.061409279908724
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.060623961141561
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.054616527876041
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.089319497556006
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.090932934568645
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.093959410741255
+         WHEN Fare >= 149.0354 THEN -0.392942352458753
+         ELSE 0.0
+     END
+ WHEN Age > 21.5 AND Age <= 22.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.066278159941475
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.003052949852281
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.22437380795445
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.105231366049883
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.105237094400136
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.047259663964175
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.07579619369066
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.088289052460421
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.157245268327205
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.163433295223826
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.148139517711742
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.137094006749881
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.144466276891398
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.146999044289923
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.063627791185274
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.082222862468963
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.095769236477464
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.096804436781454
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.088878688102078
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.0015168198356
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.015812560868476
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.012352576652187
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.015741838496995
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.018350974938066
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.016057536494319
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.010039886428724
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.046396995298793
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.056948748566911
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.060736030420978
+         WHEN Fare >= 149.0354 THEN -0.361557256610952
+         ELSE 0.0
+     END
+ WHEN Age > 22.5 AND Age <= 23.75 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.337067822009123
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.263944281806445
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.217904493564608
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.099319555727657
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.098283710778902
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.041246959079826
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.083537030076334
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.094916593715617
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.121745392473067
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.127214055876138
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.111737159453012
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.09893803520287
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.104376134811654
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.103462514218196
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.020528687509499
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.012635984571036
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.022386461245167
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.014578932035876
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.007350151184507
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.083693570688578
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.067540518788942
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.072269842568097
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.06983472988015
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.067247783445325
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.070721179861066
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.077603417608213
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.042144934789873
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.03001627875583
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.026062913142065
+         WHEN Fare >= 149.0354 THEN -0.277137102902032
+         ELSE 0.0
+     END
+ WHEN Age > 23.75 AND Age <= 24.25 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.416712454140884
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.33063064679497
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.221850455552402
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.105183031489007
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.103513180543604
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.052196068832391
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.07161365158793
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.082241687808974
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.09706130516314
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.101179006507756
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.086662390658071
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.072591296688893
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.077633163039809
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.076106928144649
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.006561179175178
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.016040769145584
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.008316982662356
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.01800213735784
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.0246260320627
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.117392252142573
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.101185887119818
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.106997092327479
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.105339765796171
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.102106301796092
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.105692629154575
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.113189758181714
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.07923560323857
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.060753997583293
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.056150010405974
+         WHEN Fare >= 149.0354 THEN -0.275083543946751
+         ELSE 0.0
+     END
+ WHEN Age > 24.25 AND Age <= 26.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.414006160760986
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.326396372003272
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.213189577175918
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.099719034648457
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.100164755940983
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.05076282754676
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.070029330480371
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.080657366701416
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.093396900449119
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.098006338798285
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.08550228068425
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.071132158630665
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.078042174539741
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.07651593964458
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.003772646984292
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.012001675775673
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.004413220517526
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.014584511785981
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.021830606934082
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.122825914845946
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.107841883921404
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.11752777677779
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.118923848627203
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.115748880001495
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.120646658668258
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.130308285907888
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.099658916236283
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.08203551877838
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.075927240123103
+         WHEN Fare >= 149.0354 THEN -0.262006853630995
+         ELSE 0.0
+     END
+ WHEN Age > 26.5 AND Age <= 27.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.433423702138408
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.347867992528507
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.237728897544297
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.136455496178442
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.140044774399123
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.097723559030077
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.022051256804196
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.032821602197144
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.045313917004479
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.049509082344981
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.037465248527976
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.024524393944871
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.032389331021556
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.031392802681553
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.021467570896148
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.029322613416522
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.020637676568751
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.030631077113354
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.038464430023052
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.139643352406281
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.10633115382409
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.117820572171701
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.118473613381663
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.11694070432914
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.122022421572725
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.133084152405062
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.103635556688683
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.084566369317563
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.078601234215253
+         WHEN Fare >= 149.0354 THEN -0.25334413512362
          ELSE 0.0
      END
- WHEN Age > 19.5 AND Age <= 25.5 THEN 
+ WHEN Age > 27.5 AND Age <= 28.25 THEN 
      CASE
-         WHEN Siblings/Spouses Aboard <= 0.5 THEN -0.1129609132407375
-         WHEN Siblings/Spouses Aboard > 0.5 AND Siblings/Spouses Aboard <= 1.5 THEN -0.1012419331087188
-         WHEN Siblings/Spouses Aboard > 1.5 AND Siblings/Spouses Aboard <= 2.5 THEN 0.0024556199876265344
-         WHEN Siblings/Spouses Aboard > 2.5 AND Siblings/Spouses Aboard <= 3.5 THEN 0.42616913082258523
-         WHEN Siblings/Spouses Aboard > 3.5 THEN 0.5803797724076524
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.207697435206392
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.12338430855516
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.091157060365493
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.09917517210004
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.120620126544921
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.083254840641641
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.036519975192632
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.047012192620778
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.058186186066803
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.061274038331714
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.056438312660023
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.042014530594326
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.049513086295557
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.050306716796418
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.003556241502234
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.011411284022607
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.004368938310491
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.015839939328078
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.025256522994752
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.125047553655456
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.077214850642354
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.08603402396437
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.087678678022037
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.086120262850621
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.091593705957652
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.102769435302347
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.074607965576789
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.056728895677174
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.052101101786466
+         WHEN Fare >= 149.0354 THEN -0.208463784993209
          ELSE 0.0
      END
- WHEN Age > 25.5 AND Age <= 31.5 THEN 
+ WHEN Age > 28.25 AND Age <= 29.5 THEN 
      CASE
-         WHEN Siblings/Spouses Aboard <= 0.5 THEN 0.1315039965083184
-         WHEN Siblings/Spouses Aboard > 0.5 AND Siblings/Spouses Aboard <= 1.5 THEN -0.30913774057221954
-         WHEN Siblings/Spouses Aboard > 1.5 AND Siblings/Spouses Aboard <= 2.5 THEN -0.029862848727300238
-         WHEN Siblings/Spouses Aboard > 2.5 AND Siblings/Spouses Aboard <= 3.5 THEN 1.5911043649612562
-         WHEN Siblings/Spouses Aboard > 3.5 THEN 1.623175024812267
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.063733688116047
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.02112253227505
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.03792198660855
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.0939084383479
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.136611971571734
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.12206299961799
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.007572182697274
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.021255839410071
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.030385128667815
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.032931966284297
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.031479114850489
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.017858845960233
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.02484628537676
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.025799192249102
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.022497629279392
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.031233849373065
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.024389081703849
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.035569651657534
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.045652875855221
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.14605318551399
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.093168593453087
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.103997117891134
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.105418560413722
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.104375206472029
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.110525364313681
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.125057128957801
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.100652782445984
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.089028237416895
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.088422488547267
+         WHEN Fare >= 149.0354 THEN -0.139847540522245
          ELSE 0.0
      END
- WHEN Age > 31.5 AND Age <= 41.5 THEN 
+ WHEN Age > 29.5 AND Age <= 30.25 THEN 
      CASE
-         WHEN Siblings/Spouses Aboard <= 0.5 THEN 0.09961653355027635
-         WHEN Siblings/Spouses Aboard > 0.5 AND Siblings/Spouses Aboard <= 1.5 THEN 0.0008688372541169886
-         WHEN Siblings/Spouses Aboard > 1.5 AND Siblings/Spouses Aboard <= 2.5 THEN 0.22687641697749977
-         WHEN Siblings/Spouses Aboard > 2.5 AND Siblings/Spouses Aboard <= 3.5 THEN 1.8930044866178133
-         WHEN Siblings/Spouses Aboard > 3.5 THEN 1.8901191984156
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.241952185634553
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.230404693870534
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.207888566257235
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.148942488357715
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.10502740671835
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.00871370000661
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.0380193518844
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.065502818070493
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.068273201254895
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.069091204430274
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.066441829798083
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.052798807495405
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.057552305829377
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.059320156093113
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.011712311345768
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.000453243845819
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.006898650016102
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.004280264545686
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.013803801693577
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.142091143291839
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.093531905915386
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.111496769624907
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.115270590799197
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.115520318629725
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.124013561171898
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.164776954305684
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.141842190880393
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.133833579221447
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.133788955270328
+         WHEN Fare >= 149.0354 THEN 0.00245043101714
          ELSE 0.0
      END
- WHEN Age > 41.5 THEN 
-   CASE
-         WHEN Siblings/Spouses Aboard <= 0.5 THEN -0.03628386576606947
-         WHEN Siblings/Spouses Aboard > 0.5 AND Siblings/Spouses Aboard <= 1.5 THEN 0.024107173784965165
-         WHEN Siblings/Spouses Aboard > 1.5 AND Siblings/Spouses Aboard <= 2.5 THEN 0.40953050137064084
-         WHEN Siblings/Spouses Aboard > 2.5 AND Siblings/Spouses Aboard <= 3.5 THEN 2.086945629689951
-         WHEN Siblings/Spouses Aboard > 3.5 THEN 2.0352798757755144
+ WHEN Age > 30.25 AND Age <= 32.25 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.257949190276906
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.243220498157379
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.210824340081138
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.143671083627935
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.098475794397038
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.002478351543026
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.020418720600441
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.005708149635252
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.009193678674495
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.008723004301058
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.003471030492051
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.010126624651472
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.012312088257202
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN 0.010292277048885
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.056364638294627
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.086336105117993
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.098110817830146
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.110513219959882
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.121127748909533
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.251173304089424
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.203712446878746
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.222460337174449
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.22531675421688
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.226394588244215
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.235851908069327
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.278174292970747
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.254085388665534
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.246544885649608
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.250012978257851
+         WHEN Fare >= 149.0354 THEN 0.121233309275452
+         ELSE 0.0
+     END
+ WHEN Age > 32.25 AND Age <= 34.25 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.292699483014414
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.275838646448386
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.237912332659146
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.170070570544574
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.121529876813135
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.021720416549227
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.000321934210279
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.023895504106347
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.026431035375663
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.025201206960534
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.019116334331419
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.00410444403047
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.000791702424939
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.00081117438959
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.047670196103042
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.07778438278311
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.089872252269357
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.102134022328185
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.113078538921964
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.257076220382713
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.20921292005572
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.228771460672275
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.231201761463318
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.231187086953591
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.241146477219376
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.283980073074743
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.266384096351982
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.259177419749183
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.26470644544696
+         WHEN Fare >= 149.0354 THEN 0.15232309613877
+         ELSE 0.0
+     END
+ WHEN Age > 34.25 AND Age <= 35.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.347364380182617
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.330329687962253
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.287980823939945
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.21810343111706
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.169496358971503
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.064441511766277
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.039589158497297
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.06250419404467
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.064099634927852
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.062531602866752
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.055972794794379
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.039947910529872
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.035390869063228
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.036368004936059
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.013263318859762
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.044509825906376
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.056597695392623
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.069200933404553
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.080410986082485
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.262710583123389
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.215153568331781
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.235817718525439
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.238285936326073
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.237960602758072
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.249062069298819
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.29287528035112
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.281583284057109
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.275279403827064
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.286777284702918
+         WHEN Fare >= 149.0354 THEN 0.23051298876211
+         ELSE 0.0
+     END
+ WHEN Age > 35.5 AND Age <= 36.25 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.645111558011687
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.626977101843388
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.584501504801753
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.512986627428214
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.464285382905092
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.328489609794164
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.058954743038163
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.079943647471194
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.08030969423886
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.077229356202262
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.070970270730236
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.054109873607133
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.050916720550532
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.050548815806356
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.00093210365125
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.031144374951312
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.04383036101511
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.057585423792093
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.069568967410243
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.254443332710075
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.207035120280944
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.227990503828585
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.230960893796178
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.230635560228177
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.242038069025125
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.286447279148586
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.286534119072393
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.280230238842347
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.290529283527482
+         WHEN Fare >= 149.0354 THEN 0.252321595841791
+         ELSE 0.0
+     END
+ WHEN Age > 36.25 AND Age <= 38.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.702536163719291
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.68387667299326
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.637368687169133
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.563702515302816
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.515098260094499
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.376046462055026
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.102589773668535
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.123083782727447
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.12372617425713
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.12059993175285
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.114241331848426
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.099098742998149
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.096141604958967
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.095913934574971
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.046494775384063
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.014896460243114
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.001922371716048
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.011792988644409
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.024298108124705
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.222755137210839
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.176800473726304
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.22078371147889
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.22418688301207
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.225463754001819
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.237057246299056
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.281466456422517
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.284082242137446
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.281066984284206
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.29070641868808
+         WHEN Fare >= 149.0354 THEN 0.252558244907538
+         ELSE 0.0
+     END
+ WHEN Age > 38.5 AND Age <= 40.25 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.647410376344908
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.626480167795604
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.577864736068503
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.501051776415679
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.451494280873276
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.30720094791864
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.030617742465757
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.057855674567867
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.063786746842822
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.060403756508511
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.055717737331149
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.050113731135121
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.047089892104062
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.131875972871348
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.129331326516288
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.098111396726745
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.085831513885298
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.073120061025424
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.062751440153194
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.132887328130766
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.088098724672171
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.132069559016911
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.135935206134824
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.136465950632106
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.147568464641628
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.191069157345802
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.195701449182401
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.192038956865015
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.201087890105195
+         WHEN Fare >= 149.0354 THEN 0.167108223619332
+         ELSE 0.0
+     END
+ WHEN Age > 40.25 AND Age <= 42.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.655123062216254
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.633521395686274
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.58518551600752
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.508372556354696
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.454732113330487
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.308961467690129
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.028804046501466
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.05565063398211
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.060077072246864
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.056039890909228
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.050533783978138
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.050374076255935
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.04659581736921
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.131990990714984
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.129798826078696
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.099281171243685
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.087974922923491
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.074978440297498
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.065450363681933
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.129401334775321
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.084113315002251
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.127579772180665
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.128686799632811
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.129165233065394
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.140267747074915
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.181914227130293
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.187878363159275
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.182352520614537
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.190928209719606
+         WHEN Fare >= 149.0354 THEN 0.157507011048116
+         ELSE 0.0
+     END
+ WHEN Age > 42.5 AND Age <= 45.25 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.53951013243912
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.515201238592104
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.466507986844625
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.388872819420561
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.33455218459306
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.186913828300444
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.094336611758345
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.04936528575139
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.045456839456738
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.049433675149926
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.02213250025531
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.055778967521997
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.061274550187362
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.149255756739969
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.14807047689044
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.117796091518969
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.105898869289625
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.095187930812367
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.087835529107406
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.09166586525525
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.044206752465583
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.086668137359971
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.086232367473755
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.086381604025273
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.096755392614978
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.134425231120548
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.140450896777015
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.132287606192495
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.139860883460523
+         WHEN Fare >= 149.0354 THEN 0.107331210957342
+         ELSE 0.0
+     END
+ WHEN Age > 45.25 AND Age <= 47.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.73370405776886
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.708776176752312
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.660082925004834
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.582256646246862
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.527403488011916
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.378531902810944
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.096655189244966
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.141051081486932
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.013407109749258
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.035971096966987
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.03470921771783
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.071895784314461
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.078861084043074
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.166755382537332
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.164763447367403
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.130162725159578
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.117363932941656
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.106473957843083
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.099544599914983
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.078405912171603
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.033158432288911
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.084398326559857
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.084777023683106
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.084332819314898
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.09446156129301
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.131496110978526
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.137021636860255
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.127878316244638
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.134216078411846
+         WHEN Fare >= 149.0354 THEN 0.101862251482997
+         ELSE 0.0
+     END
+ WHEN Age > 47.5 AND Age <= 49.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.745277736558006
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.720330514295656
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.671847331604224
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.594092284922114
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.538954776691897
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.389326399387068
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.104899304441967
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.144878512248986
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.010863711642938
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.034717037727961
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.034280091370133
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.072180552184147
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.07782752173128
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.164488189645678
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.162380230999015
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.12732201368305
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.114312996296116
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.103020934268968
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.096533301092424
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.079904767822936
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.035198574747625
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.08673058490341
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.088706984277325
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.089403858612574
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.100964700658478
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.137266987186531
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.144022880159919
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.13588496361289
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.134908809337479
+         WHEN Fare >= 149.0354 THEN 0.102066815527966
+         ELSE 0.0
+     END
+ WHEN Age > 49.5 AND Age <= 51.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.755592253973724
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.730866452083456
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.693104945465576
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.616589097767287
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.561561230489034
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.41036696397032
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.123724612376057
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.162389071100921
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.005155120260514
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.01896721987023
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.050006011017402
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.093437043585296
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.10430494045089
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.190122041920391
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.187175373541003
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.151488861458984
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.139359944635491
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.132651890210608
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.127726585780236
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.03759839727672
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.00690896235955
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.0444765210405
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.046654464003273
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.042860566418656
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.044604226626006
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.079693895371937
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.087449037266755
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.082676459730331
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.082145693059253
+         WHEN Fare >= 149.0354 THEN 0.051856658696342
+         ELSE 0.0
+     END
+ WHEN Age > 51.5 AND Age <= 55.75 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.769272053049868
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.744077858560494
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.707310507435061
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.630004907411299
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.576855995846086
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.425362515941476
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.137941978334636
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.174000857358176
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.014745415845539
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.013142419727538
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.056827405742683
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.100300649429813
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.111123791708825
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.198269258838215
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.195827686789722
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.159532509692825
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.14777035410409
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.141364384827701
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.136439080397329
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.028341968745126
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.015812939664612
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.036152444247862
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.039143884230613
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.035111746097484
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.037564142890547
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.073011633453758
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.082145419453187
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.08112811999566
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.079684445471282
+         WHEN Fare >= 149.0354 THEN 0.050895166112303
+         ELSE 0.0
+     END
+ WHEN Age > 55.75 AND Age <= 61.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.876874851998484
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.852291416159046
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.815524065033614
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.738107238118643
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.686795748267552
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.536615544748995
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.248696018456567
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.282711091820076
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.117199998897529
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.088984479473894
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.161099792841996
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.20485444618664
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.218447888701079
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.305058345238651
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.304128213365031
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.271047944076896
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.259524514050968
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.251870013175887
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.244335047374664
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.080100789739586
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.088612069951041
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.044410228796741
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.049802992662811
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.045704881842567
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.05052187323987
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.087598658818388
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.101802524912103
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.142343734174151
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.138264020799748
+         WHEN Fare >= 149.0354 THEN 0.110232963813109
+         ELSE 0.0
+     END
+ WHEN Age >= 61.5 THEN 
+      CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.639432436195894
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.615496283935934
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.581900418099238
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.506457192934731
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.454988862619687
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.300264339245224
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.009931988796437
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.042107006661556
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.139323744723916
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.177214289805996
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.110217555826869
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.020511107854049
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.001983333556896
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.093625451638569
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.152426890933597
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.201567872567762
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.209996745064883
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.209517579277312
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.21771594510387
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.063033815345178
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.070371417282936
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.062545713916917
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.022929089440589
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.018119104646685
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.022249085448781
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.058982201974681
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.071187816227495
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.112415666084937
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.104669265051141
+         WHEN Fare >= 149.0354 THEN 0.076496957936591
          ELSE 0.0
      END
  ELSE 0.0
 END
-AS Age_x_Siblings/Spouses Aboard_score
+AS Age_x_Fare_score
 ,
 CASE
  WHEN Sex = 'female' THEN 
-  CASE
-         WHEN Age <= 19.5 THEN 0.009675807114957791
-         WHEN Age > 19.5 AND Age <= 25.5 THEN 0.09922129773667869
-         WHEN Age > 25.5 AND Age <= 31.5 THEN 0.15290334878571463
-         WHEN Age > 31.5 AND Age <= 41.5 THEN 0.04106435980449465
-         WHEN Age > 41.5 THEN -0.14890720189379952
+     CASE
+         WHEN Age IS NULL THEN 0.0
+         WHEN Age <= 2.5 THEN -0.393202774935624
+         WHEN Age > 2.5 AND Age <= 5.5 THEN -0.251787504571646
+         WHEN Age > 5.5 AND Age <= 9.5 THEN -0.24839029244188
+         WHEN Age > 9.5 AND Age <= 15.5 THEN 0.019665754184509
+         WHEN Age > 15.5 AND Age <= 17.5 THEN 0.04916531659579
+         WHEN Age > 17.5 AND Age <= 18.5 THEN 0.058745666881372
+         WHEN Age > 18.5 AND Age <= 20.25 THEN 0.073745091417964
+         WHEN Age > 20.25 AND Age <= 21.5 THEN 0.085992695640597
+         WHEN Age > 21.5 AND Age <= 22.5 THEN 0.140780965966272
+         WHEN Age > 22.5 AND Age <= 23.75 THEN 0.149432161069203
+         WHEN Age > 23.75 AND Age <= 24.25 THEN 0.156880529340796
+         WHEN Age > 24.25 AND Age <= 26.5 THEN 0.148713041888518
+         WHEN Age > 26.5 AND Age <= 27.5 THEN 0.159480023007523
+         WHEN Age > 27.5 AND Age <= 28.25 THEN 0.165261706841173
+         WHEN Age > 28.25 AND Age <= 29.5 THEN 0.170839624310975
+         WHEN Age > 29.5 AND Age <= 30.25 THEN 0.177499324560498
+         WHEN Age > 30.25 AND Age <= 32.25 THEN 0.1831512310385
+         WHEN Age > 32.25 AND Age <= 34.25 THEN 0.207741413762689
+         WHEN Age > 34.25 AND Age <= 35.5 THEN 0.206552493276379
+         WHEN Age > 35.5 AND Age <= 36.25 THEN 0.202912222647298
+         WHEN Age > 36.25 AND Age <= 38.5 THEN 0.090595532446929
+         WHEN Age > 38.5 AND Age <= 40.25 THEN 0.073821323744178
+         WHEN Age > 40.25 AND Age <= 42.5 THEN 0.071384416274402
+         WHEN Age > 42.5 AND Age <= 45.25 THEN 0.064777557271935
+         WHEN Age > 45.25 AND Age <= 47.5 THEN 0.074727271854011
+         WHEN Age > 47.5 AND Age <= 49.5 THEN 0.082880407953516
+         WHEN Age > 49.5 AND Age <= 51.5 THEN 0.096991292204196
+         WHEN Age > 51.5 AND Age <= 55.75 THEN 0.124700620381862
+         WHEN Age > 55.75 AND Age <= 61.5 THEN 0.130440225652551
+         WHEN Age >= 61.5 THEN 0.133218427057208
          ELSE 0.0
      END
  WHEN Sex = 'male' THEN 
-  CASE
-         WHEN Age <= 19.5 THEN 0.2927905150409132
-         WHEN Age > 19.5 AND Age <= 25.5 THEN -0.0910067629158213
-         WHEN Age > 25.5 AND Age <= 31.5 THEN -0.059682214243740137
-         WHEN Age > 31.5 AND Age <= 41.5 THEN -0.05519111378963172
-         WHEN Age > 41.5 THEN -0.15508388842613152
+     CASE
+         WHEN Age IS NULL THEN 0.0
+         WHEN Age <= 2.5 THEN 0.920010895436271
+         WHEN Age > 2.5 AND Age <= 5.5 THEN 0.89840074740141
+         WHEN Age > 5.5 AND Age <= 9.5 THEN 0.858496368091344
+         WHEN Age > 9.5 AND Age <= 15.5 THEN 0.279226582659186
+         WHEN Age > 15.5 AND Age <= 17.5 THEN -0.022966026393562
+         WHEN Age > 17.5 AND Age <= 18.5 THEN -0.050873240956686
+         WHEN Age > 18.5 AND Age <= 20.25 THEN -0.073869264199688
+         WHEN Age > 20.25 AND Age <= 21.5 THEN -0.096481818822364
+         WHEN Age > 21.5 AND Age <= 22.5 THEN -0.104747800465796
+         WHEN Age > 22.5 AND Age <= 23.75 THEN -0.10407844133902
+         WHEN Age > 23.75 AND Age <= 24.25 THEN -0.099589372138048
+         WHEN Age > 24.25 AND Age <= 26.5 THEN -0.09066745148671
+         WHEN Age > 26.5 AND Age <= 27.5 THEN -0.087120251646281
+         WHEN Age > 27.5 AND Age <= 28.25 THEN -0.096407028943625
+         WHEN Age > 28.25 AND Age <= 29.5 THEN -0.094724639026772
+         WHEN Age > 29.5 AND Age <= 30.25 THEN -0.103150754486301
+         WHEN Age > 30.25 AND Age <= 32.25 THEN -0.098268853803162
+         WHEN Age > 32.25 AND Age <= 34.25 THEN -0.113364602272319
+         WHEN Age > 34.25 AND Age <= 35.5 THEN -0.116995250254067
+         WHEN Age > 35.5 AND Age <= 36.25 THEN -0.120840394871337
+         WHEN Age > 36.25 AND Age <= 38.5 THEN -0.124172227908268
+         WHEN Age > 38.5 AND Age <= 40.25 THEN -0.13128921641101
+         WHEN Age > 40.25 AND Age <= 42.5 THEN -0.133756350967841
+         WHEN Age > 42.5 AND Age <= 45.25 THEN -0.137692754679622
+         WHEN Age > 45.25 AND Age <= 47.5 THEN -0.145564293353589
+         WHEN Age > 47.5 AND Age <= 49.5 THEN -0.14536297464617
+         WHEN Age > 49.5 AND Age <= 51.5 THEN -0.161583034050126
+         WHEN Age > 51.5 AND Age <= 55.75 THEN -0.173744656855308
+         WHEN Age > 55.75 AND Age <= 61.5 THEN -0.184374649943671
+         WHEN Age >= 61.5 THEN -0.187432541114603
          ELSE 0.0
      END
  ELSE 0.0
@@ -214,26 +1528,488 @@ AS Sex_x_Age_score
 ,
 CASE
  WHEN Sex = 'female' THEN 
-  CASE
-         WHEN Fare <= 7.8771 THEN 0.5031361506573769
-         WHEN Fare > 7.8771 AND Fare <= 10.50835 THEN -0.0844742115378387
-         WHEN Fare > 10.50835 AND Fare <= 22.19165 THEN -0.02980089687490711
-         WHEN Fare > 22.19165 AND Fare <= 39.64375 THEN -0.0578973819109265
-         WHEN Fare > 39.64375 THEN 0.028754468465789964
+     CASE
+         WHEN Parents_Children_Aboard IS NULL THEN 0.0
+         WHEN Parents_Children_Aboard <= 0.5 THEN 0.151609517207636
+         WHEN Parents_Children_Aboard > 0.5 AND Parents_Children_Aboard <= 1.5 THEN -0.02443030047269
+         WHEN Parents_Children_Aboard > 1.5 AND Parents_Children_Aboard <= 2.5 THEN -0.118958281702593
+         WHEN Parents_Children_Aboard > 2.5 AND Parents_Children_Aboard <= 3.5 THEN -0.076328014973646
+         WHEN Parents_Children_Aboard > 3.5 AND Parents_Children_Aboard <= 4.5 THEN -0.244994736806563
+         WHEN Parents_Children_Aboard >= 4.5 THEN -0.155408557713284
          ELSE 0.0
      END
  WHEN Sex = 'male' THEN 
-  CASE
-         WHEN Fare <= 7.8771 THEN -0.1689629787806671
-         WHEN Fare > 7.8771 AND Fare <= 10.50835 THEN -0.08279625240822648
-         WHEN Fare > 10.50835 AND Fare <= 22.19165 THEN 0.06659595266488652
-         WHEN Fare > 22.19165 AND Fare <= 39.64375 THEN 0.2028117903532744
-         WHEN Fare > 39.64375 THEN -0.04824489942662358
+     CASE
+         WHEN Parents_Children_Aboard IS NULL THEN 0.0
+         WHEN Parents_Children_Aboard <= 0.5 THEN -0.036466047814628
+         WHEN Parents_Children_Aboard > 0.5 AND Parents_Children_Aboard <= 1.5 THEN -0.038707912282962
+         WHEN Parents_Children_Aboard > 1.5 AND Parents_Children_Aboard <= 2.5 THEN 0.039463938360332
+         WHEN Parents_Children_Aboard > 2.5 AND Parents_Children_Aboard <= 3.5 THEN -0.338782820818249
+         WHEN Parents_Children_Aboard > 3.5 AND Parents_Children_Aboard <= 4.5 THEN -0.526359712949559
+         WHEN Parents_Children_Aboard >= 4.5 THEN -0.628246163438533
+         ELSE 0.0
+     END
+ ELSE 0.0
+END
+AS Sex_x_Parents_Children_Aboard_score
+,
+CASE
+ WHEN Sex = 'female' THEN 
+     CASE
+         WHEN Pclass IS NULL THEN 0.0
+         WHEN Pclass <= 1.5 THEN 0.491499090935971
+         WHEN Pclass > 1.5 AND Pclass <= 2.5 THEN 0.483307246056313
+         WHEN Pclass >= 2.5 THEN -0.256901047525339
+         ELSE 0.0
+     END
+ WHEN Sex = 'male' THEN 
+     CASE
+         WHEN Pclass IS NULL THEN 0.0
+         WHEN Pclass <= 1.5 THEN -0.090749699331052
+         WHEN Pclass > 1.5 AND Pclass <= 2.5 THEN -0.34640176310876
+         WHEN Pclass >= 2.5 THEN 0.00741789891989
+         ELSE 0.0
+     END
+ ELSE 0.0
+END
+AS Sex_x_Pclass_score
+,
+CASE
+ WHEN Siblings_Spouses_Aboard <= 0.5 THEN 
+      CASE
+         WHEN Age IS NULL THEN 0.0
+         WHEN Age <= 2.5 THEN 0.528383493809238
+         WHEN Age > 2.5 AND Age <= 5.5 THEN 0.513334088842142
+         WHEN Age > 5.5 AND Age <= 9.5 THEN 0.393558614640737
+         WHEN Age > 9.5 AND Age <= 15.5 THEN 0.133706311594742
+         WHEN Age > 15.5 AND Age <= 17.5 THEN 0.074641444291283
+         WHEN Age > 17.5 AND Age <= 18.5 THEN 0.056174797821141
+         WHEN Age > 18.5 AND Age <= 20.25 THEN 0.046687845141369
+         WHEN Age > 20.25 AND Age <= 21.5 THEN 0.033804619304045
+         WHEN Age > 21.5 AND Age <= 22.5 THEN 0.039502006104996
+         WHEN Age > 22.5 AND Age <= 23.75 THEN 0.03984817316889
+         WHEN Age > 23.75 AND Age <= 24.25 THEN 0.049787181606729
+         WHEN Age > 24.25 AND Age <= 26.5 THEN 0.07093997132766
+         WHEN Age > 26.5 AND Age <= 27.5 THEN 0.074231763066938
+         WHEN Age > 27.5 AND Age <= 28.25 THEN 0.067047569762378
+         WHEN Age > 28.25 AND Age <= 29.5 THEN 0.070917564469812
+         WHEN Age > 29.5 AND Age <= 30.25 THEN 0.065483977308719
+         WHEN Age > 30.25 AND Age <= 32.25 THEN 0.069224713864166
+         WHEN Age > 32.25 AND Age <= 34.25 THEN 0.062380427886173
+         WHEN Age > 34.25 AND Age <= 35.5 THEN 0.057346836990527
+         WHEN Age > 35.5 AND Age <= 36.25 THEN 0.048926000584598
+         WHEN Age > 36.25 AND Age <= 38.5 THEN -0.033532027297554
+         WHEN Age > 38.5 AND Age <= 40.25 THEN -0.042713853377659
+         WHEN Age > 40.25 AND Age <= 42.5 THEN -0.049375593131667
+         WHEN Age > 42.5 AND Age <= 45.25 THEN -0.056499382792597
+         WHEN Age > 45.25 AND Age <= 47.5 THEN -0.065309096182699
+         WHEN Age > 47.5 AND Age <= 49.5 THEN -0.067153113564081
+         WHEN Age > 49.5 AND Age <= 51.5 THEN -0.07732900043068
+         WHEN Age > 51.5 AND Age <= 55.75 THEN -0.085322446839399
+         WHEN Age > 55.75 AND Age <= 61.5 THEN -0.093924474995358
+         WHEN Age >= 61.5 THEN -0.094168954364409
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard <= 1.5 THEN 
+      CASE
+         WHEN Age IS NULL THEN 0.0
+         WHEN Age <= 2.5 THEN 0.473460809919642
+         WHEN Age > 2.5 AND Age <= 5.5 THEN 0.45673185815486
+         WHEN Age > 5.5 AND Age <= 9.5 THEN 0.312263327500858
+         WHEN Age > 9.5 AND Age <= 15.5 THEN 0.059279321333178
+         WHEN Age > 15.5 AND Age <= 17.5 THEN -0.010239449452843
+         WHEN Age > 17.5 AND Age <= 18.5 THEN -0.031718102794354
+         WHEN Age > 18.5 AND Age <= 20.25 THEN -0.042556703788337
+         WHEN Age > 20.25 AND Age <= 21.5 THEN -0.05669346532555
+         WHEN Age > 21.5 AND Age <= 22.5 THEN -0.053749710222389
+         WHEN Age > 22.5 AND Age <= 23.75 THEN -0.056303478675024
+         WHEN Age > 23.75 AND Age <= 24.25 THEN -0.057875135041578
+         WHEN Age > 24.25 AND Age <= 26.5 THEN -0.105223803317099
+         WHEN Age > 26.5 AND Age <= 27.5 THEN -0.10364807353589
+         WHEN Age > 27.5 AND Age <= 28.25 THEN -0.109088883213897
+         WHEN Age > 28.25 AND Age <= 29.5 THEN -0.108280420529084
+         WHEN Age > 29.5 AND Age <= 30.25 THEN -0.111462859527997
+         WHEN Age > 30.25 AND Age <= 32.25 THEN -0.103302435658682
+         WHEN Age > 32.25 AND Age <= 34.25 THEN -0.095671558295944
+         WHEN Age > 34.25 AND Age <= 35.5 THEN -0.094460537363849
+         WHEN Age > 35.5 AND Age <= 36.25 THEN -0.095351975028531
+         WHEN Age > 36.25 AND Age <= 38.5 THEN -0.096194180827613
+         WHEN Age > 38.5 AND Age <= 40.25 THEN -0.103300983512366
+         WHEN Age > 40.25 AND Age <= 42.5 THEN -0.103215629729179
+         WHEN Age > 42.5 AND Age <= 45.25 THEN -0.111182914853043
+         WHEN Age > 45.25 AND Age <= 47.5 THEN -0.106835968854048
+         WHEN Age > 47.5 AND Age <= 49.5 THEN 0.018935786351595
+         WHEN Age > 49.5 AND Age <= 51.5 THEN 0.015511587386717
+         WHEN Age > 51.5 AND Age <= 55.75 THEN 0.016289722734998
+         WHEN Age > 55.75 AND Age <= 61.5 THEN 0.02376581376124
+         WHEN Age >= 61.5 THEN 0.019744241583835
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard > 1.5 AND Siblings_Spouses_Aboard <= 2.5 THEN 
+     CASE
+         WHEN Age IS NULL THEN 0.0
+         WHEN Age <= 2.5 THEN 0.092482317250344
+         WHEN Age > 2.5 AND Age <= 5.5 THEN 0.073298241825471
+         WHEN Age > 5.5 AND Age <= 9.5 THEN -0.063667292358676
+         WHEN Age > 9.5 AND Age <= 15.5 THEN -0.168861722070522
+         WHEN Age > 15.5 AND Age <= 17.5 THEN -0.202441488707343
+         WHEN Age > 17.5 AND Age <= 18.5 THEN -0.208443854107119
+         WHEN Age > 18.5 AND Age <= 20.25 THEN -0.200408663486555
+         WHEN Age > 20.25 AND Age <= 21.5 THEN -0.195622197275714
+         WHEN Age > 21.5 AND Age <= 22.5 THEN -0.058249491909551
+         WHEN Age > 22.5 AND Age <= 23.75 THEN 0.016115075443057
+         WHEN Age > 23.75 AND Age <= 24.25 THEN 0.091316330669103
+         WHEN Age > 24.25 AND Age <= 26.5 THEN 0.058006980428418
+         WHEN Age > 26.5 AND Age <= 27.5 THEN 0.072992539151054
+         WHEN Age > 27.5 AND Age <= 28.25 THEN 0.081010367577579
+         WHEN Age > 28.25 AND Age <= 29.5 THEN 0.089698709916074
+         WHEN Age > 29.5 AND Age <= 30.25 THEN 0.099615103291702
+         WHEN Age > 30.25 AND Age <= 32.25 THEN 0.100198665719419
+         WHEN Age > 32.25 AND Age <= 34.25 THEN 0.118799006273934
+         WHEN Age > 34.25 AND Age <= 35.5 THEN 0.117531968268615
+         WHEN Age > 35.5 AND Age <= 36.25 THEN 0.113307702415745
+         WHEN Age > 36.25 AND Age <= 38.5 THEN 0.107668174094119
+         WHEN Age > 38.5 AND Age <= 40.25 THEN 0.103857329697827
+         WHEN Age > 40.25 AND Age <= 42.5 THEN 0.096025374597432
+         WHEN Age > 42.5 AND Age <= 45.25 THEN 0.090990227733212
+         WHEN Age > 45.25 AND Age <= 47.5 THEN 0.124615728328135
+         WHEN Age > 47.5 AND Age <= 49.5 THEN 0.26969218353506
+         WHEN Age > 49.5 AND Age <= 51.5 THEN 0.296974400244291
+         WHEN Age > 51.5 AND Age <= 55.75 THEN 0.314845817307283
+         WHEN Age > 55.75 AND Age <= 61.5 THEN 0.318108024179863
+         WHEN Age >= 61.5 THEN 0.306230447773638
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard > 2.5 AND Siblings_Spouses_Aboard <= 3.5 THEN 
+     CASE
+         WHEN Age IS NULL THEN 0.0
+         WHEN Age <= 2.5 THEN -0.614892616147036
+         WHEN Age > 2.5 AND Age <= 5.5 THEN -0.613342024729796
+         WHEN Age > 5.5 AND Age <= 9.5 THEN -0.631774884334947
+         WHEN Age > 9.5 AND Age <= 15.5 THEN -0.619879791292817
+         WHEN Age > 15.5 AND Age <= 17.5 THEN 0.009116698035762
+         WHEN Age > 17.5 AND Age <= 18.5 THEN 0.045513762870526
+         WHEN Age > 18.5 AND Age <= 20.25 THEN 0.076118305328848
+         WHEN Age > 20.25 AND Age <= 21.5 THEN 0.108564653423738
+         WHEN Age > 21.5 AND Age <= 22.5 THEN 0.26547709316289
+         WHEN Age > 22.5 AND Age <= 23.75 THEN 0.371153968043119
+         WHEN Age > 23.75 AND Age <= 24.25 THEN 0.462902954652622
+         WHEN Age > 24.25 AND Age <= 26.5 THEN 0.470967770150128
+         WHEN Age > 26.5 AND Age <= 27.5 THEN 0.516015665648998
+         WHEN Age > 27.5 AND Age <= 28.25 THEN 0.562318633183855
+         WHEN Age > 28.25 AND Age <= 29.5 THEN 0.59375796163162
+         WHEN Age > 29.5 AND Age <= 30.25 THEN 0.637130719743204
+         WHEN Age > 30.25 AND Age <= 32.25 THEN 0.668047896809674
+         WHEN Age > 32.25 AND Age <= 34.25 THEN 0.721739962700955
+         WHEN Age > 34.25 AND Age <= 35.5 THEN 0.707328182542215
+         WHEN Age > 35.5 AND Age <= 36.25 THEN 0.703036977804868
+         WHEN Age > 36.25 AND Age <= 38.5 THEN 0.691072797261594
+         WHEN Age > 38.5 AND Age <= 40.25 THEN 0.676880000057519
+         WHEN Age > 40.25 AND Age <= 42.5 THEN 0.659762833253678
+         WHEN Age > 42.5 AND Age <= 45.25 THEN 0.647069427646422
+         WHEN Age > 45.25 AND Age <= 47.5 THEN 0.648927292348874
+         WHEN Age > 47.5 AND Age <= 49.5 THEN 0.77207462315274
+         WHEN Age > 49.5 AND Age <= 51.5 THEN 0.777779077647834
+         WHEN Age > 51.5 AND Age <= 55.75 THEN 0.78312507412675
+         WHEN Age > 55.75 AND Age <= 61.5 THEN 0.767345426391526
+         WHEN Age >= 61.5 THEN 0.743545305391425
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard > 3.5 AND Siblings_Spouses_Aboard <= 4.5 THEN 
+     CASE
+         WHEN Age IS NULL THEN 0.0
+         WHEN Age <= 2.5 THEN -0.571796709354964
+         WHEN Age > 2.5 AND Age <= 5.5 THEN -0.544533645399559
+         WHEN Age > 5.5 AND Age <= 9.5 THEN -0.57761229870242
+         WHEN Age > 9.5 AND Age <= 15.5 THEN -0.555860136350223
+         WHEN Age > 15.5 AND Age <= 17.5 THEN 0.088494420546848
+         WHEN Age > 17.5 AND Age <= 18.5 THEN 0.093089693245265
+         WHEN Age > 18.5 AND Age <= 20.25 THEN 0.101980663101288
+         WHEN Age > 20.25 AND Age <= 21.5 THEN 0.114996409211813
+         WHEN Age > 21.5 AND Age <= 22.5 THEN 0.251377125616454
+         WHEN Age > 22.5 AND Age <= 23.75 THEN 0.348198685019375
+         WHEN Age > 23.75 AND Age <= 24.25 THEN 0.428504570969135
+         WHEN Age > 24.25 AND Age <= 26.5 THEN 0.422407793151925
+         WHEN Age > 26.5 AND Age <= 27.5 THEN 0.44822071360309
+         WHEN Age > 27.5 AND Age <= 28.25 THEN 0.488736763371044
+         WHEN Age > 28.25 AND Age <= 29.5 THEN 0.511198027138851
+         WHEN Age > 29.5 AND Age <= 30.25 THEN 0.538686540485368
+         WHEN Age > 30.25 AND Age <= 32.25 THEN 0.559611923356124
+         WHEN Age > 32.25 AND Age <= 34.25 THEN 0.605323760013271
+         WHEN Age > 34.25 AND Age <= 35.5 THEN 0.594622635157313
+         WHEN Age > 35.5 AND Age <= 36.25 THEN 0.596721600703775
+         WHEN Age > 36.25 AND Age <= 38.5 THEN 0.592078995659397
+         WHEN Age > 38.5 AND Age <= 40.25 THEN 0.585332772180541
+         WHEN Age > 40.25 AND Age <= 42.5 THEN 0.56904297022545
+         WHEN Age > 42.5 AND Age <= 45.25 THEN 0.564546304076721
+         WHEN Age > 45.25 AND Age <= 47.5 THEN 0.569390628106913
+         WHEN Age > 47.5 AND Age <= 49.5 THEN 0.691930730544363
+         WHEN Age > 49.5 AND Age <= 51.5 THEN 0.698947704961285
+         WHEN Age > 51.5 AND Age <= 55.75 THEN 0.698931286070238
+         WHEN Age > 55.75 AND Age <= 61.5 THEN 0.682860615353535
+         WHEN Age >= 61.5 THEN 0.665172135439158
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard >= 4.5 THEN 
+      CASE
+         WHEN Age IS NULL THEN 0.0
+         WHEN Age <= 2.5 THEN -0.728999387211614
+         WHEN Age > 2.5 AND Age <= 5.5 THEN -0.708761131033111
+         WHEN Age > 5.5 AND Age <= 9.5 THEN -0.736952480113748
+         WHEN Age > 9.5 AND Age <= 15.5 THEN -0.731882258323762
+         WHEN Age > 15.5 AND Age <= 17.5 THEN -0.102760268084704
+         WHEN Age > 17.5 AND Age <= 18.5 THEN -0.104205299410821
+         WHEN Age > 18.5 AND Age <= 20.25 THEN -0.099825709533079
+         WHEN Age > 20.25 AND Age <= 21.5 THEN -0.091966720862578
+         WHEN Age > 21.5 AND Age <= 22.5 THEN 0.057771971643912
+         WHEN Age > 22.5 AND Age <= 23.75 THEN 0.157631405410229
+         WHEN Age > 23.75 AND Age <= 24.25 THEN 0.239930995756667
+         WHEN Age > 24.25 AND Age <= 26.5 THEN 0.233975862120311
+         WHEN Age > 26.5 AND Age <= 27.5 THEN 0.262544580305438
+         WHEN Age > 27.5 AND Age <= 28.25 THEN 0.302306212221251
+         WHEN Age > 28.25 AND Age <= 29.5 THEN 0.331264701381533
+         WHEN Age > 29.5 AND Age <= 30.25 THEN 0.357068965776435
+         WHEN Age > 30.25 AND Age <= 32.25 THEN 0.380062736613399
+         WHEN Age > 32.25 AND Age <= 34.25 THEN 0.419849086754993
+         WHEN Age > 34.25 AND Age <= 35.5 THEN 0.425332100934545
+         WHEN Age > 35.5 AND Age <= 36.25 THEN 0.436747257844908
+         WHEN Age > 36.25 AND Age <= 38.5 THEN 0.440346073667372
+         WHEN Age > 38.5 AND Age <= 40.25 THEN 0.446029587351098
+         WHEN Age > 40.25 AND Age <= 42.5 THEN 0.444421596034451
+         WHEN Age > 42.5 AND Age <= 45.25 THEN 0.45402621816223
+         WHEN Age > 45.25 AND Age <= 47.5 THEN 0.461660442178329
+         WHEN Age > 47.5 AND Age <= 49.5 THEN 0.587244127727531
+         WHEN Age > 49.5 AND Age <= 51.5 THEN 0.597596212598975
+         WHEN Age > 51.5 AND Age <= 55.75 THEN 0.596201606274985
+         WHEN Age > 55.75 AND Age <= 61.5 THEN 0.588185387191303
+         WHEN Age >= 61.5 THEN 0.588405401577379
+         ELSE 0.0
+     END
+ ELSE 0.0
+END
+AS Siblings_Spouses_Aboard_x_Age_score
+,
+CASE
+ WHEN Siblings_Spouses_Aboard <= 0.5 THEN 
+      CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.004670626657614
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.020618192647954
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.034698309000175
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.031127174352167
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.035324024301533
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.031578935010038
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.027392452128331
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.02324484001577
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.019022813575608
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.020296478275701
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.025126581321189
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.030583123464212
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.02801372161514
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN 0.027752218352793
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.045542273255022
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN 0.054572432471521
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN 0.05733485145173
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN 0.058803472589858
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN 0.064907387938146
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN 0.097491666245432
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN 0.092985206124851
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN 0.099998921613909
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.093247024714969
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.018132637057404
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.017962977941103
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.025491544615255
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.019816089592703
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.015421969090945
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.009062812430576
+         WHEN Fare >= 149.0354 THEN -0.087765433029298
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard <= 1.5 THEN 
+      CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.195399349907408
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.176012479335454
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.157481458601512
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.150369314645518
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.058273392874332
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN -0.015106106946233
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.022242408001193
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.063750934734681
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.09067566772065
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.102428980070186
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.083808356173697
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.063724347890892
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.067467416382767
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.069164454521609
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.038629074787282
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.041424107947974
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.040839909228149
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.039535504857878
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.032836924741896
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.009998968669557
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.011460840220268
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.002013872416913
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN 0.009023746732623
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN 0.013210845457577
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN 0.03281196184552
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN 0.038742102243851
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN 0.039173310294875
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN 0.037501685983882
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.030076018301764
+         WHEN Fare >= 149.0354 THEN -0.105003330420513
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard > 1.5 AND Siblings_Spouses_Aboard <= 2.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN -0.149467554609436
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN -0.137854345240139
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN -0.12932076965227
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN -0.118889578606752
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN -0.033430866271248
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.003562421189425
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN -0.004836444485626
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN -0.041384951783596
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN -0.070302147267183
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN -0.083219093126853
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN -0.082186340048269
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN -0.06684059943131
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN -0.059304960808886
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN -0.061173112458098
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN -0.026924390462783
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.037758869557351
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.041713689538894
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.040089798501644
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.045889323502404
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.05121679283884
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.113089768114568
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.118289130943038
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.109690856733542
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.100167856501216
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.076981993997278
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.073718012257087
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.072158559765238
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.062418252715522
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN 0.007078590845892
+         WHEN Fare >= 149.0354 THEN -0.096580185838653
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard > 2.5 AND Siblings_Spouses_Aboard <= 3.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.311797966991669
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.326739295195876
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.354929082940695
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.361755157212329
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.445802884076616
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.489184185955341
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.501836095738795
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.416538147274042
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.341160522920968
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.290163587755419
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.264269827006485
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.24216035827422
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.209803185361506
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN 0.176784210226609
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.15193245443436
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.188408767932426
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.269773529315734
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.29544070409813
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.299823620572423
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.302761879929923
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.360048533847465
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.352142950228162
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.231832193909879
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.221015782548034
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.190336160834483
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.178281309915051
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.172635359695501
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.149428640876518
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.063413944321538
+         WHEN Fare >= 149.0354 THEN -0.072957814733484
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard > 3.5 AND Siblings_Spouses_Aboard <= 4.5 THEN 
+     CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.750019989782988
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.777044610619275
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.811783678372827
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.835151762009516
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.941492940572637
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 1.006492765905168
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 1.035000716456196
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.902980951836156
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.777320404188655
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.69667119753182
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.624982682190714
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.566139198353831
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.459594787140216
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN 0.389886672255556
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.316037269293064
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.03134797231774
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.130528198972129
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.187654637707186
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.220324022428365
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.255991948724866
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.3369083542446
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.342945169257924
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.209929904707546
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.324446095195418
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.304873416329111
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.301536564125877
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.298491742858518
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.273503067443494
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.201741405282966
+         WHEN Fare >= 149.0354 THEN -0.199166321070997
+         ELSE 0.0
+     END
+ WHEN Siblings_Spouses_Aboard >= 4.5 THEN 
+      CASE
+         WHEN Fare IS NULL THEN 0.0
+         WHEN Fare <= 6.6229 THEN 0.580629869595636
+         WHEN Fare > 6.6229 AND Fare <= 7.18335 THEN 0.59907178275172
+         WHEN Fare > 7.18335 AND Fare <= 7.239599999999999 THEN 0.624918239395007
+         WHEN Fare > 7.239599999999999 AND Fare <= 7.74585 THEN 0.630697621971127
+         WHEN Fare > 7.74585 AND Fare <= 7.7625 THEN 0.717449839164971
+         WHEN Fare > 7.7625 AND Fare <= 7.89165 THEN 0.763137263582262
+         WHEN Fare > 7.89165 AND Fare <= 7.9771 THEN 0.783564436408728
+         WHEN Fare > 7.9771 AND Fare <= 8.08125 THEN 0.682320948480306
+         WHEN Fare > 8.08125 AND Fare <= 9.10835 THEN 0.591628970738848
+         WHEN Fare > 9.10835 AND Fare <= 10.48125 THEN 0.522117683517275
+         WHEN Fare > 10.48125 AND Fare <= 10.50835 THEN 0.45678447587261
+         WHEN Fare > 10.50835 AND Fare <= 12.9375 THEN 0.405004759167993
+         WHEN Fare > 12.9375 AND Fare <= 13.20835 THEN 0.32086081197411
+         WHEN Fare > 13.20835 AND Fare <= 14.75 THEN 0.269219764278674
+         WHEN Fare > 14.75 AND Fare <= 15.95 THEN 0.205363619720306
+         WHEN Fare > 15.95 AND Fare <= 19.37915 THEN -0.12096580640218
+         WHEN Fare > 19.37915 AND Fare <= 22.44165 THEN -0.212036264969774
+         WHEN Fare > 22.44165 AND Fare <= 25.9646 THEN -0.26156848229274
+         WHEN Fare > 25.9646 AND Fare <= 26.125 THEN -0.302718271405661
+         WHEN Fare > 26.125 AND Fare <= 27.3604 THEN -0.341831664051667
+         WHEN Fare > 27.3604 AND Fare <= 29.85 THEN -0.422655988425449
+         WHEN Fare > 29.85 AND Fare <= 31.331249999999997 THEN -0.446408562014138
+         WHEN Fare > 31.331249999999997 AND Fare <= 37.7521 THEN -0.35233791983451
+         WHEN Fare > 37.7521 AND Fare <= 48.3 THEN -0.484798845442115
+         WHEN Fare > 48.3 AND Fare <= 55.67085 THEN -0.472389187793365
+         WHEN Fare > 55.67085 AND Fare <= 69.425 THEN -0.474264637440064
+         WHEN Fare > 69.425 AND Fare <= 78.55834999999999 THEN -0.476852621429665
+         WHEN Fare > 78.55834999999999 AND Fare <= 90.53960000000001 THEN -0.444415306732084
+         WHEN Fare > 90.53960000000001 AND Fare <= 149.0354 THEN -0.369603433990062
+         WHEN Fare >= 149.0354 THEN -0.362550299877423
          ELSE 0.0
      END
  ELSE 0.0
 END
-AS Sex_x_Fare_score
-, intercept + Age_score + Fare_score + Parents/Children Aboard_score + Pclass_score + Sex_score + Siblings/Spouses Aboard_score + Pclass_x_Sex_score + Age_x_Siblings/Spouses Aboard_score + Sex_x_Age_score + Sex_x_Fare_score
+AS Siblings_Spouses_Aboard_x_Fare_score
+FROM <source_table> -- TODO replace with correct table
+), add_sum_scores AS (
+SELECT *
+, intercept + Age_score + Fare_score + Parents_Children_Aboard_score + Pclass_score + Sex_score + Siblings_Spouses_Aboard_score + Age_x_Fare_score + Sex_x_Age_score + Sex_x_Parents_Children_Aboard_score + Sex_x_Pclass_score + Siblings_Spouses_Aboard_x_Age_score + Siblings_Spouses_Aboard_x_Fare_score
  AS score
+FROM feature_scores
+)
+SELECT *
 , EXP(score)/(EXP(score) + 1) AS probability
+FROM add_sum_scores
diff --git a/trained_models/example_titanic/performance/final_train_calibration_plot.png b/trained_models/example_titanic/performance/final_train_calibration_plot.png
index c2acdc8..5e4714d 100644
Binary files a/trained_models/example_titanic/performance/final_train_calibration_plot.png and b/trained_models/example_titanic/performance/final_train_calibration_plot.png differ
diff --git a/trained_models/example_titanic/performance/final_train_class0_pr_plot.png b/trained_models/example_titanic/performance/final_train_class0_pr_plot.png
index 2213df7..a3bee4f 100644
Binary files a/trained_models/example_titanic/performance/final_train_class0_pr_plot.png and b/trained_models/example_titanic/performance/final_train_class0_pr_plot.png differ
diff --git a/trained_models/example_titanic/performance/final_train_class1_pr_plot.png b/trained_models/example_titanic/performance/final_train_class1_pr_plot.png
index 44e6a8b..500a29b 100644
Binary files a/trained_models/example_titanic/performance/final_train_class1_pr_plot.png and b/trained_models/example_titanic/performance/final_train_class1_pr_plot.png differ
diff --git a/trained_models/example_titanic/performance/final_train_classification_report.csv b/trained_models/example_titanic/performance/final_train_classification_report.csv
deleted file mode 100644
index f9547d7..0000000
--- a/trained_models/example_titanic/performance/final_train_classification_report.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-,precision,recall,f1-score,support
-0,0.8501683501683501,0.926605504587156,0.8867427568042142,545.0
-1,0.863481228668942,0.7397660818713451,0.7968503937007875,342.0
-accuracy,0.85456595264938,0.85456595264938,0.85456595264938,0.85456595264938
-macro avg,0.856824789418646,0.8331857932292506,0.8417965752525008,887.0
-weighted avg,0.8553013878765828,0.85456595264938,0.8520830181555423,887.0
diff --git a/trained_models/example_titanic/performance/final_train_confusion_matrix.png b/trained_models/example_titanic/performance/final_train_confusion_matrix.png
index 8ca1f04..5ea797b 100644
Binary files a/trained_models/example_titanic/performance/final_train_confusion_matrix.png and b/trained_models/example_titanic/performance/final_train_confusion_matrix.png differ
diff --git a/trained_models/example_titanic/performance/final_train_distribution_plot.png b/trained_models/example_titanic/performance/final_train_distribution_plot.png
index e5bd3da..946bc00 100644
Binary files a/trained_models/example_titanic/performance/final_train_distribution_plot.png and b/trained_models/example_titanic/performance/final_train_distribution_plot.png differ
diff --git a/trained_models/example_titanic/performance/final_train_roc_plot.png b/trained_models/example_titanic/performance/final_train_roc_plot.png
index b6d15b1..6b77821 100644
Binary files a/trained_models/example_titanic/performance/final_train_roc_plot.png and b/trained_models/example_titanic/performance/final_train_roc_plot.png differ


Test patch:
diff --git a/scripts/utils/test_helpers/sql_model.py b/scripts/utils/test_helpers/sql_model.py
index 1204f4d..1a103f5 100644
--- a/scripts/utils/test_helpers/sql_model.py
+++ b/scripts/utils/test_helpers/sql_model.py
@@ -4,7 +4,7 @@
 def execute_sql_script(sql_script, df, output_column):
     # Replace the <source_table> placeholder with the actual table name
     sql_script = sql_script.replace("<source_table>", "test_df")
-
+    print(sql_script)
     # Create a DuckDB connection and register the DataFrame
     conn = duckdb.connect()
     conn.register("test_df", df)
diff --git a/tests/configs/config_no_split.json b/tests/configs/config_no_split.json
new file mode 100644
index 0000000..53eb045
--- /dev/null
+++ b/tests/configs/config_no_split.json
@@ -0,0 +1,19 @@
+{
+  "features": [
+  ],
+  "model_params": {
+  },
+  "post_params": {
+    "calibration": "false",
+    "sql_split": "false",
+    "sql_decimals": 15,
+    "file_type": "png"
+  },
+  "pre_params": {
+    "cv_type": "notimeseriesplit",
+    "max_rows": 100000,
+    "time_sensitive_column": "date_column",
+    "upsampling": "false"
+  },
+  "target": "target"
+}
diff --git a/input/configuration/example_multiclass_faults_slim.json b/tests/configs/config_split.json
similarity index 82%
rename from input/configuration/example_multiclass_faults_slim.json
rename to tests/configs/config_split.json
index f58d8d0..e3d8009 100644
--- a/input/configuration/example_multiclass_faults_slim.json
+++ b/tests/configs/config_split.json
@@ -1,15 +1,12 @@
 {
   "features": [
-    "X_Minimum",
-    "X_Maximum",
-    "Y_Minimum",
-    "Y_Maximum"
   ],
   "model_params": {
   },
   "post_params": {
     "calibration": "false",
     "sql_split": "true",
+    "sql_decimals": 15,
     "file_type": "png"
   },
   "pre_params": {
diff --git a/tests/integration/test_check_version.py b/tests/integration/test_check_version.py
new file mode 100644
index 0000000..b3c2972
--- /dev/null
+++ b/tests/integration/test_check_version.py
@@ -0,0 +1,65 @@
+import sys
+
+sys.path.append("scripts")
+
+import os
+import shutil
+import subprocess
+
+def get_package_version(package_name, venv):
+    try:
+        output = subprocess.check_output([f'{venv}/bin/pip', 'show', package_name], universal_newlines=True)
+        version_line = next((line for line in output.splitlines() if 'Version:' in line), None)
+        if version_line:
+            version = version_line.split('Version:')[1].strip()
+            return version
+        else:
+            return "Package not found"
+    except subprocess.CalledProcessError:
+        return "Package not found"
+
+def get_package_version_from_requirements(package_name, requirements_file):
+    try:
+        with open(requirements_file, 'r') as f:
+            for line in f:
+                line = line.strip()
+                if line.startswith(package_name):
+                    parts = line.split('==')
+                    if len(parts) == 2:
+                        version = parts[1]
+                        return version
+                    else:
+                        return "Version not pinned"
+            return "Package not found"
+    except FileNotFoundError:
+        return "Requirements file not found"
+    
+def test_interpret_model_version():
+    package_name = 'interpret'
+    print(f"Checking for package: {package_name}")
+    venv_name = '.ml2sql'
+    installed_package_version = get_package_version(package_name, venv=venv_name)
+    print(f"The version in virt env {venv_name} is: {installed_package_version}")
+
+    # Get version from requirements.txt
+    requirements_file = "requirements.txt"
+    req_package_version = get_package_version_from_requirements(package_name, requirements_file)
+    print(f"The version in {requirements_file} is: {req_package_version}")
+
+    # Check if installed version matches version in requirements.txt
+    assert installed_package_version == req_package_version
+
+    # check tested models if they are of installed package version 
+    version_suffix = installed_package_version.replace('.', '')
+    folder_path = 'tests/model'
+
+    print(f"Looking for files ending with '_v{version_suffix}' in '{folder_path}'")
+    
+    files_with_version = []
+    for filename in os.listdir(folder_path):
+        filename = filename.split('.')[0]
+        files_with_version.append(filename.endswith(f"_v{version_suffix}"))
+
+    # Checking if all models in testing direcotry are of installed version
+    assert all(files_with_version) == True
+
diff --git a/tests/integration/test_dt_sql.py b/tests/integration/test_dt_sql.py
index 2216a0c..d838eda 100644
--- a/tests/integration/test_dt_sql.py
+++ b/tests/integration/test_dt_sql.py
@@ -7,6 +7,7 @@
 
 import os
 import joblib
+import json
 import logging
 import pandas as pd
 import numpy as np
@@ -19,17 +20,17 @@
 
 # Define a list of models - datasets to test
 clf_binary = [
-    "tests/model/binary_dt_classification.sav",
+    "tests/model/binary_dt_classification_v051.sav",
     "input/data/example_binary_titanic.csv",
 ]
 
 clf_multiclass = [
-    "tests/model/multiclass_dt_classification.sav",
+    "tests/model/multiclass_dt_classification_v051.sav",
     "input/data/example_multiclass_faults.csv",
 ]
 
 regr_regression = [
-    "tests/model/regression_dt_regression.sav",
+    "tests/model/regression_dt_regression_v051.sav",
     "input/data/example_regression_used_cars.csv",
 ]
 
@@ -60,16 +61,26 @@ def load_model_data(request):
     if model_type == data_type:
         return data, model, model_type
 
+# path to config file (split is not applicable here so only one config file is enough)
+config_path = ["tests/configs/config_split.json"]
+# Define a fixture for split parameter
+@pytest.fixture(params=config_path)
+def post_params(request):
+    config_path = request.param
+
+    with open(config_path, "rb") as f:
+        config = json.load(f)
+    return config['post_params']
 
 def test_model_processing(
-    load_model_data, sql_split=None, logging=logging.getLogger(__name__)
+    load_model_data, post_params, logging=logging.getLogger(__name__)
 ):
     # unpack data and model
     data, model, model_type = load_model_data
 
     # Generate SQL from the loaded model
     save_model_and_extras(
-        clf=model, model_name="tests", sql_split=sql_split, logging=logging
+        clf=model, model_name="tests", post_params=post_params, logging=logging
     )
 
     # Load the SQL version
diff --git a/tests/integration/test_ebm_sql.py b/tests/integration/test_ebm_sql.py
index c219b7f..5b61160 100644
--- a/tests/integration/test_ebm_sql.py
+++ b/tests/integration/test_ebm_sql.py
@@ -7,6 +7,7 @@
 
 import os
 import joblib
+import json
 import logging
 import pandas as pd
 import pytest
@@ -18,17 +19,17 @@
 
 # Define a list of models - datasets to test
 clf_binary = [
-    "tests/model/binary_ebm_classification.sav",
+    "tests/model/binary_ebm_classification_v051.sav",
     "input/data/example_binary_titanic.csv",
 ]
 
 clf_multiclass = [
-    "tests/model/multiclass_ebm_classification.sav",
+    "tests/model/multiclass_ebm_classification_v051.sav",
     "input/data/example_multiclass_faults.csv",
 ]
 
 regr_regression = [
-    "tests/model/regression_ebm_regression.sav",
+    "tests/model/regression_ebm_regression_v051.sav",
     "input/data/example_regression_used_cars.csv",
 ]
 
@@ -58,26 +59,33 @@ def load_model_data(request):
     if model_type == data_type:
         return data, model, model_type
 
-
+# paths to config files, one with and one without sql split
+config_path = ["tests/configs/config_split.json", "tests/configs/config_no_split.json"]
 # Define a fixture for split parameter
-@pytest.fixture(params=[True, False])
-def split(request):
-    return request.param
+@pytest.fixture(params=config_path)
+def post_params(request):
+    config_path = request.param
+
+    with open(config_path, "rb") as f:
+        config = json.load(f)
+    return config['post_params']
 
 
-def test_model_processing(load_model_data, split, logging=logging.getLogger(__name__)):
+def test_model_processing(load_model_data, post_params, logging=logging.getLogger(__name__)):
     # unpack data and model
     data, model, model_type = load_model_data
 
     # Generate SQL from the loaded model
-    save_model_and_extras(ebm=model, model_name="tests", split=split, logging=logging)
+    save_model_and_extras(ebm=model, model_name="tests", post_params=post_params, logging=logging)
 
     # Load the SQL version
     with open(SQL_OUTPUT_PATH, "r") as sql_file:
         loaded_sql = sql_file.read()
 
-    # Run SQL against the DataFrame using DuckDB
+    # logg type of model
+    logging.info(f"Type: {model_type} \nSplit: {post_params['sql_split']}")   
 
+    # Run SQL against the DataFrame using DuckDB
     if model_type == "multiclass":
         prob_column = "probability_Z_Scratch"
     elif model_type == "binary":
diff --git a/tests/integration/test_lr_sql.py b/tests/integration/test_lr_sql.py
index 1ecaf73..4671590 100644
--- a/tests/integration/test_lr_sql.py
+++ b/tests/integration/test_lr_sql.py
@@ -7,6 +7,7 @@
 
 import os
 import joblib
+import json
 import logging
 import pandas as pd
 import pytest
@@ -18,17 +19,17 @@
 
 # Define a list of models - datasets to test
 clf_binary = [
-    "tests/model/binary_lr_classification.sav",
+    "tests/model/binary_lr_classification_v051.sav",
     "input/data/example_binary_titanic.csv",
 ]
 
 clf_multiclass = [
-    "tests/model/multiclass_lr_classification.sav",
+    "tests/model/multiclass_lr_classification_v051.sav",
     "input/data/example_multiclass_faults.csv",
 ]
 
 regr_regression = [
-    "tests/model/regression_lr_regression.sav",
+    "tests/model/regression_lr_regression_v051.sav",
     "input/data/example_regression_used_cars.csv",
 ]
 
@@ -59,20 +60,25 @@ def load_model_data(request):
     if model_type == data_type:
         return data, model, model_type
 
-
+# paths to config files, one with and one without sql split
+config_path = ["tests/configs/config_split.json", "tests/configs/config_no_split.json"]
 # Define a fixture for split parameter
-@pytest.fixture(params=[True, False])
-def split(request):
-    return request.param
+@pytest.fixture(params=config_path)
+def post_params(request):
+    config_path = request.param
+
+    with open(config_path, "rb") as f:
+        config = json.load(f)
+    return config['post_params']
 
 
-def test_model_processing(load_model_data, split, logging=logging.getLogger(__name__)):
+def test_model_processing(load_model_data, post_params, logging=logging.getLogger(__name__)):
     # unpack data and model
     data, model, model_type = load_model_data
 
     # Generate SQL from the loaded model
     save_model_and_extras(
-        clf=model, model_name="tests", sql_split=split, logging=logging
+        clf=model, model_name="tests", post_params=post_params, logging=logging
     )
 
     # Load the SQL version
@@ -104,7 +110,8 @@ def test_model_processing(load_model_data, split, logging=logging.getLogger(__na
         f"Max difference SQL - pickled model: {(abs((sql_pred - model_pred)/model_pred)).max()}"
     )
 
-    # Check if SQL model prediction is same as pickled model prediction
+    # Check if SQL model predic
+    # tion is same as pickled model prediction
     # use a tolerance of 0.001%
     tolerance = 0.00001
     assert (abs((sql_pred - model_pred) / model_pred) <= tolerance).all()
diff --git a/tests/model/binary_dt_classification.sav b/tests/model/binary_dt_classification_v051.sav
similarity index 70%
rename from tests/model/binary_dt_classification.sav
rename to tests/model/binary_dt_classification_v051.sav
index 006761f..032072b 100644
Binary files a/tests/model/binary_dt_classification.sav and b/tests/model/binary_dt_classification_v051.sav differ
diff --git a/tests/model/binary_ebm_classification.sav b/tests/model/binary_ebm_classification.sav
deleted file mode 100644
index 100a00a..0000000
Binary files a/tests/model/binary_ebm_classification.sav and /dev/null differ
diff --git a/tests/model/binary_ebm_classification_v051.sav b/tests/model/binary_ebm_classification_v051.sav
new file mode 100644
index 0000000..5eae126
Binary files /dev/null and b/tests/model/binary_ebm_classification_v051.sav differ
diff --git a/tests/model/binary_lr_classification.sav b/tests/model/binary_lr_classification_v051.sav
similarity index 97%
rename from tests/model/binary_lr_classification.sav
rename to tests/model/binary_lr_classification_v051.sav
index 56f8803..3e38e2c 100644
Binary files a/tests/model/binary_lr_classification.sav and b/tests/model/binary_lr_classification_v051.sav differ
diff --git a/tests/model/multiclass_dt_classification.sav b/tests/model/multiclass_dt_classification.sav
deleted file mode 100644
index 1732c81..0000000
Binary files a/tests/model/multiclass_dt_classification.sav and /dev/null differ
diff --git a/tests/model/multiclass_dt_classification_v051.sav b/tests/model/multiclass_dt_classification_v051.sav
new file mode 100644
index 0000000..e12e210
Binary files /dev/null and b/tests/model/multiclass_dt_classification_v051.sav differ
diff --git a/tests/model/multiclass_ebm_classification.sav b/tests/model/multiclass_ebm_classification.sav
deleted file mode 100644
index 4fd0e92..0000000
Binary files a/tests/model/multiclass_ebm_classification.sav and /dev/null differ
diff --git a/tests/model/multiclass_ebm_classification_v051.sav b/tests/model/multiclass_ebm_classification_v051.sav
new file mode 100644
index 0000000..1757a8c
Binary files /dev/null and b/tests/model/multiclass_ebm_classification_v051.sav differ
diff --git a/tests/model/multiclass_lr_classification.sav b/tests/model/multiclass_lr_classification.sav
deleted file mode 100644
index 6c9a072..0000000
Binary files a/tests/model/multiclass_lr_classification.sav and /dev/null differ
diff --git a/tests/model/multiclass_lr_classification_v051.sav b/tests/model/multiclass_lr_classification_v051.sav
new file mode 100644
index 0000000..6101e48
Binary files /dev/null and b/tests/model/multiclass_lr_classification_v051.sav differ
diff --git a/tests/model/regression_dt_regression.sav b/tests/model/regression_dt_regression.sav
deleted file mode 100644
index 01fb742..0000000
Binary files a/tests/model/regression_dt_regression.sav and /dev/null differ
diff --git a/tests/model/regression_dt_regression_v051.sav b/tests/model/regression_dt_regression_v051.sav
new file mode 100644
index 0000000..18cee62
Binary files /dev/null and b/tests/model/regression_dt_regression_v051.sav differ
diff --git a/tests/model/regression_ebm_regression.sav b/tests/model/regression_ebm_regression_v051.sav
similarity index 53%
rename from tests/model/regression_ebm_regression.sav
rename to tests/model/regression_ebm_regression_v051.sav
index 8ab79b1..8cc052d 100644
Binary files a/tests/model/regression_ebm_regression.sav and b/tests/model/regression_ebm_regression_v051.sav differ
diff --git a/tests/model/regression_lr_regression.sav b/tests/model/regression_lr_regression_v051.sav
similarity index 88%
rename from tests/model/regression_lr_regression.sav
rename to tests/model/regression_lr_regression_v051.sav
index 3239ef5..6c7ec94 100644
Binary files a/tests/model/regression_lr_regression.sav and b/tests/model/regression_lr_regression_v051.sav differ
diff --git a/trained_models/example_titanic/performance/test_calibration_plot.png b/trained_models/example_titanic/performance/test_calibration_plot.png
index 44e342d..3d478ee 100644
Binary files a/trained_models/example_titanic/performance/test_calibration_plot.png and b/trained_models/example_titanic/performance/test_calibration_plot.png differ
diff --git a/trained_models/example_titanic/performance/test_classification_report.csv b/trained_models/example_titanic/performance/test_classification_report.csv
deleted file mode 100644
index 06f5bd7..0000000
--- a/trained_models/example_titanic/performance/test_classification_report.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-,precision,recall,f1-score,support
-0,0.8255613126079447,0.8770642201834863,0.8505338078291815,545.0
-1,0.7824675324675324,0.7046783625730995,0.7415384615384616,342.0
-accuracy,0.8105975197294251,0.8105975197294251,0.8105975197294251,0.8105975197294251
-macro avg,0.8040144225377386,0.7908712913782929,0.7960361346838216,887.0
-weighted avg,0.8089456724636144,0.8105975197294251,0.8085085446595917,887.0
diff --git a/trained_models/example_titanic/performance/test_confusion_matrix.png b/trained_models/example_titanic/performance/test_confusion_matrix.png
index b5167d3..a70f158 100644
Binary files a/trained_models/example_titanic/performance/test_confusion_matrix.png and b/trained_models/example_titanic/performance/test_confusion_matrix.png differ
diff --git a/trained_models/example_titanic/performance/test_data_class0_pr_plot.png b/trained_models/example_titanic/performance/test_data_class0_pr_plot.png
index 9ec032e..7e6b0a2 100644
Binary files a/trained_models/example_titanic/performance/test_data_class0_pr_plot.png and b/trained_models/example_titanic/performance/test_data_class0_pr_plot.png differ
diff --git a/trained_models/example_titanic/performance/test_data_class1_pr_plot.png b/trained_models/example_titanic/performance/test_data_class1_pr_plot.png
index 380c8e5..86593d3 100644
Binary files a/trained_models/example_titanic/performance/test_data_class1_pr_plot.png and b/trained_models/example_titanic/performance/test_data_class1_pr_plot.png differ
diff --git a/trained_models/example_titanic/performance/test_distribution_plot.png b/trained_models/example_titanic/performance/test_distribution_plot.png
index 3a78688..477dcec 100644
Binary files a/trained_models/example_titanic/performance/test_distribution_plot.png and b/trained_models/example_titanic/performance/test_distribution_plot.png differ
diff --git a/trained_models/example_titanic/performance/test_roc_plot.png b/trained_models/example_titanic/performance/test_roc_plot.png
index abc23f2..21188b9 100644
Binary files a/trained_models/example_titanic/performance/test_roc_plot.png and b/trained_models/example_titanic/performance/test_roc_plot.png differ