Skip to content

Commit

Permalink
remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBlanke committed May 26, 2024
1 parent 665dd98 commit 24025d5
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions collect_search_data.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
from surfaces.test_functions import mathematical_functions, machine_learning_functions
from surfaces.test_functions import machine_learning_functions
from surfaces.data_collector import SurfacesDataCollector


for mathematical_function in mathematical_functions:
print("\n ---", mathematical_function.name, "---")
try:
test_function = mathematical_function(metric="loss")
except TypeError:
test_function = mathematical_function(n_dim=2, metric="loss")

objective_function = test_function.objective_function
search_space = test_function.search_space(value_types="array")

sdc = SurfacesDataCollector()
sdc.collect(objective_function, search_space)


for machine_learning_function in machine_learning_functions:
test_function = machine_learning_function(load_search_data=False)
test_function = machine_learning_function(evaluate_from_data=False)

objective_function = test_function.objective_function
search_space = test_function.search_space(value_types="array")
search_space = test_function.search_space()

sdc = SurfacesDataCollector()
sdc.collect(objective_function, search_space)

0 comments on commit 24025d5

Please sign in to comment.