Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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.)