Pārlūkot izejas kodu

add training of surrogate before loading it

Jérôme BUISINE 4 gadi atpakaļ
vecāks
revīzija
26767bfddc
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      optimization/ILSSurrogate.py

+ 2 - 0
optimization/ILSSurrogate.py

@@ -159,6 +159,8 @@ class ILSSurrogate(Algorithm):
 
                 self.increaseEvaluation()
         
+        # train surrogate on real evaluated solutions file
+        self.train_surrogate()
         self.load_surrogate()
 
         # initialize current solution