mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Update priors_plots.py (#929)
Change pb.hist(rvs, 100, normed=True) to pb.hist(rvs, 100, density=True) in file priors_plots.py.
This commit is contained in:
parent
111727e139
commit
3e19a85575
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ except:
|
||||||
|
|
||||||
def univariate_plot(prior):
|
def univariate_plot(prior):
|
||||||
rvs = prior.rvs(1000)
|
rvs = prior.rvs(1000)
|
||||||
pb.hist(rvs, 100, normed=True)
|
pb.hist(rvs, 100, density=True)
|
||||||
xmin, xmax = pb.xlim()
|
xmin, xmax = pb.xlim()
|
||||||
xx = np.linspace(xmin, xmax, 1000)
|
xx = np.linspace(xmin, xmax, 1000)
|
||||||
pb.plot(xx, prior.pdf(xx), 'r', linewidth=2)
|
pb.plot(xx, prior.pdf(xx), 'r', linewidth=2)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue