Skip to content

Commit afe68a6

Browse files
author
Juan Orduz
committed
some fixes
1 parent 1ff4549 commit afe68a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc_bart/pgbart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def fast_mean(ari: npt.NDArray[np.float64]) -> Union[float, npt.NDArray[np.float
585585
for j in range(ari.shape[0]):
586586
for i in range(count):
587587
res[j] += ari[j, i]
588-
return res / count
588+
return (res / count).astype(np.float64)
589589

590590

591591
@njit
@@ -596,7 +596,7 @@ def fast_linear_fit(
596596
norm: npt.NDArray[np.float64],
597597
) -> tuple[npt.NDArray[np.float64], list[npt.NDArray[np.float64]]]:
598598
n = len(x)
599-
y = y / m + np.expand_dims(norm, axis=1)
599+
y = (y / m + np.expand_dims(norm, axis=1)).astype(np.float64)
600600

601601
xbar = np.sum(x) / n
602602
ybar = np.sum(y, axis=1) / n

0 commit comments

Comments
 (0)