Skip to content

Commit 2395971

Browse files
committed
Fixed some ambigous typos
1 parent d169552 commit 2395971

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

causallearn/search/ConstraintBased/FCI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def doDdpOrientation(node_d: Node, node_a: Node, node_b: Node, node_c: Node, pre
387387
independence_test_method, alpha: float, sep_sets: Dict[Tuple[int, int], Set[int]],
388388
change_flag: bool, bk, verbose: bool = False) -> (bool, bool):
389389
"""
390-
Orients the edges inside the definte discriminating path triangle. Takes
390+
Orients the edges inside the definite discriminating path triangle. Takes
391391
the left endpoint, and a,b,c as arguments.
392392
"""
393393
if graph.is_adjacent_to(node_d, node_c):

causallearn/utils/DAG2CPDAG.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def dag2cpdag(G: Dag) -> GeneralGraph:
9999
id2 = np.intersect1d(np.where(sign_edges == 0)[0], id1)
100100
sign_edges[id2] = -1 # label all "unknown" edges incident into y with "reversible"
101101

102-
# create CPDAG accoring the labelled edge
102+
# create CPDAG according the labelled edge
103103
nodes = G.get_nodes()
104104
CPDAG = GeneralGraph(nodes)
105105
for m in range(M):

causallearn/utils/PCUtils/Helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def contain_crrn_m(var, prt_m):
579579
def contain_common_neighbors_prt_mvar(X, Y, condition_set, skel, prt_m):
580580
"""Check whether X and Y have at least one common neighbor.
581581
If they have no common neighbors,
582-
return Flase
582+
return False
583583
If they have common neighbors,
584584
but the common neighbors are not the parents of the missingness indicators of the variables in the test,
585585
return False

causallearn/utils/cit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def __call__(self, X, Y, condition_set=None):
338338
# Chi-square (or G-square) independence test.
339339
Xs, Ys, condition_set, cache_key = self.get_formatted_XYZ_and_cachekey(X, Y, condition_set)
340340
if cache_key in self.pvalue_cache: return self.pvalue_cache[cache_key]
341-
indexs = condition_set + Xs + Ys
342-
p = self.chisq_or_gsq_test(self.data[:, indexs].T, self.cardinalities[indexs], G_sq=self.method == 'gsq')
341+
indexes = condition_set + Xs + Ys
342+
p = self.chisq_or_gsq_test(self.data[:, indexes].T, self.cardinalities[indexes], G_sq=self.method == 'gsq')
343343
self.pvalue_cache[cache_key] = p
344344
return p
345345

0 commit comments

Comments
 (0)