We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2182f3 + 16fb4de commit 2289100Copy full SHA for 2289100
causallearn/search/HiddenCausal/GIN/GIN.py
@@ -23,9 +23,8 @@
23
24
def fisher_test(pvals):
25
pvals = [pval if pval >= 1e-5 else 1e-5 for pval in pvals]
26
- return min(pvals)
27
- # fisher_stat = -2.0 * np.sum(np.log(pvals))
28
- # return 1 - chi2.cdf(fisher_stat, 2 * len(pvals))
+ fisher_stat = -2.0 * np.sum(np.log(pvals))
+ return 1 - chi2.cdf(fisher_stat, 2 * len(pvals))
29
30
31
def GIN(data, indep_test=kci, alpha=0.05):
0 commit comments