Parcourir la source

update drop learn set

Jérôme BUISINE il y a 3 ans
Parent
commit
2bcbe3880e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      optimization/ILSPopSurrogate.py

+ 1 - 1
optimization/ILSPopSurrogate.py

@@ -135,7 +135,7 @@ class ILSPopSurrogate(Algorithm):
 
         # shuffle dataset
         learn = reduced_df.iloc[0:ntraining_samples]
-        test = reduced_df.drop[learn.index]
+        test = reduced_df.drop(learn.index)
 
         print("Start fitting again the surrogate model")
         print(f'Using {ntraining_samples} samples of {max_samples} for train dataset')