Ver código fonte

add training of surrogate before loading it

Jérôme BUISINE 4 anos atrás
pai
commit
26767bfddc
1 arquivos alterados com 2 adições e 0 exclusões
  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