Skip to content

Commit 8443c49

Browse files
committed
Update comments a little bit
1 parent cf08150 commit 8443c49

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

causallearn/search/ConstraintBased/CDNOD.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def cdnod_alg(data, alpha, indep_test, stable, uc_rule, uc_priority, background_
7171
7272
Returns
7373
-------
74-
cg : a CausalGraph object, where cg.G.graph[j,i]=1 and cg.G.graph[i,j]=-1 indicates i --> j ,
74+
cg : a CausalGraph object, where cg.G.graph[j,i]=1 and cg.G.graph[i,j]=-1 indicate i --> j ,
7575
cg.G.graph[i,j] = cg.G.graph[j,i] = -1 indicates i --- j,
7676
cg.G.graph[i,j] = cg.G.graph[j,i] = 1 indicates i <-> j.
7777

causallearn/search/ConstraintBased/FCI.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,9 @@ def fci(dataset, independence_test_method=fisherz, alpha=0.05, depth=-1, max_pat
787787
graph.graph[j,i]=1 and graph.graph[i,j]=2 indicates i o-> j.
788788
edges : list
789789
Contains graph's edges properties.
790-
If an edge.properties have the Property dd, then it means there is no latent confounder. Otherwise,
791-
there is possibly latent confounder.
792-
If an edge.properties have the Property nl, then it is definitely direct. Otherwise,
790+
If edge.properties have the Property 'dd', then there is no latent confounder. Otherwise,
791+
there might be latent confounders.
792+
If edge.properties have the Property nl, then it is definitely direct. Otherwise,
793793
it is possibly direct.
794794
'''
795795

docs/source/search_methods_index/Constrained-based causal discovery methods/CDNOD.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ For detailed usage, please kindly refer to its `usage example <https://github.co
6565

6666
Returns
6767
-------------------
68-
**cg** : a CausalGraph object, where cg.G.graph[j,i]=1 and cg.G.graph[i,j]=-1 indicates i --> j; cg.G.graph[i,j] = cg.G.graph[j,i] = -1 indicates i --- j; cg.G.graph[i,j] = cg.G.graph[j,i] = 1 indicates i <-> j.
68+
**cg** : a CausalGraph object, where cg.G.graph[j,i]=1 and cg.G.graph[i,j]=-1 indicate i --> j; cg.G.graph[i,j] = cg.G.graph[j,i] = -1 indicates i --- j; cg.G.graph[i,j] = cg.G.graph[j,i] = 1 indicates i <-> j.
6969

7070
.. [1] Huang, B., Zhang, K., Zhang, J., Ramsey, J. D., Sanchez-Romero, R., Glymour, C., & Schölkopf, B. (2020). Causal Discovery from Heterogeneous/Nonstationary Data. J. Mach. Learn. Res., 21(89), 1-53.

docs/source/search_methods_index/Constrained-based causal discovery methods/FCI.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Returns
5252
-------------------
5353
**graph**: a CausalGraph object, where graph.graph[j,i]=1 and graph.graph[i,j]=-1 indicates i --> j; graph.graph[i,j] = graph.graph[j,i] = -1 indicates i --- j; graph.graph[i,j] = graph.graph[j,i] = 1 indicates i <-> j; graph.graph[j,i]=1 and graph.graph[i,j]=2 indicates i o-> j.
5454

55-
**edges**: list. Contains graph's edges properties. If an edge.properties have the Property dd, then it means there is no latent confounder. Otherwise, there is possibly latent confounder. If an edge.properties have the Property nl, then it is definitely direct. Otherwise, it is possibly direct.
55+
**edges**: list. Contains graph's edges properties. If edge.properties have the Property 'dd', then there is no latent confounder. Otherwise, there might be latent confounders. If edge.properties have the Property 'nl', then it is definitely direct. Otherwise, it is possibly direct.
5656

5757

5858
.. [1] Spirtes, P., Meek, C., & Richardson, T. (1995, August). Causal inference in the presence of latent variables and selection bias. In Proceedings of the Eleventh conference on Uncertainty in artificial intelligence (pp. 499-506).

docs/source/search_methods_index/Constrained-based causal discovery methods/PC.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ For detailed usage, please kindly refer to its `usage example <https://github.co
6969

7070
Returns
7171
-------------------
72-
**cg** : a CausalGraph object, where cg.G.graph[j,i]=1 and cg.G.graph[i,j]=-1 indicates i --> j; cg.G.graph[i,j] = cg.G.graph[j,i] = -1 indicates i --- j; cg.G.graph[i,j] = cg.G.graph[j,i] = 1 indicates i <-> j.
72+
**cg** : a CausalGraph object, where cg.G.graph[j,i]=1 and cg.G.graph[i,j]=-1 indicate i --> j; cg.G.graph[i,j] = cg.G.graph[j,i] = -1 indicate i --- j; cg.G.graph[i,j] = cg.G.graph[j,i] = 1 indicates i <-> j.
7373

7474
.. [1] Spirtes, P., Glymour, C. N., Scheines, R., & Heckerman, D. (2000). Causation, prediction, and search. MIT press.
7575
.. [2] Tu, R., Zhang, C., Ackermann, P., Mohan, K., Kjellström, H., & Zhang, K. (2019, April). Causal discovery in the presence of missing data. In The 22nd International Conference on Artificial Intelligence and Statistics (pp. 1762-1770). PMLR.

docs/source/search_methods_index/Score-based causal discovery methods/GES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ and n_features is the number of features.
4040

4141
Returns
4242
-------------------
43-
- **Record['G']**: learned causal graph, where Record['G'].graph[j,i]=1 and Record['G'].graph[i,j]=-1 indicates i --> j; Record['G'].graph[i,j] = Record['G'].graph[j,i] = -1 indicates i --- j.
43+
- **Record['G']**: learned causal graph, where Record['G'].graph[j,i]=1 and Record['G'].graph[i,j]=-1 indicate i --> j; Record['G'].graph[i,j] = Record['G'].graph[j,i] = -1 indicates i --- j.
4444

4545
- **Record['update1']**: each update (Insert operator) in the forward step.
4646

0 commit comments

Comments
 (0)