mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-26 13:26:22 +02:00
Added extensions for inline doc plotting
This commit is contained in:
parent
8498332f76
commit
0763efcad4
2 changed files with 20 additions and 2 deletions
|
|
@ -146,3 +146,13 @@ The flag ``ARD=True`` in the definition of the Matern kernel specifies that we w
|
|||
:height: 350px
|
||||
|
||||
Contour plot of the best predictor (posterior mean).
|
||||
|
||||
.. plot::
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
x = np.random.randn(1000)
|
||||
plt.hist( x, 20)
|
||||
plt.grid()
|
||||
plt.title(r'Normal: $\mu=%.2f, \sigma=%.2f$'%(x.mean(), x.std()))
|
||||
plt.show()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue