diff --git a/kernel_ridge_linear_model/__pycache__/lesson_learned_validation_code.cpython-38.pyc b/kernel_ridge_linear_model/__pycache__/lesson_learned_validation_code.cpython-38.pyc
index 590ac2590f2b34b21760b002fe3be09d0a9a7a06..428098998ab04b0df441c7ad477fff820cfa8807 100755
Binary files a/kernel_ridge_linear_model/__pycache__/lesson_learned_validation_code.cpython-38.pyc and b/kernel_ridge_linear_model/__pycache__/lesson_learned_validation_code.cpython-38.pyc differ
diff --git a/kernel_ridge_linear_model/__pycache__/utils_functions_for_validation.cpython-38.pyc b/kernel_ridge_linear_model/__pycache__/utils_functions_for_validation.cpython-38.pyc
index d2d0b4a6efa941b3d312bef1772dd9c6a86be174..e28d427da87f000a64169fff420793d536e72112 100755
Binary files a/kernel_ridge_linear_model/__pycache__/utils_functions_for_validation.cpython-38.pyc and b/kernel_ridge_linear_model/__pycache__/utils_functions_for_validation.cpython-38.pyc differ
diff --git a/kernel_ridge_linear_model/lesson_learned_validation_code.py b/kernel_ridge_linear_model/lesson_learned_validation_code.py
index 102b645c6b0b44f063e870a36bbf012833069098..ce5cacb7eb85b7a8c00b9bdb25cd2e4e3991cc8e 100755
--- a/kernel_ridge_linear_model/lesson_learned_validation_code.py
+++ b/kernel_ridge_linear_model/lesson_learned_validation_code.py
@@ -35,9 +35,10 @@ def compute_score_and_accepted_transitions(expected_efficiency_behavior, variati
     return score, accepted_transitions, rejected_transitions
 
 
-def validate__scheduling_thread_on_core_i_when_condition_on_socket_frequency(core_number, socket_type, frequency_levels,conn,expected_efficiency_behavior ):
-    # test if we schedule thread on core "core_number"
+def validate__scheduling_thread_on_core_i_when_condition_on_socket_frequency(i, socket_type, frequency_levels,conn,expected_efficiency_behavior ):
+    # test if we schedule thread on core "i"
     # if the socket "socket_type" has the frequency "frequency_levels", frequency levels should be  delimited with the key word "or" !!!! 
+    variable_to_increase = "core " + str(i) + " state" 
     suitable_contraindication_or_neutral = "suitable - efficiency should increase" if expected_efficiency_behavior == "increases" else "contraindicated -  efficiency should decrease" if expected_efficiency_behavior == "decreases" else "neutral - efficiency should be stable" 
     chipset_state = socket_type + " socket frequency is " + frequency_levels 
     
@@ -46,7 +47,7 @@ def validate__scheduling_thread_on_core_i_when_condition_on_socket_frequency(cor
     accepted_transitions = ""
     rejected_transitions = "" 
     
-    nomber_of_cases = 0
+    number_of_cases = 0
     all_frequency_levels = [level.strip() for level in frequency_levels.split("or")] 
     score_variation = 100 / len(all_frequency_levels)  # to modify
 
@@ -65,10 +66,10 @@ def validate__scheduling_thread_on_core_i_when_condition_on_socket_frequency(cor
         number_of_cases = number_of_cases + 1
         lesson_learned_description = ''' 
             Lesson learne: scheduling thread on core ''' + str(i) + ''' 
-            part '''+ str(number_of_cases) + ''' :  '''  + socket_type + ''' frequency level is '''+ level +'''
+            part '''+ str(number_of_cases) + ''' :  '''  + socket_type + ''' frequency level is ''' + level + '''
             energy efficiency should increase
         '''
-
+        print("--- Lesson learned:" , lesson_learned_description)
     
         command = '''
         SELECT
@@ -89,12 +90,12 @@ def validate__scheduling_thread_on_core_i_when_condition_on_socket_frequency(cor
                     FROM
                         (SELECT
                             configuration_description__google_pixel_4a_5g.configuration_id,
-                            configuration_description__google_pixel_4a_5g.core_''' + str(i) + '''_state_freq_level,
+                            configuration_description__google_pixel_4a_5g.core_''' + str(i) + '''_state,
                             configuration_description__google_pixel_4a_5g.''' + socket_state_table_column_name + '''
                         FROM
                             configuration_description__google_pixel_4a_5g
                         WHERE
-                            configuration_description__google_pixel_4a_5g.''' + socket_state_table_column_name + '''== ''' + level_to_int_dictionnary[level] +''' ) /* see if we can reduce this */  
+                            configuration_description__google_pixel_4a_5g.''' + socket_state_table_column_name + '''== ''' + str(level_to_int_dictionnary[level]) +''' ) /* see if we can reduce this */  
                         AS configuration_description_''' + socket_type + '''_socket_freq_'''+ level+ '''
                     WHERE
                         configuration_description_''' + socket_type + '''_socket_freq_''' + level + '''.core_''' + str(i) + '''_state == 0) 
@@ -120,16 +121,16 @@ def validate__scheduling_thread_on_core_i_when_condition_on_socket_frequency(cor
                     FROM
                         (SELECT
                             configuration_description__google_pixel_4a_5g.configuration_id,
-                            configuration_description__google_pixel_4a_5g.core_''' + str(i) + '''_state_freq_level,
+                            configuration_description__google_pixel_4a_5g.core_''' + str(i) + '''_state,
                             configuration_description__google_pixel_4a_5g.''' + socket_state_table_column_name + '''
                         FROM
                             configuration_description__google_pixel_4a_5g
                         WHERE
-                            configuration_description__google_pixel_4a_5g.''' + socket_state_table_column_name + '''== ''' + level_to_int_dictionnary[level] +''' ) /* see if we can reduce this */  
+                            configuration_description__google_pixel_4a_5g.''' + socket_state_table_column_name + '''== ''' + str(level_to_int_dictionnary[level]) +''' ) /* see if we can reduce this */  
                         AS configuration_description_''' + socket_type + '''_socket_freq_'''+ level+ '''
                     WHERE
                         configuration_description_''' + socket_type + '''_socket_freq_''' + level + '''.core_''' + str(i) + '''_state == 1) 
-                    AS  configuration_description_''' + socket_type + '''_socket_freq_''' + level + '''_core_''' + str(i) + '''_OON
+                    AS  configuration_description_''' + socket_type + '''_socket_freq_''' + level + '''_core_''' + str(i) + '''_ON
             INNER JOIN 
                     configuration_measurements 
             USING(configuration_id))  
diff --git a/kernel_ridge_linear_model/log_file_processing_data_bases.txt b/kernel_ridge_linear_model/log_file_processing_data_bases.txt
index e694332e9f86a1d86420fac71f9fb54073bcc1d9..eda7d3a6fa28e38081446fa4c9273647996b03a0 100755
--- a/kernel_ridge_linear_model/log_file_processing_data_bases.txt
+++ b/kernel_ridge_linear_model/log_file_processing_data_bases.txt
@@ -82,6 +82,50 @@ variation  457689176.44021606
 before =  13015076996.03556
 after =  13487823142.62333
 variation  472746146.58776855
+--- Lesson learned:  
+            Lesson learne: scheduling thread on core 0 
+            part 1 :  medium frequency level is low
+            energy efficiency should increase
+        
+ 
+            Lesson learne: scheduling thread on core 0 
+            part 1 :  medium frequency level is low
+            energy efficiency should increase
+        
+before =  11837118528.57936
+after =  12886296786.84192
+variation  1049178258.2625618
+--- Lesson learned:  
+            Lesson learne: scheduling thread on core 0 
+            part 2 :  medium frequency level is medium
+            energy efficiency should increase
+        
+ 
+            Lesson learne: scheduling thread on core 0 
+            part 2 :  medium frequency level is medium
+            energy efficiency should increase
+        
+before =  13355609058.71653
+after =  14061072930.57415
+variation  705463871.8576202
+ 
+        Lesson learne: increasing little_socket_frequency
+        part 1: increasing little_socket_frequency from 0 to 1
+        core_6_state_freq_level = 3
+        energy efficiency should decreases
+    
+before =  12439907839.389835
+after =  13819730875.533398
+variation  1379823036.1435623
+
+    lesson learned: increasing little_socket_frequency
+        part 2:  increasing little_socket_frequency from 1 to 2
+        core_6_state_freq_level = 3
+        energy efficiency should decreases
+    
+before =  13819730875.533503
+after =  13145372981.616825
+variation  -674357893.9166775
  
         Lesson learne: scheduling thread on core 6 
         part 1 : core_0_state = 0
@@ -658,22 +702,4 @@ variation  -299244003.66867065
 before =  13973046067.911377
 after =  13814924220.64906
 variation  -158121847.26231766
- 
-        Lesson learne: increasing little_socket_frequency
-        part 1: increasing little_socket_frequency from 0 to 1
-        core_6_state_freq_level = 3
-        energy efficiency should decreases
-    
-before =  12439907839.389835
-after =  13819730875.533398
-variation  1379823036.1435623
-
-    lesson learned: increasing little_socket_frequency
-        part 2:  increasing little_socket_frequency from 1 to 2
-        core_6_state_freq_level = 3
-        energy efficiency should decreases
-    
-before =  13819730875.533503
-after =  13145372981.616825
-variation  -674357893.9166775
---- Total execution time: 2.3503808975219727 seconds = 0.03917301495869954 mins
+--- Total execution time: 0.7833306789398193 seconds = 0.013055511315663655 mins
diff --git a/kernel_ridge_linear_model/marginal_effect_exploration_automatic_experiments_google__0.89_base_Y/.~lock.lesson_learned_validation_file.csv# b/kernel_ridge_linear_model/marginal_effect_exploration_automatic_experiments_google__0.89_base_Y/.~lock.lesson_learned_validation_file.csv#
index 789fe220be6cedc2f00f0fbb5ee30ac93217c349..476d620064aa7e253e0bd37d81790aa71a65b6f6 100755
--- a/kernel_ridge_linear_model/marginal_effect_exploration_automatic_experiments_google__0.89_base_Y/.~lock.lesson_learned_validation_file.csv#
+++ b/kernel_ridge_linear_model/marginal_effect_exploration_automatic_experiments_google__0.89_base_Y/.~lock.lesson_learned_validation_file.csv#
@@ -1 +1 @@
-,DESKTOP-D49H2V3/lavoi,DESKTOP-D49H2V3,25.10.2022 13:55,file:///C:/Users/lavoi/AppData/Roaming/LibreOffice/4;
\ No newline at end of file
+,DESKTOP-D49H2V3/lavoi,DESKTOP-D49H2V3,25.10.2022 19:02,file:///C:/Users/lavoi/AppData/Roaming/LibreOffice/4;
\ No newline at end of file
diff --git a/kernel_ridge_linear_model/marginal_effect_exploration_automatic_experiments_google__0.89_base_Y/lesson_learned_validation_file.csv b/kernel_ridge_linear_model/marginal_effect_exploration_automatic_experiments_google__0.89_base_Y/lesson_learned_validation_file.csv
index 997c7ff401bbc17964a35c1cd7882026470a58f1..847af8776c841fbd50c26adb577fbd1421977acc 100755
--- a/kernel_ridge_linear_model/marginal_effect_exploration_automatic_experiments_google__0.89_base_Y/lesson_learned_validation_file.csv
+++ b/kernel_ridge_linear_model/marginal_effect_exploration_automatic_experiments_google__0.89_base_Y/lesson_learned_validation_file.csv
@@ -6,6 +6,9 @@ core 0 state,Core 2 is ON or OFF,suitable - efficiency should increase,100 %,0 -
 core 0 state,Core 3 is ON or OFF,suitable - efficiency should increase,100 %,0 -> 1[0.2535527553099117]; 0 -> 1[0.8185523439305153]; ,
 core 0 state,Core 4 is ON or OFF,suitable - efficiency should increase,100 %,0 -> 1[0.3997839291612282]; 0 -> 1[0.6768942903149529]; ,
 core 0 state,Core 5 is ON or OFF,suitable - efficiency should increase,100 %,0 -> 1[0.4576891764402161]; 0 -> 1[0.4727461465877686]; ,
+core 0 state,medium socket frequency is low or medium,suitable - efficiency should increase,100.0 %,0 -> 1[1.049178258262562]; 0 -> 1[0.7054638718576203]; ,
+
+little socket frequency,Medium frequency is high,contraindicated -  efficiency should decrease,50 %,1 -> 2[-0.6743578939166776]; ,0 -> 1[1.3798230361435624]; 
 
 core 6 state,Core 0 is ON or OFF,suitable - efficiency should increase,66.66666666666667 %,0 -> 1[2.5744989950146984]; 1 -> 2[1.518490530137682]; 0 -> 1[2.229658962286444]; 1 -> 2[1.1747761437319488]; ,2 -> 3[-0.6922002093811379]; 2 -> 3[-0.6605810775516873]; 
 core 6 state,Core 1 is ON or OFF,suitable - efficiency should increase,66.66666666666667 %,0 -> 1[3.524855221732817]; 1 -> 2[1.5903215406780091]; 0 -> 1[1.8300647778420565]; 1 -> 2[1.0198172468500881]; ,2 -> 3[-0.8996313396589223]; 2 -> 3[-0.42920297704800037]; 
@@ -20,4 +23,3 @@ core 7 state,Core 2 is ON or OFF,suitable - efficiency should increase,50.0 %,0
 core 7 state,Core 3 is ON or OFF,suitable - efficiency should increase,50.0 %,0 -> 1[2.4825152605667804]; 1 -> 2[0.2462927068294983]; 0 -> 1[2.4392937578951646]; ,2 -> 3[-0.21796517141000749]; 1 -> 2[-0.014283849839113237]; 2 -> 3[-0.40559922975867657]; 
 core 7 state,Core 4 is ON or OFF,suitable - efficiency should increase,50.0 %,0 -> 1[2.7252648385354616]; 0 -> 1[2.2880637811075824]; 1 -> 2[0.1879587854693127]; ,1 -> 2[-0.08257607076469421]; 2 -> 3[-0.48941806545084576]; 2 -> 3[-0.36996609908812333]; 
 core 7 state,Core 5 is ON or OFF,suitable - efficiency should increase,50.0 %,0 -> 1[2.6765032133438607]; 1 -> 2[0.5241548403976841]; 0 -> 1[2.3828535112624283]; ,2 -> 3[-0.7641745971396446]; 1 -> 2[-0.29924400366867066]; 2 -> 3[-0.15812184726231768]; 
-little socket frequency,Medium frequency is high,contraindicated -  efficiency should decrease,50 %,1 -> 2[-0.6743578939166776]; ,0 -> 1[1.3798230361435624]; 
diff --git a/kernel_ridge_linear_model/utils_functions_for_validation.py b/kernel_ridge_linear_model/utils_functions_for_validation.py
index f3536669ace781d77acd32b22e8b61ab35c36328..45698afbd093ee2ffa4f6255e57c537a375b91cb 100755
--- a/kernel_ridge_linear_model/utils_functions_for_validation.py
+++ b/kernel_ridge_linear_model/utils_functions_for_validation.py
@@ -714,7 +714,7 @@ def validate_lesson_learned (output_file_path):
             file.write( validation_code.validate__scheduling_thread_on_little_core_i_no_matter_core_j_state(0, 3, conn, "increases") + "\n")      
             file.write( validation_code.validate__scheduling_thread_on_little_core_i_no_matter_core_j_state(0, 4, conn, "increases") + "\n") 
             file.write( validation_code.validate__scheduling_thread_on_little_core_i_no_matter_core_j_state(0, 5, conn, "increases") + "\n")  
-            file.write( validation_code.validate__scheduling_thread_on_core_i_when_condition_on_socket_frequency(0, "medium_socket", "low or medium",conn, "increases") + "\n")      
+            file.write( validation_code.validate__scheduling_thread_on_core_i_when_condition_on_socket_frequency(0, "medium", "low or medium",conn, "increases") + "\n")      
 
             file.write("\n")
             file.write( validation_code.validate__increasing_little_sockect_freq_when_core_6_state_freq_level_is_3(conn, "decreases") + "\n")