mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-26 21:36:23 +02:00
Trying ipython extension instead
This commit is contained in:
parent
137a14c5e5
commit
8c2adc1dce
1 changed files with 5 additions and 8 deletions
|
|
@ -147,12 +147,9 @@ The flag ``ARD=True`` in the definition of the Matern kernel specifies that we w
|
|||
|
||||
Contour plot of the best predictor (posterior mean).
|
||||
|
||||
.. plot::
|
||||
.. ipython::
|
||||
|
||||
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()
|
||||
In [136]: x = 2
|
||||
|
||||
In [137]: x**3
|
||||
Out[137]: 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue