Skip to content

Commit 9111bda

Browse files
committed
pylint
1 parent a85e6a1 commit 9111bda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

causal_testing/estimation/genetic_programming_regression_fitter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,14 @@ def make_offspring(self, population: list, num_offspring: int) -> list:
331331
offspring.append(child)
332332
return offspring
333333

334+
# pylint: disable=too-many-arguments
334335
def run_gp(
335336
self,
336337
ngen: int,
337338
pop_size: int = 20,
338339
num_offspring: int = 10,
339340
seeds: list = None,
340-
repair=True,
341+
repair: bool = True,
341342
) -> gp.PrimitiveTree:
342343
"""
343344
Execute Genetic Programming to find the best expression using a mu+lambda algorithm.
@@ -346,6 +347,7 @@ def run_gp(
346347
:param pop_size: The population size.
347348
:param num_offspring: The number of new individuals per generation.
348349
:param seeds: Seed individuals for the initial population.
350+
:param repair: Whether to run the linear regression repair operator (defaults to True).
349351
350352
:return: The best candididate expression.
351353
"""

0 commit comments

Comments
 (0)