mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 22:06:22 +02:00
plot ard ticks improved
This commit is contained in:
parent
c0d514b6c0
commit
12640a2d17
1 changed files with 4 additions and 3 deletions
|
|
@ -82,9 +82,10 @@ class kern(Parameterized):
|
||||||
else:
|
else:
|
||||||
ard_params = 1. / p.lengthscale
|
ard_params = 1. / p.lengthscale
|
||||||
|
|
||||||
ax.bar(np.arange(len(ard_params)) - 0.4, ard_params)
|
x = np.arange(len(ard_params))
|
||||||
ax.set_xticks(np.arange(len(ard_params)))
|
ax.bar(x - 0.4, ard_params)
|
||||||
ax.set_xticklabels([r"${}$".format(i) for i in range(len(ard_params))])
|
ax.set_xticks(x)
|
||||||
|
ax.set_xticklabels([r"${}$".format(i) for i in x])
|
||||||
return ax
|
return ax
|
||||||
|
|
||||||
def _transform_gradients(self, g):
|
def _transform_gradients(self, g):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue