Skip to content

Commit 5df6b9d

Browse files
committed
Pygad signature comment
1 parent 20cad36 commit 5df6b9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

causal_testing/surrogate/surrogate_search_algorithms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def generate_fitness_functions(
3434
contradiction_function = self.contradiction_functions[surrogate.expected_relationship]
3535

3636
# The returned fitness function after including required variables into the function's scope
37+
# Unused arguments are required for pygad's fitness function signature
3738
def fitness_function(ga, solution, idx): # pylint: disable=unused-argument
3839
surrogate.control_value = solution[0] - self.delta
3940
surrogate.treatment_value = solution[0] + self.delta

0 commit comments

Comments
 (0)