Skip to content

Commit

Permalink
TSEMO no samples (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosfelt authored Dec 2, 2022
1 parent abd83a1 commit d9e1482
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions summit/strategies/tsemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ def reset(self):
"""Reset TSEMO state"""
self.all_experiments = None
self.iterations = 0
self.samples = [] # Samples drawn using NSGA-II
self.sample_fs = [0 for i in range(len(self.domain.output_variables))]
self.uuid_val = uuid.uuid4()

Expand Down Expand Up @@ -478,15 +477,6 @@ def _select_max_hvi(self, y, samples, num_evals=1):
mask[original_index] = False
indices.append(original_index)

# Append current estimate of the pareto front to sample_paretos
samples_new = samples_next.copy()
mean = self.transform.output_means[v.name]
std = self.transform.output_stds[v.name]
samples_new = samples_new * std + mean
samples_new[("hvi", "DATA")] = hv_improvement
self.samples.append(samples_new)
samples_next = samples_original.loc[mask]

if len(hv_improvement) == 0:
hv_imp = 0
elif len(indices) == 0:
Expand Down

0 comments on commit d9e1482

Please sign in to comment.