Skip to content

Commit 04b377d

Browse files
committed
linting
1 parent cc0485f commit 04b377d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

causal_testing/surrogate/causal_surrogate_assisted.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
from abc import ABC, abstractmethod
44
from dataclasses import dataclass
5-
from typing import Callable, Any
5+
from typing import Callable
66

77
from causal_testing.data_collection.data_collector import ObservationalDataCollector
88
from causal_testing.specification.causal_specification import CausalSpecification
99
from causal_testing.testing.base_test_case import BaseTestCase
10-
from causal_testing.testing.estimators import Estimator, CubicSplineRegressionEstimator
10+
from causal_testing.testing.estimators import CubicSplineRegressionEstimator
1111

1212

1313
@dataclass
@@ -24,7 +24,9 @@ class SearchAlgorithm(ABC):
2424
space to be searched"""
2525

2626
@abstractmethod
27-
def search(self, surrogate_models: list[CubicSplineRegressionEstimator], specification: CausalSpecification) -> list:
27+
def search(
28+
self, surrogate_models: list[CubicSplineRegressionEstimator], specification: CausalSpecification
29+
) -> list:
2830
"""Function which implements a search routine which searches for the optimal fitness value for the specified
2931
scenario
3032
:param surrogate_models: The surrogate models to be searched

causal_testing/surrogate/surrogate_search_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def fitness_function(ga, solution, idx): # pylint: disable=unused-argument
4646
ate = surrogate.estimate_ate_calculated(adjustment_dict)
4747

4848
return contradiction_function(ate)
49-
49+
5050
gene_types, gene_space = self.create_gene_types(surrogate, specification)
5151

5252
ga = GA(

0 commit comments

Comments
 (0)