How to use the causality.inference.independence_tests.__init__.MutualInformationTest function in causality

To help you get started, we’ve selected a few causality examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github akelleh / causality / causality / inference / independence_tests / View on Github external
def f(X):
            test = MutualInformationTest(self.y, self.x, self.z, X, self.alpha, variable_types=self.variable_types)
            return test.discrete_mutual_information(self.x, self.y, self.z, X)
        lower, expected, upper = self.bootstrap(discretized_df, f, lower_confidence=self.alpha/2, upper_confidence=1.-self.alpha/2.)