8000 Update MyPy 14 by juanitorduz · Pull Request #210 · pymc-devs/pymc-bart · GitHub
[go: up one dir, main page]

Skip to content

Update MyPy 14 #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Dec 26, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
some fixes
  • Loading branch information
Juan Orduz committed Dec 26, 2024
commit 7c6b46226732593bc435abecd4fe55c566702989
2 changes: 1 addition & 1 deletion pymc_bart/pgbart.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def draw_leaf_value(
) -> tuple[npt.NDArray[np.float64], Optional[npt.NDArray[np.float64]]]:
"""Draw Gaussian distributed leaf values."""
linear_params = None
mu_mean: npt.NDArray[np.float64] = np.empty(shape)
mu_mean: npt.NDArray[np.float64]
if y_mu_pred.size == 0:
return np.zeros(shape), linear_params

Expand Down
Loading
0