Skip to content

How to obtain optimized length scale assigned to each dimension #945

Discussion options

You must be logged in to vote

Hi Swarnendu, From memory it doesn't display because it's variable length and can be long if input dimension is high.

Here's some code for displaying and changing values.

import GPy
import numpy as np
from IPython.display import display

kern = GPy.kern.RBF(4, ARD=True)
display(kern.lengthscale)

kern.lengthscale = [0.3, 1.2, 1.4, 1.2]
display(kern.lengthscale)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Swarnendu-sekhar-ghosh
Comment options

@shadzzz90
Comment options

Answer selected by Swarnendu-sekhar-ghosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants