Skip to content

Commit 6de85f3

Browse files
committed
Fixed docs
1 parent 81f443a commit 6de85f3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

causal_testing/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def run_tests_in_batches(
338338
:param silent: Whether to suppress errors
339339
:param adequacy: Whether to calculate causal test adequacy (defaults to False)
340340
:param bootstrap_size: The number of bootstrap samples to use when calculating causal test adequacy
341-
(defaults to 100)
341+
(defaults to 100)
342342
:return: List of all test results
343343
:raises: ValueError if no tests are loaded
344344
"""
@@ -395,7 +395,7 @@ def run_tests(
395395
:param silent: Whether to suppress errors
396396
:param adequacy: Whether to calculate causal test adequacy (defaults to False)
397397
:param bootstrap_size: The number of bootstrap samples to use when calculating causal test adequacy
398-
(defaults to 100)
398+
(defaults to 100)
399399
400400
:return: List of CausalTestResult objects
401401
:raises: ValueError if no tests are loaded

causal_testing/testing/metamorphic_relation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def generate_metamorphic_relation(
166166
def generate_metamorphic_relations(
167167
dag: CausalDAG, nodes_to_ignore: set = None, threads: int = 0, nodes_to_test: set = None
168168
) -> list[MetamorphicRelation]:
169-
"""Construct a list of metamorphic relations implied by the Causal DAG.
170-
169+
"""
170+
Construct a list of metamorphic relations implied by the Causal DAG.
171171
This list of metamorphic relations contains a ShouldCause relation for every edge, and a ShouldNotCause
172172
relation for every (minimal) conditional independence relation implied by the structure of the DAG.
173173
@@ -222,7 +222,7 @@ def generate_causal_tests(
222222
:param threads: The number of threads to use to generate tests in parallel. If unspecified, tests are generated in
223223
serial. This is tylically fine unless the number of tests to be generated is >10000.
224224
:param test_inputs: Whether to test independences between inputs (i.e. root nodes in the DAG). Defaults to False
225-
as they will typically be independent by construction.
225+
as they will typically be independent by construction.
226226
:param json_stub_kargs: Kwargs to pass into `to_json_stub` (see docstring for details.)
227227
"""
228228
causal_dag = CausalDAG(dag_path, ignore_cycles=ignore_cycles)

0 commit comments

Comments
 (0)