MCPcopy Index your code
hub / github.com/clips/pattern / significance

Function significance

pattern/metrics.py:716–725  ·  view source on GitHub ↗

Returns the significance for the given test (FISHER, CHI2, LLR).

(*args, **kwargs)

Source from the content-addressed store, hash-verified

714
715FISHER, CHI2, LLR = "fisher", "chi2", "llr"
716def significance(*args, **kwargs):
717 """ Returns the significance for the given test (FISHER, CHI2, LLR).
718 """
719 test = kwargs.pop("test", FISHER)
720 if test == FISHER:
721 return fisher_exact_test(*args, **kwargs)
722 if test == CHI2:
723 return pearson_chi_squared_test(*args, **kwargs)[1]
724 if test == LLR:
725 return pearson_log_likelihood_ratio(*args, **kwargs)[1]
726
727#--- PEARSON'S CHI-SQUARED TEST --------------------------------------------------------------------
728

Callers

nothing calls this directly

Calls 4

fisher_exact_testFunction · 0.85
pearson_chi_squared_testFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…