Skip to content

Commit 5b69722

Browse files
committed
Add comments on how the p-values are generate.
1 parent 038f48d commit 5b69722

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/TestGranger.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212

1313
from causallearn.search.Granger.Granger import Granger
1414

15+
######################################### Test Notes ###########################################
16+
# All the benchmark results (p_value_matrix_truth, adj_matrix_truth, coeff_truth) #
17+
# are obtained from the code of causal-learn as of commit #
18+
# https://github.com/cmu-phil/causal-learn/commit/b49980d046607baaaa66ff8dc0ceb98452ab8616 #
19+
# (b49980d). #
20+
# #
21+
# We are not sure if the results are completely "correct" (reflect ground truth graph) or not. #
22+
# So if you find your tests failed, it means that your modified code is logically inconsistent #
23+
# with the code as of b49980d, but not necessarily means that your code is "wrong". #
24+
# If you are sure that your modification is "correct" (e.g. fixed some bugs in b49980d), #
25+
# please report it to us. We will then modify these benchmark results accordingly. Thanks :) #
26+
######################################### Test Notes ###########################################
27+
1528

1629
class TestGranger(unittest.TestCase):
1730
# simulate data from a VAR model

0 commit comments

Comments
 (0)