瀏覽代碼

use of gpu implementation; update find attributes scripts; use of macop

Jérôme BUISINE 4 年之前
父節點
當前提交
512da84ac9
共有 3 個文件被更改,包括 12 次插入16 次删除
  1. 1 4
      .gitmodules
  2. 11 11
      find_best_filters.py
  3. 0 1
      macop

+ 1 - 4
.gitmodules

@@ -1,6 +1,3 @@
 [submodule "modules"]
 	path = modules
-	url = https://github.com/prise-3d/Thesis-CommonModules.git
-[submodule "macop"]
-	path = macop
-	url = https://github.com/jbuisine/macop.git
+	url = https://github.com/prise-3d/Thesis-CommonModules.git

+ 11 - 11
find_best_filters.py

@@ -24,18 +24,18 @@ sys.path.insert(0, '') # trick to enable import of main folder module
 import custom_config as cfg
 import models as mdl
 
-from macop.algorithms.mono.IteratedLocalSearch import IteratedLocalSearch as ILS
-from macop.solutions.BinarySolution import BinarySolution
+from macop.macop.algorithms.mono.IteratedLocalSearch import IteratedLocalSearch as ILS
+from macop.macop.solutions.BinarySolution import BinarySolution
 
-from macop.operators.mutators.SimpleMutation import SimpleMutation
-from macop.operators.mutators.SimpleBinaryMutation import SimpleBinaryMutation
-from macop.operators.crossovers.SimpleCrossover import SimpleCrossover
-from macop.operators.crossovers.RandomSplitCrossover import RandomSplitCrossover
+from macop.macop.operators.mutators.SimpleMutation import SimpleMutation
+from macop.macop.operators.mutators.SimpleBinaryMutation import SimpleBinaryMutation
+from macop.macop.operators.crossovers.SimpleCrossover import SimpleCrossover
+from macop.macop.operators.crossovers.RandomSplitCrossover import RandomSplitCrossover
 
-from macop.operators.policies.UCBPolicy import UCBPolicy
+from macop.macop.operators.policies.UCBPolicy import UCBPolicy
 
-from macop.callbacks.BasicCheckpoint import BasicCheckpoint
-from macop.callbacks.UCBCheckpoint import UCBCheckpoint
+from macop.macop.callbacks.BasicCheckpoint import BasicCheckpoint
+from macop.macop.callbacks.UCBCheckpoint import UCBCheckpoint
 
 # variables and parameters
 models_list         = cfg.models_names_list
@@ -108,8 +108,8 @@ def main():
     x_train, y_train, x_test, y_test = loadDataset(p_data_file)
 
     # create `logs` folder if necessary
-    if not os.path.exists(cfg.logs_folder):
-        os.makedirs(cfg.logs_folder)
+    if not os.path.exists(cfg.output_logs_folder):
+        os.makedirs(cfg.output_logs_folder)
 
     logging.basicConfig(format='%(asctime)s %(message)s', filename='logs/%s.log' % p_data_file.split('/')[-1], level=logging.DEBUG)
 

+ 0 - 1
macop

@@ -1 +0,0 @@
-Subproject commit b6eb599a1627193963fd9ae7796337f13a48d312