Skip to content

Commit

Permalink
Update sbi/analysis/plot.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jan <[email protected]>
  • Loading branch information
Matthijspals and janfb authored Apr 4, 2024
1 parent 32e53d7 commit c9074f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbi/analysis/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def plt_kde_1d(
limits: torch.Tensor,
kwargs: Dict,
) -> None:
""" "1D Kernel Density Estimation."""
"""Run 1D kernel density estimation on samples and plot it on a given axes."""
density = gaussian_kde(samples, bw_method=kwargs["bw_method"])
xs = np.linspace(limits[0], limits[1], kwargs["bins"])
ys = density(xs)
Expand Down

0 comments on commit c9074f5

Please sign in to comment.