Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 0b1675d

Browse files
author
Jaquier Aurélien Tristan
committed
Fix tsodyksmarkramstp example
1 parent 890c14e commit 0b1675d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

examples/tsodyksmarkramstp/tmevaluator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,7 @@ def evaluate_with_lists(self, individual):
8282
errors = [np.linalg.norm(self.v[t0:t1] - candidate_v[t0:t1])
8383
for t0, t1 in self.split_idx]
8484
return errors
85+
86+
def init_simulator_and_evaluate_with_lists(self, individual):
87+
"""Calls evaluate_with_lists. Is called during IBEA optimisation."""
88+
return self.evaluate_with_lists(individual)

examples/tsodyksmarkramstp/tmevaluator_multiplefreqs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ def evaluate_with_lists(self, individual):
6969
candidate_amps, _ = self.generate_model(freq, individual)
7070
errors.extend(np.power(self.amplitudes[freq] - candidate_amps, 2).tolist())
7171
return errors
72+
73+
def init_simulator_and_evaluate_with_lists(self, individual):
74+
"""Calls evaluate_with_lists. Is called during IBEA optimisation."""
75+
return self.evaluate_with_lists(individual)

0 commit comments

Comments
 (0)