mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-07-02 16:01:03 +02:00
changed the colous of plotting in the grid_parameters debug script
This commit is contained in:
parent
4d36dd1b15
commit
0ff5cb8447
1 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ pb.close('all')
|
||||||
|
|
||||||
N = 1000
|
N = 1000
|
||||||
M = 10
|
M = 10
|
||||||
resolution=5
|
resolution=3
|
||||||
|
|
||||||
X = np.linspace(0,12,N)[:,None]
|
X = np.linspace(0,12,N)[:,None]
|
||||||
Z = np.linspace(0,12,M)[:,None] # inducing points (fixed for now)
|
Z = np.linspace(0,12,M)[:,None] # inducing points (fixed for now)
|
||||||
|
|
@ -41,8 +41,8 @@ cgs = np.array(zip(*cgs),dtype=np.float64).reshape(-1,resolution,resolution)
|
||||||
|
|
||||||
for cg in cgs:
|
for cg in cgs:
|
||||||
pb.figure()
|
pb.figure()
|
||||||
pb.contourf(xx,yy,lls,cmap=pb.cm.jet)
|
pb.contourf(xx,yy,lls,50,cmap=pb.cm.gray)
|
||||||
pb.colorbar()
|
pb.colorbar()
|
||||||
pb.scatter(xx.flatten(),yy.flatten(),20,np.log(np.abs(cg.flatten())),cmap=pb.cm.gray,linewidth=0)
|
pb.scatter(xx.flatten(),yy.flatten(),20,np.log(np.abs(cg.flatten())),cmap=pb.cm.jet,linewidth=0)
|
||||||
pb.colorbar()
|
pb.colorbar()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue