提交 4705e015 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Remove deprecated np.int and np.float

上级 680f4232
......@@ -378,7 +378,7 @@ class MultinomialRV(RandomVariable):
multinomial = MultinomialRV()
vsearchsorted = np.vectorize(np.searchsorted, otypes=[np.int], signature="(n),()->()")
vsearchsorted = np.vectorize(np.searchsorted, otypes=[int], signature="(n),()->()")
class CategoricalRV(RandomVariable):
......
......@@ -46,7 +46,7 @@ def test_filter_float_subclass():
test_type = TensorType("float64", broadcastable=[])
nan = np.array([np.nan], dtype="float64")[0]
assert isinstance(nan, np.float) and not isinstance(nan, np.ndarray)
assert isinstance(nan, float) and not isinstance(nan, np.ndarray)
filtered_nan = test_type.filter(nan)
assert isinstance(filtered_nan, np.ndarray)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论