Skip to content

Commit 135e510

Browse files
maresbmichaelosthege
authored andcommitted
1 parent 46cd323 commit 135e510

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pymc3/distributions/bound.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _random(self, lower, upper, point=None, size=None):
8484
raise ValueError(
8585
"Drawing samples from distributions with array-valued bounds is not supported."
8686
)
87-
total_size = np.prod(size).astype(np.int)
87+
total_size = np.prod(size).astype(int)
8888
samples = []
8989
s = 0
9090
while s < total_size:

pymc3/gp/cov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, input_dim, active_dims=None):
6161
if active_dims is None:
6262
self.active_dims = np.arange(input_dim)
6363
else:
64-
self.active_dims = np.asarray(active_dims, np.int)
64+
self.active_dims = np.asarray(active_dims, int)
6565

6666
def __call__(self, X, Xs=None, diag=False):
6767
r"""

pymc3/gp/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
def infer_shape(X, n_points=None):
3030
if n_points is None:
3131
try:
32-
n_points = np.int(X.shape[0])
32+
n_points = int(X.shape[0])
3333
except TypeError:
3434
raise TypeError("Cannot infer 'shape', provide as an argument")
3535
return n_points

pymc3/tests/test_mixture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def build_toy_dataset(N, K):
343343
mus = [[1, 1, 1], [-1, -1, -1], [2, -2, 0]]
344344
stds = [[0.1, 0.1, 0.1], [0.1, 0.2, 0.2], [0.2, 0.3, 0.3]]
345345
x = np.zeros((N, 3), dtype=np.float32)
346-
y = np.zeros((N,), dtype=np.int)
346+
y = np.zeros((N,), dtype=int)
347347
for n in range(N):
348348
k = np.argmax(np.random.multinomial(1, pi))
349349
x[n, :] = np.random.multivariate_normal(mus[k], np.diag(stds[k]))

0 commit comments

Comments
 (0)