回答編集履歴

1

可能性を追加

2021/02/20 14:49

投稿

ppaul
ppaul

スコア24666

test CHANGED
@@ -25,3 +25,23 @@
25
25
  ```
26
26
 
27
27
  となって、このエラーが出ます。
28
+
29
+
30
+
31
+ 無限大よりは可能性は低いと思いますが、self.Tree.total()が非数(np.nan)になっているかもしれません。
32
+
33
+ この場合も同じエラーメッセージが出ます。
34
+
35
+ ```python
36
+
37
+ >>> print(np.random.uniform(0,np.nan,np.array([4])))
38
+
39
+ Traceback (most recent call last):
40
+
41
+ File "<stdin>", line 1, in <module>
42
+
43
+ File "mtrand.pyx", line 1106, in numpy.random.mtrand.RandomState.uniform
44
+
45
+ OverflowError: Range exceeds valid bounds
46
+
47
+ ```