Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBlanke committed May 26, 2024
1 parent 1059993 commit f10d867
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/surfaces/data_collector/surfaces_data_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def _init_search_data(self, objective_function, search_space):

def _array_search_space(self, objective_function, search_space):
while self.search_data_length < self.search_space_size:
print("\n ------------ search_space_size", self.search_space_size)
opt = GridSearchOptimizer(
search_space,
direction="orthogonal",
Expand All @@ -52,13 +51,9 @@ def _array_search_space(self, objective_function, search_space):

self.search_data = self.search_data.drop_duplicates(subset=self.para_names)
self.search_data_length = len(self.search_data)
print(
"\n ------------ self.search_data_length", self.search_data_length, "\n"
)

def _list_search_space(self, objective_function, search_space):
while self.search_data_length < self.search_space_size:
print("\n ------------ search_space_size", self.search_space_size)

hyper = Hyperactive(verbosity=["progress_bar"])
hyper.add_search(
Expand All @@ -78,9 +73,6 @@ def _list_search_space(self, objective_function, search_space):

self.search_data = self.search_data.drop_duplicates(subset=self.para_names)
self.search_data_length = len(self.search_data)
print(
"\n ------------ self.search_data_length", self.search_data_length, "\n"
)

def collect(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def k_neighbors_classifier(params):
)
X, y = params["dataset"]()
scores = cross_val_score(knc, X, y, cv=params["cv"], scoring=self.metric)
print("\n score ", scores.mean(), "\n")
return scores.mean()

self.pure_objective_function = k_neighbors_classifier

0 comments on commit f10d867

Please sign in to comment.