Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dowhy/do_samplers/kernel_density_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def sample_point(self, x_z):
]

res = np.meshgrid(*cum_ranges)
points = np.array(res).reshape(len(self._outcome_names), np.int(n.cumprod()[-1])).T
points = np.array(res).reshape(len(self._outcome_names), int(n.cumprod()[-1])).T

x_z_repeated = np.repeat(x_z, len(points)).reshape(len(points), len(x_z))
cdf_vals = self._evaluate_cdf(points, x_z_repeated)
Expand Down
2 changes: 1 addition & 1 deletion dowhy/gcm/independence_test/kernel_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def apply_delta_kernel(X: np.ndarray) -> np.ndarray:
:return: The outcome of the delta-kernel, a binary distance matrix.
"""
X = shape_into_2d(X)
return np.array(list(map(lambda value: value == X, X))).reshape(X.shape[0], X.shape[0]).astype(np.float)
return np.array(list(map(lambda value: value == X, X))).reshape(X.shape[0], X.shape[0]).astype(float)


def approximate_rbf_kernel_features(
Expand Down
Loading